I went through Software Updater to upgrade from 20.04 to 22.04, but now dpkg(1) says the package system is broken:
firefox-locale-en: Depends: firefox (>= 1:1snap1-0ubuntu2) but 105.0+build2-0ubuntu0.20.04.1 is installed
It tells me to run "apt-get install -f", which yields:
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.
And then:
==> 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 --fix-broken install" fails the same way. Fine; I'll just remove 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).
So firefox-locale-en
has a broken dependency due to the wrong firefox installation. But I can't install the new firefox or remove the old one because of firefox-locale-en
.
Any ideas on what to try next?
Thanks.
Terry
sudo snap remove firefox
If then you wish to re-install the APT version refer to this guide – graham Sep 30 '22 at 20:38