complete noob here, trying to update from 16.04 to 18.04 - but I'm facing an error with my package manager.
sudo apt-get install -f (after going through a few suggestions I found) results in this error:
Errors were encountered while processing: /var/cache/apt/archives/snapd_2.32.9_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Any clues on what I can do to fix this?
edit - adding full output of
sudo apt-get install -f:
Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libgtkmm-2.4-1v5 linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-headers-4.4.0-117 linux-headers-4.4.0-117-generic linux-headers-generic-lts-xenial linux-image-4.13.0-36-generic linux-image-4.4.0-117-generic linux-image-extra-4.13.0-36-generic linux-image-extra-4.4.0-117-generic linux-image-generic-lts-xenial Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: snapd The following packages will be upgraded: snapd 1 upgraded, 0 newly installed, 0 to remove and 147 not upgraded. 35 not fully installed or removed. Need to get 0 B/14,2 MB of archives. After this operation, 2 478 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 321112 files and directories currently installed.) Preparing to unpack .../snapd_2.33~14.04_amd64.deb ... Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded. Failed to stop snapd.socket: Unit snapd.socket not loaded. Failed to stop snapd.service: Unit snapd.service not loaded. dpkg: warning: subprocess old pre-removal script returned error exit status 5 dpkg: trying script from the new package instead ... Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded. Failed to stop snapd.socket: Unit snapd.socket not loaded. Failed to stop snapd.service: Unit snapd.service not loaded. dpkg: error processing archive /var/cache/apt/archives/snapd_2.33~14.04_amd64.deb (--unpack): subprocess new pre-removal script returned error exit status 5 Errors were encountered while processing: /var/cache/apt/archives/snapd_2.33~14.04_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)