我是 Linux 新手,我需要升级到最新的 wine,但我遇到了错误:
The following packages have unmet dependencies:
winehq-staging : Depends: wine-staging (= 6.6~groovy-1)
E: Unable to correct problems, you have held broken packages.
我之前在 https://linuxize.com/post/how-to-install-wine-on-ubuntu-18-04/尝试过
我做了很多步骤:
- 操作系统
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Zorin
Description: Zorin OS 15.3
Release: 15
Codename: bionic
- 验证 64 位架构。
~$ dpkg --print-architecture
amd64
- 查看是否安装了 32 位架构。
~$ dpkg --print-foreign-architectures
i386
- 获取并安装存储库密钥。
~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
‘winehq.key’ saved
~$ sudo apt-key add winehq.key
OK
- 添加存储库。
~$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Fetched 252 kB in 4s (70.6 kB/s)
Reading package lists... Done
- 更新包数据库。
~$ sudo apt update
Fetched 252 kB in 4s (64.5 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
- 接下来的两个命令将 libfaudio0 .deb 包下载到本地活动目录中。
~$ wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/amd64/libfaudio0_19.07-0~bionic_amd64.deb
‘libfaudio0_19.07-0~bionic_amd64.deb’ saved
~$ wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/i386/libfaudio0_19.07-0~bionic_i386.deb
libfaudio0_19.07-0~bionic_i386.deb’ saved
- 这两个命令进行安装。
~$ sudo apt install ./libfaudio0_19.07-0~bionic_amd64.deb
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libfaudio0:i386
The following packages will be DOWNGRADED:
libfaudio0
0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 0 not upgraded.
Need to get 95.9 kB of archives.
After this operation, 544 kB disk space will be freed.
Do you want to continue? [Y/n] Y
~$ sudo apt install ./libfaudio0_19.07-0~bionic_i386.deb
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
libfaudio0:i386
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 99.5 kB of archives.
After this operation, 300 kB of additional disk space will be used.
- 安装葡萄酒。
~$ sudo apt install --install-recommends winehq-staging
Reading package lists... Done
Building dependency tree
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-staging : Depends: wine-staging (= 6.6~groovy-1)
E: Unable to correct problems, you have held broken packages.
- 尝试更新 --fix-missing
~$ sudo apt-get update --fix-missing
Fetched 252 kB in 4s (70.5 kB/s)
Reading package lists... Done
- 安装酒。
~$ sudo apt install --install-recommends winehq-staging
The following packages have unmet dependencies:
winehq-staging : Depends: wine-staging (= 6.6~groovy-1)
E: Unable to correct problems, you have held broken packages.
- 尝试更新和升级
~$ sudo apt update
~$ sudo apt upgrade
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 289 kB of archives.
After this operation, 244 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu bionic/main i386 libfaudio0 i386 20.10-bionic~1ppa1 [150 kB]
Get:2 http://ppa.launchpad.net/cybermax-dexter/sdl2-backport/ubuntu bionic/main amd64 libfaudio0 amd64 20.10-bionic~1ppa1 [139 kB]
- 安装酒。
~$ sudo apt install --install-recommends winehq-staging
The following packages have unmet dependencies:
winehq-staging : Depends: wine-staging (= 6.6~groovy-1)
E: Unable to correct problems, you have held broken packages.
我不知道如何解决它,我尝试了不同的方式,Codename:
如 groovy 和其他但仍然相同。