问题描述:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libc6 : Breaks: libc6:i386 (!= 2.27-3ubuntu1) but 2.27-3ubuntu1.5 is to be installed
 libc6:i386 : Breaks: libc6 (!= 2.27-3ubuntu1.5) but 2.27-3ubuntu1 is to be installed
 libc6-dbg : Depends: libc6 (= 2.27-3ubuntu1.6) but 2.27-3ubuntu1 is to be installed
 libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.6) but 2.27-3ubuntu1 is to be installed
 libc6-dev:i386 : Depends: libc6:i386 (= 2.27-3ubuntu1.6) but 2.27-3ubuntu1.5 is to be installed
 libc6-i386-amd64-cross : Depends: libc6-amd64-cross (= 2.27-3ubuntu1cross1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

把与libc6相关的包都安装成同一个版本就能解决问题:

我把全部都降了一个版本:

sudo apt --fix-broken install libc6=2.27-3ubuntu1 libc-bin=2.27-3ubuntu1 libc6:i386=2.27-3ubuntu1 libc6-dbg=2.27-3ubuntu1 libc6-dev=2.27-3ubuntu1 libc6-i386-amd64-cross=2.27-3ubuntu1cross1 libc6-dev:i386=2.27-3ubuntu1 libc6-amd64-cross=2.27-3ubuntu1cross1 libc-dev-bin=2.27-3ubuntu1

问题就解决了。

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐