GNU/Linux >> Linux の 問題 >  >> Debian

Ubuntu、Linux Mint、または Debian 10 に Wine Staging、Development、または Stable をインストールする方法 (依存関係の問題を回避する)

Wine は、Linux、macOS、および Android (実験的) で Microsoft Windows アプリケーションとゲームを実行できるようにする Windows 互換レイヤーです。 Wine で Windows アプリケーションを実行する場合、コードのエミュレーションや仮想化は行われないため、この名前が付けられました (Wine Is Not An Emulator)。

Wine をスタンドアロン アプリとして使用して、Microsoft Windows アプリケーションやゲームを直接起動したり、Linux の Lutris などのサードパーティ ツールを介して起動したりできます。 Wine は、Windows ゲームを Linux でプレイできるようにする Valve の Steam Play 互換レイヤーである Proton や、macOS および Linux 用の商用 Microsoft Windows 互換レイヤーである CrossOver でも使用されています。

See Ubuntu (および Linux Mint や Pop! _OS などの Ubuntu ベースの Linux ディストリビューション) と Debian 10 のユーザーが Wine をインストールしようとしていて、その過程で依存関係の問題に遭遇しているので、適切なインストールに関する記事を書こうと思いました。 Wine のステージングおよび開発ビルド (これらのビルドには依存関係の問題はありませんが、安定しています)。

多くの Ubuntu または Debian ユーザーは、WineHQ インストール ページに移動し、公式の Wine リポジトリを追加してから、Wine 開発またはステージング ビルドをインストールしようとしますが、依存関係が失われます:

$ sudo apt install wine-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:
 wine-staging : Depends: wine-staging-amd64 (= 4.15~disco) but it is not going to be installed
                Depends: wine-staging-i386 (= 4.15~disco)
E: Unable to correct problems, you have held broken packages.

このエラー メッセージはまったく役に立たないため、ユーザーは欠落している依存関係が何であるかさえわかりません。ただし、これをさらに調査すると、最終的には次のようになります。

$ sudo apt install wine-staging-amd64 wine-staging-i386
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:
 wine-staging-amd64 : Depends: libfaudio0 (>= 19.06.07) but it is not installable
..........................

だから libfaudio0 ワインのステージングと開発への依存の欠如です。この依存関係は、2019 年 3 月にリリースされた Wine 4.5 で追加され、それ以降にリリースされたすべての Wine ビルドに必要ですが、現在は Wine Stable (4.0.2 バージョン) には必要ありません。

この依存関係は、Wine プロジェクトの一部ではないため、公式の WineHQ Ubuntu および Debian 10 リポジトリでは直接利用できません。ユーザーがこのパッケージを個別にダウンロードしてインストールする必要があることは、WineHQ Ubuntu および Debian のインストール ページの上部に (フォーラム投稿へのリンクと共に) 記載されていますが、多くのユーザーはこの部分を無視/読まない.一方、古い Wine ビルドからアップグレードする人や、すでに WineHQ リポジトリを追加している人は、WineHQ の公式インストール ページにアクセスできないため、この非常に重要な詳細に気付かないのです。

また、WineHQ の公式 Ubuntu および Debian インストール ページで libfaudio0 のダウンロードが推奨されているという問題もあります。 問題のあるリポジトリを使用せずにインストールします:

  • ユーザーは、フォーラムのリンクが Ubuntu / Debian リポジトリ リストを指しているため、正確に何をダウンロードすればよいかについて混乱する可能性があります (たとえば、amd64 ビルドと i386 ビルドの両方が必要であることを知らない可能性があります)。
  • libfaudio0 をダウンロードしてインストールするだけの場合 リポジトリを追加しないと、Wine を更新するために後でこのパッケージを更新する必要がある場合があります (たとえば、既に libfaudio0 を持っていた 15. *. * またはそのようなものがインストールされていますが、最新の Wine Staging には libfaudio0 が必要です 2007 年 6 月 19 日より新しいバージョン) であり、このパッケージは公式の WineHQ リポジトリにないため、アップグレードは失敗します。


この記事は、Ubuntu 19.10、19.04、18.04、または 16.04、Linux Mint 19 の Wine Staging and Development (および Stable ですが、現時点では問題ありません) のシンプルでわかりやすいインストール手順を提供することで、この問題を解決することを目的としています。 *と 18。 *提供します。 Debian 10 は、Wine を今インストールするだけでなく、将来の Wine のアップグレードにも使用できます。 WineHQ インストール ページ libfaudio0 からのダウンロードが推奨されている Wine OBS リポジトリを使用します。 .この OBS リポジトリには、Wine Stable、Development、Staging の最新バージョンも含まれているため、このリポジトリと WineHQ リポジトリの両方を追加するのではなく、このリポジトリを使用して必要なものをすべて取得するだけで済みます。

少しややこしいかもしれませんが、以下のインストール ガイドは簡単です。

libfaudio0 がないことに注意してください。 Debian bullseye / sid および今後の Ubuntu 19.10 バージョンは依存関係になっているため、これは古いバージョンのみの問題です。

おすすめ:Lutris を使用して Linux で Windows ゲームをプレイする方法 (クイック スタート ガイド)

Wine Staging、Development、または Stable を Ubuntu (および Linux Mint) または Debian 10 にインストールする方法

Ubuntu (および Linux Mint など) および Debian 用の Wine OBS リポジトリを追加します。 libfaudio0 を含む (https://dl.winehq.org とは対照的に この依存関係を持たない WineHQ リポジトリ):

  • Ubuntu 19.04 (および Pop! _OS 19.04 など、この Ubuntu バージョンに基づく他の Linux ディストリビューション):
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04/Release.key | sudo apt-key add -
echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
sudo apt update

  • Ubuntu 18.04 または Linux Mint 19. * (および Pop! _OS 18.04 など、この Ubuntu バージョンに基づく他の Linux ディストリビューション):
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | sudo apt-key add -
echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
sudo apt update

  • Ubuntu 16.04 または Linux Mint 18。*:
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_16.04/Release.key | sudo apt-key add -
echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_16.04 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
sudo apt update

  • Debian 10 (バスター):
wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add -
echo "deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list
sudo apt update

これらのコマンドは、リポジトリ キーをダウンロードして追加します。次に、Wine OBS リポジトリを追加します。 /etc/apt/sources.list.d/wine-obs.list を追加 、次にソフトウェア ソースを更新します。

後の編集:Ubuntu 20.10、20.04、および 19.10 (および Pop! _OS 20.10、20.04、または 19.10 などの Ubuntu バージョンに基づく他の Linux ディストリビューション) の場合、OBS Wine リポジトリを追加しないでください。メインワインレポジトリ。 いずれにしても、libfaudio は公式の Ubuntu 20.10、20.04、および 19.10 リポジトリで利用可能であり、Wine OBS リポジトリを使用すると、実際にはこのバージョンの Ubuntu で依存関係の問題が発生するためです:

  • Ubuntu 19.10:
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
echo "deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main" | sudo tee /etc/apt/sources.list.d/wine.list
sudo apt update

  • Ubuntu 20.04 / Linux Mint 20:
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
echo "deb https://dl.winehq.org/wine-builds/ubuntu/ focal main" | sudo tee /etc/apt/sources.list.d/wine.list
sudo apt update

  • Ubuntu 20.10:
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
echo "deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main" | sudo tee /etc/apt/sources.list.d/wine.list
sudo apt update

Wine Staging、Development、または Stable を Ubuntu (および Linux Mint、Pop! _OS など) または Debian にインストールできるようになりました:

  • ワイン生産 :
sudo apt install --install-recommends winehq-staging

  • ワイン開発 :
sudo apt install --install-recommends winehq-devel

  • ワイン納屋 :
sudo apt install --install-recommends winehq-stable


Debian
  1. Ubuntu 12.10、LinuxMint14にVLC2.0.6をインストールする方法

  2. APT PPA リポジトリから Ubuntu、Debian、または Linux Mint に Oracle Java 14 (JDK 14) をインストールする方法

  3. Ubuntu、Debian、または Linux Mint でリポジトリ内のすべてのパッケージを一覧表示する方法 [APT]

  1. Ubuntu 18.04、Debian 9、LinuxMint19にPipをインストールする方法

  2. Ubuntu 11.10 / 12.04、LinuxMint12にVLC1.1.13をインストールする方法

  3. Ubuntu、Debian、または Linux Mint に Node.js と npm をインストールして構成する方法

  1. Ubuntu、Debian、Mintに開発ツールをインストールする方法

  2. Ubuntu / Debian /LinuxMintでwxWidgetsをコンパイルしてインストールする方法

  3. Oracle Java 16 を Debian、Ubuntu、Pop! にインストールする方法_APT PPA リポジトリを使用する OS または Linux Mint