除了我正在认真考虑的新安装之外,我真的需要一些关于此事的新想法。我还没有想到这里有一个相关的解决方案,天哪,我尝试了很多可能的解决方案。比如
apt-get install -f
apt-get update -f
apt-get -f install libc6-amd64
apt-get install libc6-dev
apt-get install libc6=2.19-0ubuntu6.5 libc6-dev=2.19-0ubuntu6.5
apt-get install libc6=2.19-0ubuntu6.9 libc6-dev=2.19-0ubuntu6.9
apt-cache depends libc6 | grep -Po 'Depends:\s+\K[^ ]+$'
apt-get install --dry-run --reinstall $(apt-cache depends libc6 | grep -Po 'Depends:\s+\K[^ ]+$' | tr '\n'
以及这个解决方案。
我无法使用它,因为无法安装任何东西,此消息一直显示:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libc6-dbg:
Depends: libc6 (= 2.19-0ubuntu6.5) but 2.19-0ubuntu6.9 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
还有这个:
[...] depends on libgcc1 (>= 1:4.1.1)
通常出现如下内容:
$ apt-cache depends libc6:amd64 | grep -Po 'Depends:\s+\K[^ ]+$' libgcc1
$ apt-cache depends libgcc1:amd64 | grep -Po 'Depends:\s+\K[^ ]+$'
gcc-4.9-base
libc6
multiarch-support
$ apt-cache depends multiarch-support | grep -Po 'Depends:\s+\K[^ ]+$' libc6
$ sudo apt-get install --dry-run --reinstall $(apt-cache depends libc6:amd64 | grep -Po 'Depends:\s+\K[^ ]+$' | tr '\n' ' ')
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-dbg : Depends: libc6 (= 2.19-0ubuntu6.5) but 2.19-0ubuntu6.9 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ sudo apt-get install --dry-run --reinstall $(apt-cache depends libc6-dbg:amd64 | grep -Po 'Depends:\s+\K[^ ]+$' | tr '\n' ' ')
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-dbg : Depends: libc6 (= 2.19-0ubuntu6.5) but 2.19-0ubuntu6.9 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
sudo apt-get autoclean
删除 sources.list 文件并创建新的 sources.list...
sudo rm /etc/apt/sources.list
然后输入
sudo software-properties-gtk
这将打开 software-properties-gtk 并自动创建一个 newsources.list。
然后将服务器更改为美国或您选择的任何其他服务器。您必须从新对话框中启用存储库才能创建新的 sources.list。
勾选所有框然后单击“恢复”,再单击“关闭”。
需要恢复默认存储库
sudo apt-get update && sudo apt-get dist-upgrade -y
(最好在安装之前备份此文件,以便在发生此类情况时进行恢复)
现在安装任何东西!
答案2
(暂时)删除包libc6-dbg
:
sudo apt-get remove -f libc6-dbg
没有必要运行任何东西。你只需要在寻找软件错误时获得更有用的调试输出。
如果您再次需要该软件包,您可以像其他软件包一样重新安装它。如果仍然存在冲突,请打开一个新问题并包含 的输出apt-cache policy libc6 libc6-dbg
。