Apt
我正在嘗試在 Ubuntu 上安裝 Wine 6.0,但它不會讓我
我已經嘗試重新安裝,安裝,但我已經被 WINE 5.0 卡住了很長一段時間,我不知道為什麼!我是一個新的 linux 使用者,所以我真的不明白如何解決這個問題!這是將密鑰添加到我的 apt 並嘗試安裝後得到的結果。
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 resolve the situation: The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 6.0.1~hirsute-1) E: Unable to correct problems, you have held broken packages.
包來自 WineHQ,我完全按照這些說明進行操作:https ://www.winehq.org/announce/6.0.1
我的 Ubuntu 版本是 20.04
安裝到我的 PC 上的所有目前儲存庫
/etc/apt/sources.list:# deb cdrom:[Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1)]/ focal main restricted /etc/apt/sources.list: /etc/apt/sources.list:# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to /etc/apt/sources.list:# newer versions of the distribution. /etc/apt/sources.list:deb http://ca.archive.ubuntu.com/ubuntu/ focal main restricted /etc/apt/sources.list:# deb-src http://ca.archive.ubuntu.com/ubuntu/ focal main restricted /etc/apt/sources.list: /etc/apt/sources.list:## Major bug fix updates produced after the final release of the /etc/apt/sources.list:## distribution. /etc/apt/sources.list:deb http://ca.archive.ubuntu.com/ubuntu/ focal-updates main restricted /etc/apt/sources.list:# deb-src http://ca.archive.ubuntu.com/ubuntu/ focal-updates main restricted /etc/apt/sources.list: /etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu /etc/apt/sources.list:## team. Also, please note that software in universe WILL NOT receive any /etc/apt/sources.list:## review or updates from the Ubuntu security team. /etc/apt/sources.list:deb http://ca.archive.ubuntu.com/ubuntu/ focal universe /etc/apt/sources.list:# deb-src http://ca.archive.ubuntu.com/ubuntu/ focal universe /etc/apt/sources.list:deb http://ca.archive.ubuntu.com/ubuntu/ focal-updates universe /etc/apt/sources.list:# deb-src http://ca.archive.ubuntu.com/ubuntu/ focal-updates universe /etc/apt/sources.list: /etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu /etc/apt/sources.list:## team, and may not be under a free licence. Please satisfy yourself as to /etc/apt/sources.list:## your rights to use the software. Also, please note that software in /etc/apt/sources.list:## multiverse WILL NOT receive any review or updates from the Ubuntu /etc/apt/sources.list:## security team. /etc/apt/sources.list:deb http://ca.archive.ubuntu.com/ubuntu/ focal multiverse /etc/apt/sources.list:# deb-src http://ca.archive.ubuntu.com/ubuntu/ focal multiverse /etc/apt/sources.list:deb http://ca.archive.ubuntu.com/ubuntu/ focal-updates multiverse /etc/apt/sources.list:# deb-src http://ca.archive.ubuntu.com/ubuntu/ focal-updates multiverse /etc/apt/sources.list: /etc/apt/sources.list:## N.B. software from this repository may not have been tested as /etc/apt/sources.list:## extensively as that contained in the main release, although it includes /etc/apt/sources.list:## newer versions of some applications which may provide useful features. /etc/apt/sources.list:## Also, please note that software in backports WILL NOT receive any review /etc/apt/sources.list:## or updates from the Ubuntu security team. /etc/apt/sources.list:deb http://ca.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse /etc/apt/sources.list:# deb-src http://ca.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse /etc/apt/sources.list: /etc/apt/sources.list:## Uncomment the following two lines to add software from Canonical's /etc/apt/sources.list:## 'partner' repository. /etc/apt/sources.list:## This software is not part of Ubuntu, but is offered by Canonical and the /etc/apt/sources.list:## respective vendors as a service to Ubuntu users. /etc/apt/sources.list:# deb http://archive.canonical.com/ubuntu focal partner /etc/apt/sources.list:# deb-src http://archive.canonical.com/ubuntu focal partner /etc/apt/sources.list: /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security main restricted /etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security universe /etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu focal-security universe /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security multiverse /etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse /etc/apt/sources.list: /etc/apt/sources.list:# This system was installed using small removable media /etc/apt/sources.list:# (e.g. netinst, live or single CD). The matching "deb cdrom" /etc/apt/sources.list:# entries were disabled at the end of the installation process. /etc/apt/sources.list:# For information about how to configure apt package sources, /etc/apt/sources.list:# see the sources.list(5) manual. /etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main /etc/apt/sources.list:# deb-src https://dl.winehq.org/wine-builds/ubuntu/ hirsute main /etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ focal main /etc/apt/sources.list:# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main /etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main /etc/apt/sources.list:# deb-src https://dl.winehq.org/wine-builds/ubuntu/ groovy main /etc/apt/sources.list.d/boltgolt-ubuntu-howdy-focal.list:deb http://ppa.launchpad.net/boltgolt/howdy/ubuntu focal main /etc/apt/sources.list.d/boltgolt-ubuntu-howdy-focal.list:# deb-src http://ppa.launchpad.net/boltgolt/howdy/ubuntu focal main /etc/apt/sources.list.d/boltgolt-ubuntu-howdy-focal.list.save:deb http://ppa.launchpad.net/boltgolt/howdy/ubuntu focal main /etc/apt/sources.list.d/boltgolt-ubuntu-howdy-focal.list.save:# deb-src http://ppa.launchpad.net/boltgolt/howdy/ubuntu focal main /etc/apt/sources.list.d/google-chrome.list:### THIS FILE IS AUTOMATICALLY CONFIGURED ### /etc/apt/sources.list.d/google-chrome.list:# You may comment out this entry, but any other modifications may be lost. /etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main /etc/apt/sources.list.d/google-chrome.list.save:### THIS FILE IS AUTOMATICALLY CONFIGURED ### /etc/apt/sources.list.d/google-chrome.list.save:# You may comment out this entry, but any other modifications may be lost. /etc/apt/sources.list.d/google-chrome.list.save:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-focal.list:deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-focal.list:# deb-src http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-focal.list.save:deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-focal.list.save:# deb-src http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main /etc/apt/sources.list.d/nordvpn.list:deb https://repo.nordvpn.com//deb/nordvpn/debian stable main /etc/apt/sources.list.d/nordvpn.list.save:deb https://repo.nordvpn.com//deb/nordvpn/debian stable main /etc/apt/sources.list.d/openrazer-ubuntu-stable-focal.list:deb http://ppa.launchpad.net/openrazer/stable/ubuntu focal main /etc/apt/sources.list.d/openrazer-ubuntu-stable-focal.list:# deb-src http://ppa.launchpad.net/openrazer/stable/ubuntu focal main /etc/apt/sources.list.d/openrazer-ubuntu-stable-focal.list.save:deb http://ppa.launchpad.net/openrazer/stable/ubuntu focal main /etc/apt/sources.list.d/openrazer-ubuntu-stable-focal.list.save:# deb-src http://ppa.launchpad.net/openrazer/stable/ubuntu focal main /etc/apt/sources.list.d/polychromatic-ubuntu-stable-focal.list:deb http://ppa.launchpad.net/polychromatic/stable/ubuntu focal main /etc/apt/sources.list.d/polychromatic-ubuntu-stable-focal.list:# deb-src http://ppa.launchpad.net/polychromatic/stable/ubuntu focal main /etc/apt/sources.list.d/polychromatic-ubuntu-stable-focal.list.save:deb http://ppa.launchpad.net/polychromatic/stable/ubuntu focal main /etc/apt/sources.list.d/polychromatic-ubuntu-stable-focal.list.save:# deb-src http://ppa.launchpad.net/polychromatic/stable/ubuntu focal main /etc/apt/sources.list.d/windscribe-repo.list:deb https://repo.windscribe.com/ubuntu bionic main /etc/apt/sources.list.d/windscribe-repo.list.save:deb https://repo.windscribe.com/ubuntu bionic main /etc/apt/sources.list.d/wine.list:deb https://dl.winehq.org/wine-builds/ubuntu/ focal main /etc/apt/sources.list.d/wine-obs.list:deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_19.04 ./
修剪所有評論和其他儲存庫,你有這個:
deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main deb https://dl.winehq.org/wine-builds/ubuntu/ focal main deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
由於您使用的是 Ubuntu 20.04 aka焦點版本,因此只保留適用於它的條目(一次而不是兩次):
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
並從您的列表中刪除其他人。為比您的版本更新的版本提供軟體包的儲存庫:groovy和hirsute會導致兼容性衝突,可能是因為它們依賴於**焦點上尚不可用的軟體包版本。