0

I've been having problems with upgrading snapd with apt-get. I've tried running dpkg --configure -a and sudo apt-get install -f, but the system hangs indefinitely setting up snapd. I've also read numerous posts on how to resolve this issue, but unfortunately none of them have worked. Some posts seem promising, but my main problem is that I cannot uninnstall snapd because the subprocess new pre-removal script returned error exit status 1. Right before this error message, the system says the job for snapd.service and snapd.socket have been canceled. I have tried everything I know to try, and searched around the net, but would appreciate some insight from you all about this issue!

So far, I have tried: sudo apt purge snapd and sudo apt purge snapd ubuntu-core-launcher squashfs-tools, but I get the same results.

2 Answers2

0

Try this solution:

sudo apt purge snapd ubuntu-core-launcher squashfs-tools

Found here.

George Udosen
  • 36,677
0

Just to add more flesh to George's answer. I needed to

  1. cd /var/lib/dpkg/updates/
  2. sudo rm *
  3. sudo fuser -vki /var/lib/dpkg/lock (bc there was a lock on dpkg process)
  4. sudo systemctl stop snapd (stop the snapd process..if it's running)
  5. sudo rm -f /etc/apt/sources.list.d/* (solves: Internal Error no file name for snapd:amd64)
  6. sudo apt purge snapd ubuntu-core-launcher squashfs-tools

I'm not sure if steps 1) and 2) are necessary, but at the end of the day, this is what worked for me. I'm not sure, but could my system still reinstall snapd when I do sudo apt-get update/upgrade?