Error during upgrade on Ubuntu 16.04
Solution 1:
I guess your package manager list of packages and cache is obsolete.
but why?
You are using xenial
, one of the packages that you are trying to reach is libpam-systemd
, which your pkg manager tries to fetch from here:
http://de.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libpam-systemd_229-4ubuntu11_amd64.deb
Which server responds you with a 404, that means it's does not exist.
If you check the main repository, you will see that it's not there too.
And if you search for libpam-systemd
in xenial-updates
section at Ubuntu packages. the result would be 229-4ubuntu16 while you are trying to reach 229-4ubuntu11, and the other thing is that this new version is available on your chosen repository. here it is.
What to do?
Update your lists:
sudo apt update
It should do the work for you.
However, if after updating the lists, you still got the problem, try removing these files and then run the above command again:
sudo rm /var/lib/apt/lists/*
sudo rm /var/cache/apt/*.bin