LoginSignup
0
0

More than 1 year has passed since last update.

WineHQ公式のUbuntuインストール手順不具合対応 (Fix install process)

Last updated at Posted at 2022-09-27
おはようございます。(ただいまAM6:20)ねむねむ(ふわぁぁぁ〜
WineHQ公式のインストール手順に(ぶんぶん)振り回されて完徹明けの筆者です。
公式のUbuntu向けインストール手順を調べていて、なんとかインストール済までもっていくことができたので、共有します。

-- 追記 2022/10/20 --

winehqの公式がDevelopment版について、7.18から7.19にバージョンアップした際に、サイトのインストール手順のapt-keyのdepricated対策をしたようです。

以下、公式より引用です。

--ここから-------------------------------------------------

・Apt-key is now deprecated

Previously, apt-key was used to add the Wine key. If you get this warning, remove the Wine key with: sudo apt-key del "D43F 6401 4536 9C51 D786 DDEA 76F1 A20F F987 672F" And remove the the line about the WineHQ repository from /etc/apt/sources.list(.d/*).

--ここまで-------------------------------------------------

意訳すると、以前はapt-keyを使ってwine keyを追加してたけど、もし警告が出てたなら、apt-keyでキーを削除する行をやめて、公式リポジトリより、/etc/apt/sources.list(.d/*)のキーを削除するようにしたよ、的な感じでしょうか。

というわけで、この記事は過去のものとなりました。

環境

バージョン エディション
Zorin OS 16.1 (※) Pro
WineHQ 7.18 Developer

(※: Ubuntu 20.04相当

WineHQのUbuntu向けインストール手順ページ

公式からですが、途中に追加の手順が入るので、変更がない手順も引用しておきます。

Preparation

bash
$ sudo dpkg --add-architecture i386

Add the repository

bash
$ sudo mkdir -pm755 /etc/apt/keyrings
$ sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Move the key file (追加)

bash
+ sudo mv /etc/apt/keyrings/winehq-archive.key /usr/share/keyrings/
Select your Ubuntu version and download the WineHQ sources file:
Ubuntu 22.04 (Jammy Jellyfish) Linux Mint 21.x $ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
Ubuntu 20.04 (Focal Fossa) Linux Mint 20.x $ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/focal/winehq-focal.sources
Ubuntu 18.04 (Bionic Beaver) Linux Mint 19.x $ sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/winehq-bionic.sources

Install Wine

Stable branch $ sudo apt install --install-recommends winehq-stable
Development branch $ sudo apt install --install-recommends winehq-devel
Staging branch $ sudo apt install --install-recommends winehq-staging

sudo apt update のところで公開鍵エラーになっていた原因は、Add the repository でキーファイルを作成したキーリングディレクトリにダウンロードしてくるのですが、その後にダウンロードする /etc/apt/sources.list.d/winehq-focal.sources の最下行(Signed-By項目)でキーファイルの指定先ディレクトリが違っていたからという(~_~:::
そりゃあ、がんばってキーファイルをダウンロードしてきても読み込めんわな、と。

なので、 Move the key file (追加) でキーファイルを指定先ディレクトリに移動してやれば、 sudo apt update の公開鍵エラーも消え、WineHQがダウンロードできるようになる、という仕組みです。

ただ、この方法自体、あまり良いやりかたではないかもしれない(セキュリティ的に)ので、あくまで公式が手順を修正するまでの暫定手順かな、という感じです。

現在AM7:37。
これで心置きなく眠れます(笑
つぎの投稿はいつになるかわかりませんが、気が向いてなになトピックがあれば投稿しますんで、そのときまでまた〜 (^_^)/~~~
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0