For knowing those packages runMike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 2:54 pm Unfortunately, I checked the Synaptic and I still have those 3 broken packages.
Code: Select all
dpkg --audit
For knowing those packages runMike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 2:54 pm Unfortunately, I checked the Synaptic and I still have those 3 broken packages.
Code: Select all
dpkg --audit
Code: Select all
dpkg -l | grep ^..r
Mike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 4:04 pm I used the codedpkg -l | grep ^..r
as you said
but nothing showed up, no logs or anything
Code: Select all
sudo rm /var/lib/dpkg/info/libqt4-xml:amd64*
sudo dpkg -r --force-depends --force-remove-reinstreq libqt4-xml:amd64
apt update
apt upgrade
Look from Synaptic and write down and run with both of packagesMike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 4:24 pm Now I have 2 broken packages left so I guess 1 has been fixed
Code: Select all
sudo rm /var/lib/dpkg/info/packagename-here*
sudo dpkg -r --force-depends --force-remove-reinstreq packagename-here
That command wasn't found because it looks like you didn't perform the first command:Mike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 12:18 pm I tried all the command lines you mentioned but unfortunately I got some errors during the process. I continued anyway but the scanner still doesn't work
I'm going to paste the errors for every line I put in. I also tried the suuggestions of srq2625 and those of administrollaattori but same results.
sudo aa-complain cupsd
sudo: aa-complain: command not found
Code: Select all
sudo apt-get install apparmor-utils
These three are ok. They're not errors, just notifications that the directories already existed.Mike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 12:18 pm sudo mkdir /usr/share/cups/model
mkdir: cannot create directory ‘/usr/share/cups/model’: File exists
sudo ln -s /etc/init.d/cups /etc/init.d/lpd
ln: failed to create symbolic link '/etc/init.d/lpd': File exists
sudo mkdir /var/spool/lpd
mkdir: cannot create directory ‘/var/spool/lpd’: File exists
When commands give you a notification of "Try 'apt --fix-broken install"', you should run that in Terminal right after it suggests it.Mike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 12:18 pm sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
ia32-libs is already the newest version (2018.06.06).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt-get install csh
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt-get install sane
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt-get install sane-dbg
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
sane-dbg : Depends: sane (= 1.0.14-12build1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt-get install sane-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
sane-utils is already the newest version (1.0.27-1~experimental3ubuntu2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt-get install psutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libqt4-xml : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
libqtdbus4 : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
qdbus : Depends: libqtcore4 (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
That didn't work because you left out some wording for the command.Mike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 12:18 pm linux-brprinter-installer-2.2.1-1.gz
linux-brprinter-installer-2.2.1-1.gz: command not found
Code: Select all
sudo apt-get install apparmor-utils
Code: Select all
sudo aa-complain cupsd
Code: Select all
sudo mkdir /usr/share/cups/model
Code: Select all
sudo ln -s /etc/init.d/cups /etc/init.d/lpd
Code: Select all
sudo mkdir /var/spool/lpd
Code: Select all
sudo apt-get install ia32-libs
Code: Select all
sudo apt-get install csh
Code: Select all
sudo apt-get install sane
Code: Select all
sudo apt-get install sane-dbg
Code: Select all
sudo apt-get install sane-utils
Code: Select all
sudo apt-get install psutils
Code: Select all
sudo ufw allow in 54925/udp
Code: Select all
sudo ufw allow out 54921/tcp
Code: Select all
cd /home/$USER/Downloads
Code: Select all
gunzip linux-brprinter-installer-*.*.*-*.gz
Code: Select all
sudo su
Code: Select all
bash linux-brprinter-installer-*.*.*-* DCP-7030
Mike-Linux-Mint wrote: ⤴Fri Dec 07, 2018 5:26 pm I entered the code, here's what I get
sudo rm /var/lib/dpkg/info/packagename-here*
rm: cannot remove '/var/lib/dpkg/info/packagename-here*': No such file or directory
mike@mike-p6713fr:~$sudo dpkg -r --force-depends --force-remove-reinstreq packagename-here
dpkg: warning: ignoring request to remove packagename-here which isn't installed
I guess we tried everything
packagename-here
is the package what Synaptic tells to be broken.That's normal. You can exit that terminal.Mike-Linux-Mint wrote: ⤴Sat Dec 08, 2018 2:46 pm So I did it again and this is what I got
At the very end, the terminal seems to come to a stop at root@mike-Lenovo-V110-15IAP:/home/mike/Downloads#
Is the printer connected by USB cable or by the router?Mike-Linux-Mint wrote: ⤴Sat Dec 08, 2018 2:46 pmSo finally, I launched xsane to check if it worked but no devices were availableCode: Select all
sudo apt-get install apparmor-utils Reading package lists... Done Building dependency tree Reading state information... Done apparmor-utils is already the newest version (2.12-4ubuntu5.1). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. sudo aa-complain cupsd Setting /usr/sbin/cupsd to complain mode. sudo mkdir /usr/share/cups/model mkdir: cannot create directory ‘/usr/share/cups/model’: File exists sudo ln -s /etc/init.d/cups /etc/init.d/lpd ln: failed to create symbolic link '/etc/init.d/lpd': File exists sudo mkdir /var/spool/lpd mkdir: cannot create directory ‘/var/spool/lpd’: File exists sudo apt-get install ia32-libs Reading package lists... Done Building dependency tree Reading state information... Done ia32-libs is already the newest version (2018.06.06). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. sudo apt-get install csh Reading package lists... Done Building dependency tree Reading state information... Done csh is already the newest version (20110502-3). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. sudo apt-get install sane Reading package lists... Done Building dependency tree Reading state information... Done sane is already the newest version (1.0.14-12build1). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. sudo apt-get install sane-dbg Reading package lists... Done Building dependency tree Reading state information... Done sane-dbg is already the newest version (1.0.14-12build1). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. sudo apt-get install sane-utils Reading package lists... Done Building dependency tree Reading state information... Done sane-utils is already the newest version (1.0.27-1~experimental3ubuntu2). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. sudo apt-get install psutils Reading package lists... Done Building dependency tree Reading state information... Done psutils is already the newest version (1.17.dfsg-4). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. sudo ufw allow in 54925/udp Skipping adding existing rule Skipping adding existing rule (v6) sudo ufw allow out 54921/tcp Skipping adding existing rule Skipping adding existing rule (v6) cd /home/$USER/Downloads mike@mike-Lenovo-V110-15IAP:~/Downloads$ ~/Downloads$ gunzip linux-brprinter-installer-2.2.1-1.gz gzip: linux-brprinter-installer-2.2.1-1.gz: No such file or directory ~/Downloads$ sudo su root@mike-Lenovo-V110-15IAP:/home/mike/Downloads# ~/Downloads$ sudo su root@mike-Lenovo-V110-15IAP:/home/mike/Downloads# bash linux-brprinter-installer-2.2.1-1 DCP-7030 You are going to install following packages. brdcp7030lpr-2.0.2-1.i386.deb cupswrapperDCP7030-2.0.2-1.i386.deb brscan3-0.2.13-1.amd64.deb brscan-skey-0.2.4-1.amd64.deb OK? [y/N] -> y dpkg -x brdcp7030lpr-2.0.2-1.i386.deb / dpkg -x cupswrapperDCP7030-2.0.2-1.i386.deb / dpkg-deb: building package 'brdcp7030lpr' in 'brdcp7030lpr-2.0.2-1a.i386.deb'. dpkg -b ./brother_driver_packdir brdcp7030lpr-2.0.2-1a.i386.deb dpkg-deb: building package 'cupswrapperdcp7030' in 'cupswrapperDCP7030-2.0.2-1a.i386.deb'. dpkg -b ./brother_driver_packdir cupswrapperDCP7030-2.0.2-1a.i386.deb dpkg -i --force-all brdcp7030lpr-2.0.2-1a.i386.deb (Reading database ... 281139 files and directories currently installed.) Preparing to unpack brdcp7030lpr-2.0.2-1a.i386.deb ... Unpacking brdcp7030lpr:i386 (2.0.2-1) over (2.0.2-1) ... Setting up brdcp7030lpr:i386 (2.0.2-1) ... ln: failed to create symbolic link '/usr/lib32/libbrcomplpr2.so': File exists dpkg -i --force-all cupswrapperDCP7030-2.0.2-1a.i386.deb (Reading database ... 281139 files and directories currently installed.) Preparing to unpack cupswrapperDCP7030-2.0.2-1a.i386.deb ... Restarting cups (via systemctl): cups.service. Unpacking cupswrapperdcp7030:i386 (2.0.2-1) over (2.0.2-1) ... Setting up cupswrapperdcp7030:i386 (2.0.2-1) ... Stopping lpd (via systemctl): lpd.service. Restarting cups (via systemctl): cups.service. # The security level of AppArmor has been lowered. (aa-complain cups) aa-complain cupsd Setting /usr/sbin/cupsd to complain mode. Will you specify the Device URI? [Y/n] -> n Test Print? [y/N] ->N You are going to install following packages. brscan3-0.2.13-1.amd64.deb dpkg -i --force-all brscan3-0.2.13-1.amd64.deb (Reading database ... 281139 files and directories currently installed.) Preparing to unpack brscan3-0.2.13-1.amd64.deb ... Unpacking brscan3 (0.2.13-1) over (0.2.13-1) ... Setting up brscan3 (0.2.13-1) ... You are going to install following packages. brscan-skey-0.2.4-1.amd64.deb dpkg -i --force-all brscan-skey-0.2.4-1.amd64.deb (Reading database ... 281139 files and directories currently installed.) Preparing to unpack brscan-skey-0.2.4-1.amd64.deb ... Unpacking brscan-skey (0.2.4-1) over (0.2.4-1) ... Setting up brscan-skey (0.2.4-1) ... root@mike-Lenovo-V110-15IAP:/home/mike/Downloads#
gunzip linux-brprinter-installer-*.*.*-*.gz
Code: Select all
cd /home/$USER/Downloads
Code: Select all
gunzip linux-brprinter-installer-*.*.*-*.gz
Code: Select all
sudo su
Code: Select all
bash linux-brprinter-installer-*.*.*-* DCP-7030
How to install a Brother DCP7030 printer and scanner in Ubuntu -> http://themorningflight.com/gadgets/how ... in-ubuntu/
Step 1. Paste in the following command and a text document will open. Now this is a bit of the programme that runs your machine so DO NOT DELETE ANYTHING. The command is:
Step 2. You will see a long list of devices and you are going to add yours. You do this by adding the following two lines to the end of the device list. This is where I went wrong, I pasted them in the wrong place. It didn’t do any harm, but the scanner didn’t work.Code: Select all
xed admin:///lib/udev/rules.d/40-libsane.rules
The two lines must go after where is says:LABEL=”libsane_usb_rules_begin” and before the line “#
The following rule will disable …”
I recommend you stick it afterLABEL=”libsane_usb_rules_begin
” so you don’t have to go to the bottom of the list.
The two lines to be pasted in are:
# Brother scanners
ATTRS{idVendor}==”04f9″, ENV{libsane_matched}=”yes”
THEN SAVE THE TEXT DOCUMENT or the changes you have just made will be lost and you will have to do that bit again.
Now reboot the machine and both your printer and scanner should work great.
Stage 2. You will see a considerable rundown of gadgets and you will include yours. You do this by adding the accompanying two lines as far as possible of the gadget list. This is the place I turned out badly, I glued them in the wrong place. It didn't do any mischief, yet the scanner didn't work.administrollaattori wrote: ⤴Sun Dec 09, 2018 3:59 amHow to install a Brother DCP7030 printer and scanner in Ubuntu -> http://themorningflight.com/gadgets/how ... in-ubuntu/
Step 1. Paste in the following command and a text document will open. Now this is a bit of the programme that runs your machine so DO NOT DELETE ANYTHING. The command is:
Step 2. You will see a long list of devices and you are going to add yours. You do this by adding the following two lines to the end of the device list. This is where I went wrong, I pasted them in the wrong place. It didn’t do any harm, but the scanner didn’t work.Code: Select all
xed admin:///lib/udev/rules.d/40-libsane.rules
The two lines must go after where is says:LABEL=”libsane_usb_rules_begin” and before the line “#
The following rule will disable …”
I recommend you stick it afterLABEL=”libsane_usb_rules_begin
” so you don’t have to go to the bottom of the list.
The two lines to be pasted in are:
# Brother scanners
ATTRS{idVendor}==”04f9″, ENV{libsane_matched}=”yes”
THEN SAVE THE TEXT DOCUMENT or the changes you have just made will be lost and you will have to do that bit again.
Now reboot the machine and both your printer and scanner should work great.
LABEL="libsane_usb_rules_begin" and before the line "#
The following standard will cripple … " LABEL="libsane_usb_rules_begin
" so you don't need to go to the base of the rundown.