Stampante Brother MFC-7320 su Debian 9: problema con libc6-i386 (versione 2.24-11+deb9u1)

3 risposte [Ultimo contenuto]
Ritratto di 3vis
3vis
(Junior)
Offline
Junior
Iscritto: 23/06/2013
Messaggi: 32

Ciao a tutti!

Come indicato sul sito Brother (vedi link), ho installato sul mio PC con Debian 9:
- la libreria ia32-libs (sostituita dalla libreria lib32z1) (vedi link)
- LPR printer driver (vedi link)
- CUPS wrapper printer driver (vedi link)
necessari per far funzionare la stampante MFC-7320.

Di seguito i comandi che ho utilizzato:

cube@Debian:~$ sudo apt-get update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.it.debian.org/debian stretch InRelease
Hit:3 http://ftp.it.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.it.debian.org/debian stretch Release
Reading package lists... Done
 
cube@Debian:~$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32z1 lib32ncurses5
 
E: Package 'ia32-libs' has no installation candidate
 
cube@Debian:~$ sudo apt-get install lib32z1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libc6-i386
The following NEW packages will be installed:
  lib32z1 libc6-i386
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,684 kB of archives.
After this operation, 11.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.it.debian.org/debian stretch/main amd64 libc6-i386 amd64 2.24-11+deb9u1 [2,595 kB]
Get:2 http://ftp.it.debian.org/debian stretch/main amd64 lib32z1 amd64 1:1.2.8.dfsg-5 [88.6 kB]
Fetched 2,684 kB in 5s (472 kB/s) 
Selecting previously unselected package libc6-i386.
(Reading database ... 161547 files and directories currently installed.)
Preparing to unpack .../libc6-i386_2.24-11+deb9u1_amd64.deb ...
Unpacking libc6-i386 (2.24-11+deb9u1) ...
Selecting previously unselected package lib32z1.
Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-5_amd64.deb ...
Unpacking lib32z1 (1:1.2.8.dfsg-5) ...
Setting up libc6-i386 (2.24-11+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up lib32z1 (1:1.2.8.dfsg-5) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
 
cube@Debian:~$ sudo dpkg -i --force-all /home/cube/Downloads/brmfc7320lpr-2.0.2-1.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (amd64)
Selecting previously unselected package brmfc7320lpr:i386.
(Reading database ... 161861 files and directories currently installed.)
Preparing to unpack .../brmfc7320lpr-2.0.2-1.i386.deb ...
Unpacking brmfc7320lpr:i386 (2.0.2-1) ...
dpkg: brmfc7320lpr:i386: dependency problems, but configuring anyway as you requested:
 brmfc7320lpr:i386 depends on libc6 (>= 2.3.4-1).
 
Setting up brmfc7320lpr:i386 (2.0.2-1) ...
 
cube@Debian:~$ sudo dpkg -i --force-all /home/cube/Downloads/cupswrapperMFC7320-2.0.2-1.i386.deb
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (i386) does not match system (amd64)
Selecting previously unselected package cupswrappermfc7320:i386.
(Reading database ... 161878 files and directories currently installed.)
Preparing to unpack .../cupswrapperMFC7320-2.0.2-1.i386.deb ...
Unpacking cupswrappermfc7320:i386 (2.0.2-1) ...
dpkg: cupswrappermfc7320:i386: dependency problems, but configuring anyway as you requested:
 cupswrappermfc7320:i386 depends on libc6 (>= 2.3.4-1).
 
Setting up cupswrappermfc7320:i386 (2.0.2-1) ...
[ ok ] Restarting cups (via systemctl): cups.service.

La stampante funziona perfettamente, ma apt-get indica che:

cube@Debian:~$ sudo apt-get update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.it.debian.org/debian stretch InRelease
Hit:3 http://ftp.it.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.it.debian.org/debian stretch Release
Reading package lists... Done
 
cube@Debian:~$ sudo apt-get upgrade
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:
 brmfc7320lpr:i386 : Depends: libc6:i386 (>= 2.3.4-1) but it is not installable
 cupswrappermfc7320:i386 : Depends: libc6:i386 (>= 2.3.4-1) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
cube@Debian:~$ sudo apt-get install libc6-i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6-i386 is already the newest version (2.24-11+deb9u1).
libc6-i386 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 brmfc7320lpr:i386 : Depends: libc6:i386 (>= 2.3.4-1) but it is not installable
 cupswrappermfc7320:i386 : Depends: libc6:i386 (>= 2.3.4-1) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Come potete vedere è installata la versione 2.24-11+deb9u1 di libc6-i386, superiore a quanto richiesto.

Se utilizzo il comando apt --fix-broken install, i due driver vengono rimossi.

Ho un secondo PC su cui c'è Debian 8.
Anche qui ho installato questi driver seguendo la stessa procedura, ma la versione di libc6-i386 è la 2.19-18+deb8u10 ed apt-get non mi dà alcun problema.

Come posso risolvere il problema su Debian 9?

Grazie in anticipo per qualsiasi aiuto.

Ciao!

Ritratto di 3vis
3vis
(Junior)
Offline
Junior
Iscritto: 23/06/2013
Messaggi: 32

Visto che la stampante funziona correttamente, c'è la possibilità di far in modo che apt-get "ignori" le dipendenze irrisolte relative ai due driver?
Lo chiedo perché altrimenti apt-get non funziona, non posso più eseguire i comandi apt-get upgrade ed apt-get install.

Ritratto di badroot
badroot
(Guru)
Offline
Guru
Iscritto: 22/08/2008
Messaggi: 1944

Ciao,
forse risolvi così :

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386

Ritratto di 3vis
3vis
(Junior)
Offline
Junior
Iscritto: 23/06/2013
Messaggi: 32

Ciao badroot,
ho utilizzato i comandi che mi hai suggerito ed ho risolto... sei il NUMERO UNO !!!! Applause
Temevo di dover tornare a Debian 8.

Grazie davvero! Smile

cube@Debian:~$ sudo dpkg --add-architecture i386
 
cube@Debian:~$ sudo apt-get update
Ign:1 http://ftp.it.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Hit:3 http://ftp.it.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.it.debian.org/debian stretch Release
Reading package lists... Done
 
cube@Debian:~$ sudo apt-get install libc6:i386
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:
 libc6:i386 : Depends: libgcc1:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
 
cube@Debian:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  gcc-6-base:i386 libc6:i386 libgcc1:i386
Suggested packages:
  glibc-doc:i386 locales:i386
The following NEW packages will be installed:
  gcc-6-base:i386 libc6:i386 libgcc1:i386
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,694 kB of archives.
After this operation, 10.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.it.debian.org/debian stretch/main i386 gcc-6-base i386 6.3.0-18 [180 kB]
Get:2 http://ftp.it.debian.org/debian stretch/main i386 libgcc1 i386 1:6.3.0-18 [48.0 kB]
Get:3 http://ftp.it.debian.org/debian stretch/main i386 libc6 i386 2.24-11+deb9u1 [2,466 kB]
Fetched 2,694 kB in 4s (625 kB/s)       
Preconfiguring packages ...
Selecting previously unselected package gcc-6-base:i386.
(Reading database ... 161884 files and directories currently installed.)
Preparing to unpack .../gcc-6-base_6.3.0-18_i386.deb ...
Unpacking gcc-6-base:i386 (6.3.0-18) ...
Selecting previously unselected package libgcc1:i386.
Preparing to unpack .../libgcc1_1%3a6.3.0-18_i386.deb ...
Unpacking libgcc1:i386 (1:6.3.0-18) ...
Selecting previously unselected package libc6:i386.
Preparing to unpack .../libc6_2.24-11+deb9u1_i386.deb ...
Unpacking libc6:i386 (2.24-11+deb9u1) ...
Replacing files in old package libc6-i386 (2.24-11+deb9u1) ...
Setting up gcc-6-base:i386 (6.3.0-18) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libgcc1:i386 (1:6.3.0-18) ...
Setting up libc6:i386 (2.24-11+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
 
cube@Debian:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.