Ubuntu18.04LTS安装aptitude出现错误。

Bionic Beaver
回复
大德鲁伊
帖子: 28
注册时间: 2016-12-05 18:44
系统: windows7
送出感谢: 5 次
接收感谢: 0

Ubuntu18.04LTS安装aptitude出现错误。

#1

帖子 大德鲁伊 » 2018-06-12 15:07

我用sudo apt-get install aptitude安装aptitude之后,输入aptitude,出现如下错误:
khadgar@khadgar-System-Product-Name:~$ aptitude
aptitude: error while loading shared libraries: libsigc-2.0.so.0: cannot open shared object file: No such file or directory
请问如何解决?
poloshiao
论坛版主
帖子: 18235
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1947 次

Re: Ubuntu18.04LTS安装aptitude出现错误。

#2

帖子 poloshiao » 2018-06-12 15:30

https://bugs.launchpad.net/ubuntu/+sour ... comments/3
removing/installing libsigc++-2.0-0c2a helped.
大德鲁伊
帖子: 28
注册时间: 2016-12-05 18:44
系统: windows7
送出感谢: 5 次
接收感谢: 0

Re: Ubuntu18.04LTS安装aptitude出现错误。

#3

帖子 大德鲁伊 » 2018-06-12 15:47

poloshiao 写了:https://bugs.launchpad.net/ubuntu/+sour ... comments/3
removing/installing libsigc++-2.0-0c2a helped.
-------------
khadgar@khadgar-System-Product-Name:~$ sudo apt-get install libsigc++-2.0-0c2a
[sudo] password for khadgar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libsigc++-2.0-0c2a 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:
libsigc++-2.0-0v5:i386 libsigc++-2.0-0v5
之后我使用命令安装了上面说的libsigc++-2.0-0v5:i386 libsigc++-2.0-0v5
sudo apt-get install libsigc++-2.0-0v5
sudo apt-get install libsigc++-2.0-0v5:i386
又重新安装了aptitude,但是还是在报错:
khadgar@khadgar-System-Product-Name:~$ aptitude
aptitude: error while loading shared libraries: libsigc-2.0.so.0: cannot open shared object file: No such file or directory
poloshiao
论坛版主
帖子: 18235
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1947 次

Re: Ubuntu18.04LTS安装aptitude出现错误。

#4

帖子 poloshiao » 2018-06-12 16:10

aptitude: error while loading shared libraries: libsigc-2.0.so.0: cannot open shared object file: No such file or directory
Ubuntu 14.04
sudo apt-get install libsigc++-2.0-0c2a
libsigc++-2.0-0c2a
https://packages.ubuntu.com/trusty/amd6 ... a/filelist
/usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0
Ubuntu 18.04
sudo apt-get install libsigc++-2.0-0v5
libsigc++-2.0-0v5
https://packages.ubuntu.com/bionic/amd6 ... 5/filelist
/usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0
2. 都有 libsigc-2.0.so.0
sudo apt-get install libsigc++-2.0-0v5:i386
3. 你的 Ubuntu 18.04 是 64-bit (amd64) ?
所以 你的 aptitude 也應該是 64-bit (amd64) ?
3-1. 把 libsigc++-2.0-0v5:i386 移除看看
sudo apt purge libsigc++-2.0-0v5:i386
回复

回到 “Ubuntu 18.04 LTS”