Upgrading from Linux Petra to Qiana

If you followed my previous blog post of going from 15 to 16, well I am back with 16 to 17!


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.


If you run your update script again to check, you will see that your .bkp files will cause an error. You can move them

  1. sudo apt-get update
  2. sudo mv *.bkp ~/
    1. 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.list

sudo 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.list

sudo 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.list

sudo 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.


This entry was posted in How-To, Linux and tagged , , , , , . Bookmark the permalink.

1 Response to Upgrading from Linux Petra to Qiana

  1. Patrick Wallace says:

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s