无法在 ubuntu 22.04 上安装 wine7
我已经按照 winehq 上的说明操作,但
The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
winehq 上的说明:
$ sudo dpkg --add-architecture i386
没有输出
然后
wget -nc https://dl.winehq.org/wine-builds/winehq.key
输出
--2022-05-08 12:41:22-- https://dl.winehq.org/wine-builds/winehq.key
Connecting to 127.0.0.1:7899... connected.
Proxy request sent, awaiting response... 200 OK
Length: 3220 (3.1K) [application/pgp-keys]
Saving to: ‘winehq.key’
winehq.key 100%[============================>] 3.14K --.-KB/s in 0s
2022-05-08 12:41:24 (41.3 MB/s) - ‘winehq.key’ saved [3220/3220]
然后
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
这是一个举动
然后
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
输出:
--2022-05-08 12:43:36-- https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
Connecting to 127.0.0.1:7899... connected.
Proxy request sent, awaiting response... 200 OK
Length: 165
Saving to: ‘winehq-jammy.sources’
winehq-jammy.sources 100%[============================>] 165 --.-KB/s in 0s
2022-05-08 12:43:38 (12.4 MB/s) - ‘winehq-jammy.sources’ saved [165/165]
然后
sudo apt update
输出:
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
然后是稳定分支
sudo apt install --install-recommends winehq-stable
输出:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
winehq-stable : Depends: wine-stable (= 7.0.0.0~focal-1)
E: Unable to correct problems, you have held broken packages.
更新
我已经成功安装了 wine
sudo apt install wine
命令,但是它没有界面,我不知道它是否正常工作。
答案1
我建议您使用“Bottles”来运行 win 应用程序。
您会在这里找到它- https://flathub.org/apps/details/com.usebottles.bottles