Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently running Ubuntu 10.something and I have some special packages installed for server tasks.

I want to upgrade to Ubuntu 12 and I'm afraid that I'll lose these packages.

So what will happen if I chose the upgrade option when I put in the installation DVD? Will I lose the packages or not?

share|improve this question
From my experience: the upgrade system of Ubuntu 13.04 (from 12.10) asked to me to choice between save the packages installed or not, I have chosen Save the Packages. But after the upgrade procedure there was an error and all my installed packages just gone.. – Lucio Jun 27 '13 at 22:08
possible duplicated: – Lucio Jun 27 '13 at 22:11

In theory, the upgrade should smoothly take over your package selection -- with possible exception of packages from outside of the main distribution tree (like custom launchpad repositories). However, to be on the safe side, back up your package selection:

dpkg --get-selections > packages.txt

Later, you can restore these selections by issuing (as root)

cat packages.txt | dpkg --set-selections && apt-get dselect-upgrade

In any case, remember to back up your system before upgrading, including /etc. And make sure your backups work!

share|improve this answer
thanks for the fast reply – Baha Eddine Gritly Jun 27 '13 at 23:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.