无法在 ubuntu 14.04.1 x64 上安装 libltdl-dev:i386

无法在 ubuntu 14.04.1 x64 上安装 libltdl-dev:i386
xhadesvn@zoo:/home/tlbb/Server$ sudo apt -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libltdl-dev:i386
Suggested packages:
  libtool-doc:i386
The following NEW packages will be installed:
  libltdl-dev:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/157 kB of archives.
After this operation, 924 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 46588 files and directories currently installed.)
Preparing to unpack .../libltdl-dev_2.4.2-1.7ubuntu1_i386.deb ...
Unpacking libltdl-dev:i386 (2.4.2-1.7ubuntu1) ......................................] 
dpkg: error processing archive /var/cache/apt/archives/libltdl-dev_2.4.2-1.7ubuntu1_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/libtool/libltdl/Makefile.in', which is different from other instances of package libltdl-dev:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libltdl-dev_2.4.2-1.7ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

尝试安装 libltdl-dev x86 时收到该错误

我已经使用 Google 查找该错误,但没有找到修复文档。

答案1

deb 软件包已损坏。您只需删除损坏的软件包sudo rm /var/cache/apt/archives/libltdl-dev_2.4.2-1.7ubuntu1_i386.deb并尝试重新安装即可。您正在寻找的软件包可以找到这里 您可以通过软件中心(或您最喜欢的软件包安装程序)下载并安装它,或者在删除有问题的软件包后,您可以简单地

sudo apt-get update
sudo apt-get install libltdl-dev

相关内容