破碎的依赖关系

破碎的依赖关系

操作系统:ElementaryOS 6 Odin - 基于 Ubuntu 20.04.3 LTS 构建

我对 lib-granite 依赖性有一些问题,可能与基本调整有关。查看论坛时,我发现了一些有关我的问题的主题,但对我的情况没有解决方案。

这是我每次尝试更新系统时都会遇到的错误:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
    libgranite6 : Depends: lib-granite-common (>= 6.1.2+r2170+pkg121~ubuntu6.1) but 6.1.2-1 is to be installed 
    mc : Depends: mc-data (= 3:4.8.24-2ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

运行修复损坏的命令我收到此错误:

(Reading database ... 145521 files and directories currently installed.)
Preparing to unpack .../libgranite-common_6.1.2+r2170+pkg121~ubuntu6.1_all.deb ...
Unpacking libgranite-common (6.1.2+r2170+pkg121~ubuntu6.1) over (6.1.2-1) ...
dpkg: error processing archive /var/cache/apt/archives/libgranite-common_6.1.2+r2170+pkg121~ubuntu6.1_all.deb (--unpack):
trying to overwrite '/usr/share/metainfo/granite.appdata.xml', which is also in package libgranite5:amd64 5.3.0-1
Errors were encountered while processing: /var/cache/apt/archives/libgranite-common_6.1.2+r2170+pkg121~ubuntu6.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果我尝试手动清除 libgranite5 或 libgranite6,我会收到类似的依赖项错误。

我已经安装了 Pantheon-Tweaks 而不是Elementary-tweaks,但错误仍然存​​在。现在我什至无法安装像 synaptic 或类似的包。

希望有人能帮助我解决这个问题。

相关内容