在 kali linux 上下载 wine32 时出错 - “软件包‘wine32’没有安装候选项”

在 kali linux 上下载 wine32 时出错 - “软件包‘wine32’没有安装候选项”
\\the command I wrote:
root@kali:~# apt-get install wine32
\\what I got:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package wine32 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'wine32' has no installation candidate

I tried adding to /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://old.kali.org/kali sana main non-free contrib
deb http://old.kali.org/kali moto main non-free contrib 

然后再次尝试安装,仍然出现同样的错误(使用“apt-get install wine32”)

我也尝试使用'dpkg --add-architecture i386 && apt-get update && apt-get install wine32'

答案1

将以下三项添加到/etc/apt/sources.list

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

然后运行:

sudo apt-get update
sudo apt-get install wine32

参考链接:https://www.youtube.com/watch?v=PP4LUpkUyKA

答案2

添加以下行:

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

进入/etc/apt/sources.list;然后,

sudo apt-get install wine32

它应该可以工作。

相关内容