我使用 ubuntu 12.04
我的错误信息:
sam@sam:~/code/pcl_standalone/vfh_dir$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libbullet
The following NEW packages will be installed:
libbullet
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
6 not fully installed or removed.
Need to get 0 B/963 kB of archives.
After this operation, 2456 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 796153 files and directories currently installed.)
Unpacking libbullet (from .../libbullet_2.80-0_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libbullet_2.80-0_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libHACD.so.2.80', which is also in package libbullet2.80 2.80.2-ubuntu1~precise1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libbullet_2.80-0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sam@sam:~/code/pcl_standalone/vfh_dir$
如何解决?
答案1
您不能在同一系统中拥有两个版本的库,例如 libbullet。删除其中一个。我假设您正在使用 PPA。如果是这种情况,请联系 PPA 维护者。
要删除它们:
sudo dpkg -r libbullet2.80
或者
sudo dpkg -r libbullet
通常情况下,只能通过邮件联系 PPA 的维护者。