In using Kubuntu 20.04 and have lots of issues with snap that I can work around. I have a specific issue with the chromium browser not installing:
snap install chromium error: cannot perform the following tasks: Run configure hook of "chromium" snap if present (run hook "configure": cannot perform operation: mount --rbind /home /tmp/snap.rootfs_U0ZnmW//home: Permission denied)
I can live with this and find an alternative source however it is affecting apt:
apt-get -yfu dselect-upgrade Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: chromium-browser 0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade. Need to get 48.3 kB of archives. After this operation, 164 kB of additional disk space will be used. Get:1 http://au.archive.ubuntu.com/ubuntu focal-updates/universe amd64 chromium-browser amd64 1:85.0.4183.83-0ubuntu0.20.04.2 [48.3 kB] Fetched 48.3 kB in 0s (110 kB/s)
Preconfiguring packages ... (Reading database ... 559004 files and directories currently installed.) Preparing to unpack .../chromium-browser_1%3a85.0.4183.83-0ubuntu0.20.04.2_amd64.deb ... Installing the chromium snap Checking connectivity with the snap store Installing the chromium snap error: cannot perform the following tasks: Run configure hook of "chromium" snap if present (run hook "configure": cannot perform operation: mount --rbind /home /tmp/snap.rootfs_xemBfl//home: Permission denied) dpkg: error processing archive /var/cache/apt/archives/chromium-browser_1%3a85.0.4183.83-0ubuntu0.20.04.2_amd64.deb (--unpack): new chromium-browser package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/chromium-browser_1%3a85.0.4183.83-0ubuntu0.20.04.2_amd64.deb
Since chromium is not installing via apt or snap I cannot remove/purge it. How do I stop apt from wanting to install chromium via snap?
I've tried removing /var/cache/apt/archives/chromium-browser_1%3a85.0.4183.83-0ubuntu0.20.04.2_amd64.deb but apt always gets it back somehow.