A snap install attempt of selenium webdriver's or Chromium-chromedriver has ruined my package management

in flag
root@landicho:~# apt install --fix-broken
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/48.3 kB of archives.
After this operation, 164 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Preconfiguring packages ...
(Reading database ... 295137 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: snap "chromium" has "install-snap" change in progress
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 10
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

---snip--- I try all sorts of ways to clean this up, and they all fail. I have never been this stuck in some 15 years of using Ubuntu. I just want to eliminate the chromium and webdriver stuff to get my system normal again.

guiverc avatar
cn flag
I see `snap "chromium" has "install-snap" change in progress` so have you waited for that to complete? I have found snap updates (changes) can take awhile; esp. if the snap is open and it waits for the closure...
Someone avatar
my flag
Does this answer your question [dpkg error: "trying to overwrite file, which is also in..."](
user535733 avatar
cn flag
"*I try all sorts of ways to clean this up, and they all fail*" Since we don't know what you have tried, it seems likely that we will waste a lot of effort telling you to try the same ways again. Rather that waste their effort, many volunteers here who might be able to help won't bother and will move on to another question. You can get better and faster help if your question details what you tried and why each failed.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.