linux下关于软件包的依赖关系

171 views
Skip to first unread message

崔姣姣

unread,
Apr 30, 2014, 9:56:35 AM4/30/14
to xiyou...@googlegroups.com
学长学姐们好!
我是linux 12 级的一名同学。在安装某个东西的时候出现了这样一些错误,麻烦大家指点一下。

出现的问题是:
下列软件包有未满足的依赖关系:
 libc6 : 依赖: libc-bin (= 2.15-0ubuntu20.1)
 libc6:i386 : 依赖: libc-bin:i386 (= 2.15-0ubuntu20.1)
 libc6-dev : 依赖: libc6 (= 2.15-0ubuntu20.2) 但是 2.15-0ubuntu20.1 已经安装
E: 不能满足依赖关系。不妨试一下 -f 选项。


但是sudo apt-get -f install之后也不行。。。


出现了这样的问题:
dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu20.2_amd64.deb (--unpack):
 子进程 新的 pre-installation 脚本 返回了错误号 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    正预备替换 libc6:i386 2.15-0ubuntu20.1 (使用 .../libc6_2.15-0ubuntu20.2_i386.deb) ...
正在反配置 libc6:amd64 ...

A copy of the C library was found in an unexpected directory:
  '/lib/i386-linux-gnu/libc-2.15.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.15-0ubuntu20.2_i386.deb (--unpack):
 子进程 新的 pre-installation 脚本 返回了错误号 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    在处理时有错误发生:
 /var/cache/apt/archives/libc6_2.15-0ubuntu20.2_amd64.deb
 /var/cache/apt/archives/libc6_2.15-0ubuntu20.2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


这个现在就不知道怎末解决了。请学长学姐们帮下忙,谢谢啦~



廖子谦

unread,
May 3, 2014, 12:21:28 AM5/3/14
to 崔姣姣, 西邮LINUX
libc6是系统的一个基础库,包括cp,mv,ln等基本命令都依赖这个库,最好就不好动这个库,否则可能导致你的系统损坏哦
你安装的程序依赖这个库,可能是因为版本问题,可以尝试下较旧的版本。


--
--
要退订此论坛请发邮件至 xiyoulinux-...@googlegroups.com
更多选项: http://groups.google.com/group/xiyoulinux?hl=zh-CN
提问前建议您阅读(提问的智慧):http://www.xiyoulinux.org/blog/?p=64
---
您收到此邮件是因为您订阅了Google网上论坛中的“西邮Linux兴趣小组”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到xiyoulinux+...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Wang Sen

unread,
May 5, 2014, 11:10:46 AM5/5/14
to 廖子谦, 崔姣姣, 西邮LINUX
升级 libc6,libc-bin,libc6:i386,libc-bin:i386  到 2.15-0ubuntu20.2 试试。或者更复杂的方法,自己build一个deb包,把libc6-dev得依赖关系改成 libc6 >= 2.15-0ubuntu20.1

--- --- ---
Best Wishes
Wang Sen
Open Software Developer, China System & Technology Lab, IBM
Tel: 010-82453135
Zip:100193
Addr: Ring Buiding, 8 Dongbeiwang Western Road, Beijing
Reply all
Reply to author
Forward
0 new messages