If you followed my previous blog post of going from 15 to 16, well I am back with 16 to 17!
https://manandkeyboard.wordpress.com/2014/04/09/upgrading-from-linux-mint-15-to-16/
This time I am following another great blog posted online:
Do your backup of files. The author suggests backing up certain apt list, I suggest backing them all up with
mkdir ~/apt_backup
sudo cp /etc/apt/*.list ~/apt_backup/
Update your files before updating everything. Resolve any update errors.
sudo apt-get update
When doing the backups of the apt sources, I hit an error that the following did not exist. You can ignore the error, it just means the auther had an apt list that you did not have.
/etc/apt/sources.list.d/official-source-repositories.list
If you run your update script again to check, you will see that your .bkp files will cause an error. You can move them
- sudo apt-get update
- sudo mv *.bkp ~/
- or if you followed my suggestion above: sudo mv *.bkp ~/apt_backup
Change the source directories. I copied and pasted the below commands, removing the command prompt.
sudo sed ‘s/saucy/trusty/’ /etc/apt/sources.list
sudo sed ‘s/petra/qiana/’ /etc/apt/sources.listsudo sed ‘s/saucy/trusty/’ /etc/apt/sources.list.d/official-package-repositories.list
sudo sed ‘s/petra/qiana/’ /etc/apt/sources.list.d/official-package-repositories.listsudo sed ‘s/saucy/trusty/’ /etc/apt/sources.list.d/official-source-repositories.list
sudo sed ‘s/petra/qiana/’ /etc/apt/sources.list.d/official-source-repositories.listsudo sed -i ‘s/saucy/trusty/’ /etc/apt/sources.list.d/getdeb.list
sudo sed -i ‘s/petra/qiana/’ /etc/apt/sources.list.d/getdeb.list
I received two errors below for the last four commands. Ignore them because they are telling you that you do not have an apt list that the author had:
sed: can’t read /etc/apt/sources.list.d/official-source-repositories.list: No such file or directory
sed: can’t read /etc/apt/sources.list.d/getdeb.list: No such file or directory
I actually suggest an additional step to the instructions if the update failed for you. Since some people have different apt lists, update all of them in the folder.
sudo sed ‘s/saucy/trusty/’ /etc/apt/*.list
sudo sed ‘s/petra/qiana/’ /etc/apt/*.list
Verify that the changes worked because it did not for me.
grep saucy *
grep trusty *
Manually edit the returned files replacing saucy with trusty and petra with qiana.
Sources
You probably needed to use the -i option with sed to actually edit in place. So…
sudo sed -i ‘s/saucy/trusty/’ /etc/apt/*.list
That will edit each file with the replacements.