cxbii
2013-11-24 20:23 deepin
Reply Like 0 View the author
自己编译了几个软件用,分别是Gromacs4.5 和Pymol1.6.1
因为源里提供的Pymol1.5有Bug,生成的蛋白质一级结构是乱的,不能使用。所以手动编译了Pymol,使用apt-get安装了一些开发库。不知道是否是因为编译了这些软件而产生的问题?
强制安装后,还是无法使用。
dpkg -l |grep libc6
ii libc6:amd64 2.17-0ubuntu5 amd64 Embedded GNU C Library: Shared libraries
ii libc6:i386 2.17-0ubuntu5 i386 Embedded GNU C Library: Shared libraries
ii libc6-dev:amd64 2.17-0ubuntu5.1 amd64 Embedded GNU C Library: Development Libraries and Header Files
rc libc6-i386 2.17-0ubuntu5 amd64 Embedded GNU C Library: 32-bit shared libraries for AMD64
看来是多安装了一个libc6的库,而我尝试手动删除后会出现bash无法找到libc6.so,什么都干不了。奇怪了
libc6 : 破坏: libc6:i386 (!= 2.17-0ubuntu5.1) 但是 2.17-0ubuntu5 正要被安装
libc6:i386 : 破坏: libc6 (!= 2.17-0ubuntu5) 但是 2.17-0ubuntu5.1 正要被安装
参考文献:
1、A copy of the C library was found in an unexpected directoryhttp://blog.i-al.net/2013/03/a-c ... expected-directory/
2、A copy of the C library was found in an unexpected directory: '/lib/i386-linux-gnu/http://ubuntuforums.org/showthread.php?t=1940074
不知道这些回答能否进入Wiki?
也是,这么高危而且不太通用的操作还是放在论坛与个人博客中比较好。如果有人有需要的话应该可以搜索到的,感谢版主一直的回复与帮助。
使用
sudo apt-get update
sudo apt-get upgrade
升级出现
research@deepin:~$ sudo apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
您也许需要运行“apt-get -f install”来修正上面的错误。
下列软件包有未满足的依赖关系:
libc6-dev : 依赖: libc6 (= 2.17-0ubuntu5.1) 但是 2.17-0ubuntu5 已经安装
E: 不能满足依赖关系。不妨试一下 -f 选项。
使用
sudo apt-get -f install出现
(正在读取数据库 ... 系统当前共安装有 3126 个文件和目录。)
正预备替换 libc6:amd64 2.17-0ubuntu5 (使用 .../libc6_2.17-0ubuntu5.1_amd64.deb) ...
正在反配置 libc6:i386 ...
A copy of the C library was found in an unexpected directory:
'/lib/x86_64-linux-gnu/libc-2.17.so'
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library or get it out of
'/lib/x86_64-linux-gnu' and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.17-0ubuntu5.1_amd64.deb (--unpack):
子进程 新的 pre-installation 脚本 返回了错误号 1
正预备替换 libc6:i386 2.17-0ubuntu5 (使用 .../libc6_2.17-0ubuntu5.1_i386.deb) ...
正在反配置 libc6:amd64 ...
A copy of the C library was found in an unexpected directory:
'/lib/i386-linux-gnu/libc-2.17.so'
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library or get it out of
'/lib/i386-linux-gnu' and try again.
dpkg: error processing /var/cache/apt/archives/libc6_2.17-0ubuntu5.1_i386.deb (--unpack):
子进程 新的 pre-installation 脚本 返回了错误号 1
在处理时有错误发生:
/var/cache/apt/archives/libc6_2.17-0ubuntu5.1_amd64.deb
/var/cache/apt/archives/libc6_2.17-0ubuntu5.1_i386.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
Total disk space freed by localepurge: 0 KiB
这时要怎么办啊?
请不要说重装之类的话了,大家在Windows下也不会出问题就重装吧。