当尝试在我的 Debian 机器上安装 i3(窗口管理器)时,我遇到了一些有线依赖错误。
The following packages have unmet dependencies:
gsettings-desktop-schemas : Breaks: gnome-settings-daemon (< 3.19.92) but 3.14.2-3+deb8u1 is to be installed
Breaks: mutter (< 3.19.92) but 3.14.4-1~deb8u1 is to be installed
N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
上周六,在运行时apt-get upgrade
,Debian 从 8“Jessie”升级到 9“Stretch”。该问题是否与该升级有关?
在研究援助时,我找不到适合我情况的东西。虽然我非常喜欢 Debian,但我并不是高级用户。我将非常感谢任何支持。
apt-cache policy gnome-settings-daemon mutter
节目
gnome-settings-daemon:
Installed: 3.14.2-3+deb8u1
Candidate: 3.22.2-2
Version table:
3.22.2-2 0
500 http://ftp.de.debian.org/debian/ stable/main amd64 Packages
*** 3.14.2-3+deb8u1 0
500 http://ftp.de.debian.org/debian/ oldstable/main amd64 Packages
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
mutter:
Installed: 3.14.4-1~deb8u1
Candidate: 3.22.3-2
Version table:
3.22.3-2 0
500 http://ftp.de.debian.org/debian/ stable/main amd64 Packages
*** 3.14.4-1~deb8u1 0
500 http://ftp.de.debian.org/debian/ oldstable/main amd64 Packages
500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
答案1
造成冲突的来源混合在一起,特别是基于代号的存储库(“jessie”)和通用存储库(“stable”)。
现在您已经(部分)升级到 Debian 9,您需要编辑源代码,以便
- 所有涉及“oldstable”的行都被注释掉
- 所有提到“稳定”的行都指的是“拉伸”
- 所有引用“jessie”的行都引用“stretch”
通过指定版本代号,您将避免在下一个版本发布时突然升级。