libc6 : Depends: libc-bin (= 2.15-0ubuntu9) but 2.15-0ubuntu7 is installed

本文提供了一种解决Ubuntu系统中遇到的依赖错误的方法。通过一系列命令包括更新包列表、清理旧数据、强制安装依赖未满足的包等步骤,可以有效地解决libc6、libstdc++6等包的依赖问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libc6 : Depends: libc-bin (= 2.15-0ubuntu9) but 2.15-0ubuntu7 is installed
 libstdc++6 : Depends: gcc-4.6-base (= 4.6.3-1ubuntu4) but 4.6.3-1ubuntu5 is installed
 libstdc++6-4.6-dev : Depends: libstdc++6 (>= 4.6.3-1ubuntu5) but 4.6.3-1ubuntu4 is installed
E: Unmet dependencies. Try using -f.

解决:

apt-get update
apt-get clean
apt-get install -fy
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
apt-get install -fy
apt-get dist-upgrade

转载于:https://www.cnblogs.com/bluesky23/archive/2013/04/12/3017105.html

fu@fu-virtual-machine:~/catkin_ws$ sudo apt-get install libqt4-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libc6-dev : Breaks: libassimp-dev (<= 5.2.4~ds0-1) but 5.0.1~ds0-1build1 is to be installed Breaks: libfltk1.3-dev (<= 1.3.8-4+b1) but 1.3.4-10build1 is to be installed libqt4-dev : Depends: libqt4-dbus (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-declarative (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-designer (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-dev-bin (= 4:4.8.7+dfsg-7ubuntu1) Depends: libqt4-help (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-network (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-qt3support (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-script (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-scripttools (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-sql (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-svg (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-test (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-xml (= 4:4.8.7+dfsg-7ubuntu1) but it is not going to be installed Depends: libqt4-xmlpatterns (= 4:4.8.7+dfsg-7
03-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值