
我正在嘗試在 Ubuntu 系統上安裝 Wine,但無法完成安裝。我讀過無數其他問答,但似乎沒有一個能解決我的問題。當我嘗試安裝它時
sudo apt-get install wine
我收到這則訊息:
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 : Depends: wine1.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我嘗試使用 Synaptic:(酒包上有一個感嘆號而不是一個複選標記)
Could not apply changes!
Fix broken packages first.
我點擊修復包,然後出現這個錯誤:
E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
我也嘗試過類似的命令
sudo apt-get remove wine
sudo aptitude search wine
sudo dpkg -p Wine
但沒有一個能發揮同樣的作用。我現在很困惑,我可能會錯過一些簡單的事情。我是 Ubuntu 新用戶,所以我不知道高級方法和終端命令。難道我做錯了什麼?我只嘗試過此論壇中發布的解決方案和命令。先謝謝您的幫忙!
編輯:跑完後
uname -a; lsb_release -a; apt-cache policy wine wine1.6; sudo apt-get remove wine; sudo apt-get install -f
我得到:
Linux tommy-Lenovo-Z50-75 3.19.0-33-generic #38~14.04.1-Ubuntu SMP Fri Nov 6 18:17:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
apt-cache policy wine wine1.6
wine:
Installed: (none)
Candidate: 1:1.7.50-0ubuntu1
Version table:
1:1.7.50-0ubuntu1 0
500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ trusty/main amd64 Packages
1:1.6.2-0ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
wine1.6:
Installed: (none)
Candidate: 1:1.6.2-0ubuntu4
Version table:
1:1.6.2-0ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
sudo apt-get remove wine
Building dependency tree
Reading state information... Done
Package 'wine' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Reading package lists... Done
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
編輯:我試過了
$ sudo apt-get remove --purge wine
$ sudo apt-get install wine
即使在跑步之後sudo apt-get update
。問題仍然存在。
編輯(最後也是最後):在嘗試確定損壞的軟體包失敗後,我將把我的筆記型電腦格式化為 Ubuntu Gnome(最新版本)。目前版本我使用 Unity 運行 14.04 LTS。感謝您的幫助,該線程應該關閉。我的系統似乎缺少一些軟體包,因此由於它是新安裝的(兩週前),我將再次格式化它。再次感謝所有的回覆!
答案1
在終端機中輸入以下內容:
$ sudo apt-get remove --purge wine
$ sudo apt-get install wine
這應該會刪除所有保留的軟體包,並正確安裝 Wine。還要確保您沒有從原始程式碼安裝 Wine。
答案2
您目前沒有任何問題...證明如下:
$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
PPA也不存在問題。有一個
wine
Trusty 包,這個應該安裝套件wine1.7
用這個檢查一下關聯。正如在我的機器上測試過的那樣,它可以工作。該軟體包wine
強制安裝wine1.7
.恐怕您只是忘記運行命令sudo apt-get update
。顯然你同時做到了(根據你更新的問題)。該包
wine
「只是」一個元包。也可以wine
使用指令安裝sudo apt-get install wine1.7
答案3
這也將修復必要的連結。
> sudo apt-get install wine --fix-missing