我是一名 Linux 新用户。我使用 Kali Linux 并尝试通过以下方式安装 wine:
sudo apt-get install wine winetricks
然而,这并没有奏效,因为存在一些错误。之后,我无法安装、更新或执行任何与 apt-get 相关的操作。运行 apt-get 会出现此错误:
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:
wine : Depends: wine1.6 but it is not installed
E: Unmet dependencies. Try using -f.
运行 apt-get install -f 会尝试安装 wine 1.6,但失败了。以下是该命令的初始输出:
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libp11-kit-gnome-keyring wine1.6 wine1.6-i386
Suggested packages:
dosbox:any winbind
Recommended packages:
fonts-droid wine-gecko2.21 wine-mono0.0.8
The following NEW packages will be installed:
libp11-kit-gnome-keyring wine1.6 wine1.6-i386
0 upgraded, 3 newly installed, 0 to remove and 283 not upgraded.
20 not fully installed or removed.
Need to get 0 B/16.6 MB of archives.
After this operation, 120 MB of additional disk space will be used.
Do you want to continue? [Y/n]
我无法安装其他任何东西,因为这个 wine 依赖错误妨碍了我。运行 apt-get clean 对此事没有任何作用。我该如何解决这个问题?无论是一劳永逸地删除 wine,还是很好地安装 wine,只要有效且不会破坏系统,对我来说都很好。
答案1
我必须通过 dpkg -r 删除依赖项
全套行动是:
sudo dpkg -r libwine:i386
sudo dpkg -r kali-linux-full
sudo dpkg -r regripper
sudo dpkg -r sqldict
sudo dpkg -r ollydbg
sudo dpkg -r wine
之后,一切恢复正常。