我通过软件更新程序从20.04升级到22.04,但是现在dpkg(1)说包系统坏了:
firefox-locale-en: Depends: firefox (>= 1:1snap1-0ubuntu2) but 105.0+build2-0ubuntu0.20.04.1 is installed它告诉我运行“apt install -f",这将产生:
The following additional packages will be installed:
firefox
The following packages will be upgraded:
firefox
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.然后:
==> Installing the firefox snap
error: cannot perform the following tasks:
- Run hook connect-plug-host-hunspell of snap "firefox" (run hook "connect-plug-host-hunspell": cannot perform operation: mount --rbind /home /tmp/snap.rootfs_sz424D//home: Permission denied)
dpkg: error processing archive /var/cache/apt/archives/firefox_1%3a1snap1-0ubuntu2_amd64.deb (--unpack):"apt -修复-破坏安装“也以同样方式失败。好吧,我只需删除firefox:
The following packages have unmet dependencies:
firefox-locale-en : Depends: firefox (>= 1:1snap1-0ubuntu2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).因此,firefox-locale-en由于安装错了火狐而失去了依赖性。但是由于firefox-locale-en,我不能安装新的火狐,也不能删除旧的火狐。
对接下来该做什么有什么想法吗?
谢谢。
泰瑞
发布于 2022-10-01 10:30:47
尝试删除违规的firefox包。
sudo dpkg --remove --force-remove-reinstreq firefox-locale-en如果这不起作用,尝试在该命令中替换firefox。然后运行sudo apt update。
最后,您不应该安装任何火狐.deb包。如果成功,可以使用sudo snap install firefox或直接从Mozilla安装安装`.deb版本来安装snap包。
发布于 2022-12-11 15:57:13
在从20.04到22.04之间更新笔记本电脑时,我也遇到了同样的问题。
原因是我的/home目录是一个符号链接(to /u/home,其中/u是一个大型数据分区)。我能够通过以下方式解决这个问题:
mv /home /home.old; mkdir /homeapt --fix-broken installrmdir /home; mv /home.old /home因为几个原因,我不喜欢snap --这只是增加了一个新的原因。
https://askubuntu.com/questions/1433185
复制相似问题