1. 程式人生 > >ubuntu 18.04 通過聯網方式安裝wine

ubuntu 18.04 通過聯網方式安裝wine

lds creat all 3.0 再次 ati ould 倉庫 linux m

ubuntu 18.04 通過聯網方式安裝wine

1.如果是64位機器,先開啟允許32位架構程序運行

sudo dpkg --add-architecture i386

2.添加元wine源碼安裝倉庫

對於ubuntu18.10
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
sudo apt-key add Release.key
sudo apt-add-repository ‘deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard ./‘

對於Linux Mint 17.x
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
sudo apt-key add Release.key
sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main‘

對於Linux Mint 18.x
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key


sudo apt-key add Release.key
sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main‘

對於Linux Mint 19.x
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
sudo apt-key add Release.key
sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main‘

我的ubuntu18.04 LTS是 Linux Mint 18.x 這個類型的,自己選擇合適自己的.

3.更新包

sudo apt-get update

4.選擇安裝wine版本

Stable branch----穩定版本(一般是選擇這個了)
sudo apt-get install --install-recommends winehq-stable

Development branch(開發版本)
sudo apt-get install --install-recommends winehq-devel

Staging branch(分支版本)
sudo apt-get install --install-recommends winehq-staging

至此, wine安裝完成......

一些問題記錄,如果對於第二步, 添加源倉庫後,執行第三步失敗

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 (= 3.0.4~cosmic)
E: Unable to correct problems, you have held broken packages.

代表第二步的源倉庫選擇錯誤了,重新選擇就ok....

方法:

  • 1.vim /etc/apt/sources.list 到最後面刪除剛剛添加進去的源倉庫
  • 2.重新執行第二步的 sudo apt-add-repository....... 語句, 添加適合自己機器的源倉庫
  • 3.再次 sudo apt-get update
  • 4.執行第四步

ubuntu 18.04 通過聯網方式安裝wine