Kali Linux:运行升级/安装命令时未满足的依赖关系

Kali Linux:运行升级/安装命令时未满足的依赖关系

我在尝试升级时遇到未满足的依赖关系错误。当我尝试安装错误中提到的任何软件包时,同样的问题仍然存在。

我正在分享我认为可能有帮助的所有信息。

Sources.list 文件信息:

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://old.kali.org/kali sana main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

uname -a 命令输出

Linux debian-me 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux

apt-get 升级命令输出

The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not installed or
                            libc-dev
 clang-3.5 : Depends: libc6-dev but it is not installed
 libbluetooth-dev : Depends: libc6-dev but it is not installed or
                             libc-dev
 libexpat1-dev : Depends: libc6-dev but it is not installed or
                          libc-dev
 libfreetype6-dev : Depends: libc6-dev but it is not installed or
                             libc-dev
 libgnuradio-baz : Depends: libc6-dev but it is not installed
 libpcre3-dev : Depends: libc6-dev but it is not installed
 libstdc++-4.9-dev : Depends: libc6-dev (>= 2.13-5) but it is not installed
 libstdc++6-4.6-dev : Depends: libc6-dev (>= 2.13-5) but it is not installed
 libusb-dev : Depends: libc6-dev but it is not installed or
                       libc-dev
 libxft-dev : Depends: libc6-dev but it is not installed or
                       libc-dev
 ruby1.8-dev : Depends: libc6-dev but it is not installed
 ruby1.9.1-dev : Depends: libc6-dev but it is not installed
 zlib1g-dev : Depends: libc6-dev but it is not installed or
                       libc-dev
E: Unmet dependencies. Try using -f.

到目前为止,我已经尝试了各种论坛中建议的几乎所有内容(autoclean、、dpkg configure使用-f、尝试安装软件包),但仍然存在相同的错误。请帮助我被困住了。

答案1

你应该删除:

deb http://old.kali.org/kali sana main non-free contrib

从你的sources.list然后:

apt update && apt dist-upgrade

相关内容