sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgrade
mkdir wily && cd wily
wget http://old-releases.ubuntu.com/ubuntu/dists/wily-updates/main/dist-upgrader-all/current/wily.tar.gz
tar -xzf wily.tar.gz
sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' Ubuntu.info
sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' Ubuntu.mirrors
sudo ./wily
Upon running this on another host I got "ImportError: No module named 'apt' just install it:
Either:
apt-get install python-apt -y
sudo apt-get install python3-apt --reinstall
<- This worked for me.
Gets a bunch of 404's and then asks if it should overwrite the sources.list
Y
Try not to kill ssh if you're connected via ssh... Wait patiently and hope everything works...
restart
Should be on 15.10
cd ~
mkdir
cp ~/sources.list ~/sources-backup.list
cp /etc/apt/sources.list ~/sources.list
sudo apt-get update && sudo apt-get upgrade
sudo do-release-upgrade
go through the upgrade, hope everything works...
Things are going to be removed, I just removed them all, I'll add back whatever I need later
restart the server again
should be on 16.04.3
sudo apt-get autoremove
@zhangjl I'm not sure how to fix that problem, if you're wanting to restore your package lists to how they were you can always revert them by copying them back
sudo cp ~/sources.list /etc/apt/sources.list
but I don't think that'd fix the package signatures. If it were me, since it looks like it's only two packages, I'd just re-install them after the install was successful.