WSL2のUbuntu 22.04 LTSにWineがインストールできない

Table of Contents
$ 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 (= 9.0.0.0~jammy-1)
E: Unable to correct problems, you have held broken packages.

公式ドキュメントに従ってんのにこれ
解決策はこれ
https://askubuntu.com/questions/1502078/wine-installation-error-winehq-stable-dependent-wine-stable-9-0-0-0-0jamm

以下訳

sudo apt install aptitudeでaptitude入れてsudo aptitude install winehq-stable

で最初に出てくる↓に対してnで拒否ると色んなライブラリがずらーっと一杯出てくるのでy

     Keep the following packages at their current version:
1)     winehq-stable [Not Installed]

すると途中でもっかい確認が入る↓のでY

Do you want to continue? [Y/n/?] Y

で最新版が入る

カテゴリー: IT パーマリンク

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です