在 Kali 2.0 上安装任何内容时出错

在 Kali 2.0 上安装任何内容时出错

我从 32 位更改为 64 位,但无法安装任何东西。一旦我安装了我使用的操作系统apt-get updateapt-get upgrade.现在我尝试安装的所有内容都会出现以下错误。

Reading package lists... Done
Building dependency tree       
Reading state information... Done
wine is already the newest version (1.8.5-1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 gcc-6-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed
 libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.24-8) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我尝试安装的任何东西。

例子:apt-get install wineapt-get install firmware-iwlwifi

我对unix很陌生。

答案1

你有没有尝试过apt-get -f install

如果你检查man apt-get你会发现

 -f, --fix-broken
   Fix; attempt to correct a system with broken dependencies in place. This
   option, when used with install/remove, can omit any packages to permit APT
   to deduce a likely solution. If packages are specified, these have to
   completely correct the problem. The option is sometimes necessary when
   running APT for the first time; APT itself does not allow broken package
   dependencies to exist on a system. It is possible that a system's dependency
   structure can be so corrupt as to require manual intervention (which usually
   means using dselect(1) or dpkg --remove to eliminate some of the offending
   packages). Use of this option together with -m may produce an error in some
   situations. Configuration Item: APT::Get::Fix-Broken.

相关内容