我知道有人问了很多这样的问题,但没有人回答对我有帮助。
这是一个我已经解决了几个小时的错误。
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cmake : Depends: libcurl3 (>= 7.16.2) but it is not installable
imagemagick-6.q16 : Depends: libmagickcore-6.q16-2 (>= 8:6.8.8.2) but it is not installable
Depends: libmagickwand-6.q16-2 (>= 8:6.8.8.2) but it is not installable
recommends: libmagickcore-6.q16-2-extra
prince : Depends: libcurl3 (>= 7.16.2) but it is not installable
vlc : Depends: vlc-plugin-base (= 3.0.7-1) but it is not going to be installed
Depends: vlc-plugin-qt (= 3.0.7-1) but it is not going to be installed
Depends: vlc-plugin-vedio-output (= 3.0.7-1) but it is not going to be installed
Recommends: vlc-l10n (= 3.0.7-1) but it is not going to be installed
Recommends: vlc-plugin-notify (= 3.0.7-1) but it is not going to be installed
Recommends: vlc-plugin-samba (= 3.0.7-1) but it is not going to be installed
Recommends: vlc-plugin-skins2 (= 3.0.7-1) but it is not going to be installed
Recommends: vlc-plugin-video-splitter (= 3.0.7-1) but it is not going to be installed
Recommends: vlc-plugin-visualization (= 3.0.7-1) but it is not going to be installed
xserver-xorg: Depends: xserver-xorg-video-all but it is not going to be installed or
xorg-driver-video
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
这是我的source.list
:
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
# Security updates
deb http://security.debian.org/ buster/updates main contrib non-free
deb-src http://security.debian.org/ buster/updates main contrib non-free
deb http://security.debian.org/debian-security buster/updates main
## Debian mirror
# Base repository
#deb http://ftp.debian.org/debian stretch main contrib non-free
#deb http://ftp.de.debian.org/debian buster main
deb http://ftp.debian.org/debian buster main contrib non-free
deb-src http://ftp.debian.org/debian buster main contrib non-free
# Stable updates
deb http://ftp.debian.org/debian buster-updates main contrib non-free
deb-src http://ftp.debian.org/debian buster-updates main contrib non-free
# Stable backports
deb http://ftp.debian.org/debian buster-backports main contrib non-free
deb-src http://ftp.debian.org/debian buster-backports main contrib non-free
我尝试过apt-get clean
,但sudo apt --fix-broken install
没有任何帮助。我尝试一一注释掉 source.list 中的存储库并运行,apt-get update && apt-get upgrade
但得到相同的错误。
如果我运行sudo apt-get install -f
或sudo apt --fix-broken install
控制台中开始出现另一条错误消息
E: Error, pkgProblemResolver::Resolve generated breaks, this may be cause by help packages
跑步sudo dpkg --get-selections | grep hold
什么也看不出来。
有任何想法吗?
答案1
问题的作者在评论中提供了以下解决方案。
也许它会对某人有所帮助。我通过使用 删除所有问题依赖项解决了问题
dpkg --remove --purge <name>
。之后我apt-get update && apt-get upgrade
又跑了。