我尝试过重新安装、安装,但我已经被 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
我的电脑上安装的所有当前存储库
/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 ./
答案1
修剪所有评论和其他存储库,您将得到以下内容:
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 又名焦点发布时,仅保留相应的条目(并且一次而不是两次):
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
并将其他人从您的列表中删除。为比您的版本更新的版本提供软件包的存储库:时髦的和多毛会导致兼容性冲突,可能是因为它们依赖于尚不可用的软件包版本焦点。