我试图安装 readline 作为 octave 4.0.0 的依赖项。
然后出现问题apt-get install
并提示执行
sudo apt-get -f install.
以下是我收到的内容:
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)
我怎样才能恢复?
$ 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
更新:
谢谢。如果我运行此命令,我会收到以下内容:
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).
现在的问题是我无法升级系统。我被这个错误锁定了。尝试执行sudo apt-get -f install
是无用的,因为我进入了之前的错误状态。
答案1
摆脱libc6-dev-amd64:i386
sudo apt-get remove libc6-amd64:i386 libc6-dev-amd64:i386
它仅用于 32 位(i386)Ubuntu 安装中的 64 位(amd64)交叉编译。