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

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
大德鲁伊
帖子: 33
注册时间: 2016-12-05 18:44
系统: windows7

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
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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.
大德鲁伊
帖子: 33
注册时间: 2016-12-05 18:44
系统: windows7

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
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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
回复