私は Linux が初めてで、最新のワインにアップグレードする必要がありますが、エラーが発生しました:
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/で試しました
私は多くのステップを実行しました:
- OS
~$ 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.
- 次の 2 つのコマンドは、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
- そして、これら 2 つのコマンドはインストールを行います。
~$ 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などのさまざまなものを試しましたが、それでも同じです。