WineHQ Stableをインストールできません(パッケージが破損しています)。

WineHQ Stableをインストールできません(パッケージが破損しています)。

Elementaryos HeraにWineをインストールしてこれに従いたいです。場所。私が犯した唯一の間違いは、Ubuntuストアでワインをインストールし、次に公式ワインストアでワインをインストールしようとしたことです。それからwineを2回インストールしたので、コマンドを使ってwineHQ stableをインストールしたところ、sudo apt-get install --install-recommends winehq-stable正しく動作しませんでした。そのため、端末に行き、コマンドを使用してどのdpkg --listワインベースのソフトウェアがインストールされているかを確認し、sudo apt-get --purge remove program実際にインストールされているすべてのソフトウェアを削除しました。ワインその名前で。これで、公式リポジトリからWineを再インストールしてからWineHQ Stable用のキーを追加し、上記の最初のコマンドを使用してインストールを試みました。しかし、このメッセージを受けました。

thenotorious@T430:~$ sudo apt-get install --install-recommends winehq-stable 
[sudo] password for thenotorious: 
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-stable : Depends: wine-stable (= 5.0.1~bionic)
E: Unable to correct problems, you have held broken packages.

この問題をどのように解決できますか?誰か私を助けてください。破損したパッケージを削除する方法を検索しましたが、ワインのすべてのフォルダを削除して削除したため、削除する必要があるパッケージが見つかりませんでした。あまり役に立ちません。

ベストアンサー1

まずワインを取り除きます。

  • PPAは、「ソフトウェアとアップデート」ユーティリティを実行し、「その他のソフトウェア」タブに移動して削除できます。 ここに画像の説明を入力してください。

wine 6.0をアンインストールするには、ターミナルで次のコマンドを実行します。

sudo apt remove --auto-remove winehq-stable

Wineを再インストールします(次のコマンドを実行します)

sudo dpkg --add-architecture i386

wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' (only Ubuntu 20.04)

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main' (only Ubuntu 20.10)

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' (only Ubuntu 18.04)

sudo apt update && sudo apt install --install-recommends winehq-stable

おすすめ記事