Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  36] [ 0]  / answers: 1 / hits: 39593  / 1 Year ago, tue, april 11, 2023, 4:51:07

I have recently upgraded my OS to Ubuntu 18.04 (fresh install via boot device). However, when trying the command:



sudo apt-get upgrade


It works fine until ~75% when it stops and says:



snapd.snap-repair.service is a disabled or a static unit, not starting it.


I'm not quite sure what this means and if I Crtl-Z to get out of it, any time I try to install anything I get:



E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


and have to restart my computer to install anything.


More From » apt

 Answers
2

I also had the same problem and I solved it like this:



sudo fuser -vki /var/lib/dpkg/lock
sudo apt purge snapd
sudo dpkg --configure -a
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install snapd

[#8188] Thursday, April 13, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kneducator

Total Points: 226
Total Questions: 111
Total Answers: 108

Location: Mexico
Member since Sun, Jul 25, 2021
3 Years ago
;