web-dev-qa-db-fra.com

Comment récupérer d'un problème apt-get

J'essayais d'installer readline en tant que dépendance pour Octave 4.0.0.

Puis le problème avec apt-get install et le conseil à exécuter

Sudo apt-get -f install.

Voici ce que je reçois:

xxxx@xxxx-MS-7577:~$ Sudo apt-get -f install
[Sudo] password for xxxx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6-dev-i386
The following NEW packages will be installed:
  libc6-dev-i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
30 not fully installed or removed.
Need to get 0 B/1.205 kB of archives.
After this operation, 6.560 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 234980 files and directories currently installed.)
Preparing to unpack .../libc6-dev-i386_2.21-0ubuntu4_AMD64.deb ...
Unpacking libc6-dev-i386 (2.21-0ubuntu4) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.21-0ubuntu4_AMD64.deb (--unpack):
 trying to overwrite '/usr/include/fpu_control.h', which is also in package libc6-dev-AMD64:i386 2.21-0ubuntu4
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-dev-i386_2.21-0ubuntu4_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Comment puis-je récupérer de cela?

$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.10
DISTRIB_CODENAME=wily
DISTRIB_DESCRIPTION="Ubuntu 15.10"
NAME="Ubuntu"
VERSION="15.10 (Wily Werewolf)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.10"
VERSION_ID="15.10"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

~$ uname -a 
Linux xxxx-MS-7577 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Mise à jour:

Merci. Si je lance cette commande, je reçois le message suivant:

Sudo apt-get remove libc6-AMD64:i386 libc6-dev-AMD64:i386
[Sudo] password for xxxx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 gcc-5-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed
 lib32readline6-dev : Depends: libc6-dev-i386 but it is not going to be installed
 lib32tinfo-dev : Depends: lib32c-dev
 lib64readline6:i386 : Depends: libc6-AMD64:i386 (>= 2.15) but it is not going to be installed
 lib64readline6-dev:i386 : Depends: libc6-dev-AMD64:i386 but it is not going to be installed
 lib64tinfo5:i386 : Depends: libc6-AMD64:i386 (>= 2.16) but it is not going to be installed
 libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.21-0ubuntu4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Le problème est que je ne peux pas mettre à niveau le système. Je suis bloqué dans cette erreur. Essayer d'exécuter Sudo apt-get -f install est inutile car j'entre dans la condition d'erreur précédente.

2
Saverio

Débarrassez-vous de libc6-dev-AMD64:i386

Sudo apt-get remove libc6-AMD64:i386 libc6-dev-AMD64:i386

Il est utilisé uniquement pour la compilation croisée 64 bits (AMD64) dans une installation Ubuntu 32 bits (i386).

1
user.dz