.png)
私はElementaryos HeraにWineをインストールしたかったので、これに従いましたサイト私が犯した唯一の間違いは、Ubuntuリポジトリからwineをインストールした後、公式wineリポジトリからwineをインストールしようとしたことです。その後、コマンドを使用してwineHQ stableをインストールしました。wineをsudo apt-get install --install-recommends winehq-stable
2回インストールしたため、期待通りに動作しませんでした。そこで、ターミナルに行き、コマンドを使用して、dpkg --list
インストールされているwineベースのソフトウェアを確認し、コマンドを使用してそれらをアンインストールしました。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.
これを修正するにはどうすればいいでしょうか? 誰か助けてください。壊れたパッケージを削除する方法をすでに検索しましたが、wine のすべてのフォルダーをアンインストールして削除したため、削除すべきパッケージを見つけることができませんでした。また、壊れたパッケージが原因で wineHQ stable をインストールできないことに関するフォーラムも検索しましたが、何も役に立ちませんでした。
答え1
まずWineをアンインストールする
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
答え2
公式リポジトリでは見つかりませんでしたwinehq-stable
。PPA からのものか、wine.org からインストールしているようです。
を見つけるのに問題wine-stable
があります。公式バイオニックリポジトリ. セクションwine-stable
にありますuniverse
。
このuniverse
セクションは、Ubuntu コア チームによってサポートされていないパッケージ用です。システムではデフォルトで有効になっていません。/etc/apt/sources.list
または を確認してください/etc/apt/sources.list.d/*
。以下のような内容が表示されない場合は、先に進んで追加してください (他のエントリで使用されているミラーと一致するように URL を変更してください)。
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://nl.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://nl.archive.ubuntu.com/ubuntu/ bionic universe
それを追加したら、 に進みapt update
、もう一度試してください。問題が再度発生する場合は、 を試してくださいapt --fix-broken install
。