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 found a set of commands that creates a list of installed packages on a machine, and then reinstall the same packages in another machine. It seems that the command works fine on Ubuntu 32bit desktop, but on Ubuntu amd64 (Desktop) the command sudo apt-get dselect-upgrade tells me that I need to uninstall a lot of packages (including unity, unity-2d, unity-common) even if these packages appear in the list of installed packages in the first system.

Even if these commands are inputted in sequence on the same computer, they work fine in a 32 bit environment but seems to fail in a 64 bit environment. May be I missed something. Here's the commands in sequence:

sudo dpkg --get-selections > installed-software
sudo dpkg --set-selections < installed-software
sudo apt-get dselect-upgrade
share|improve this question
For reference: Link to OP's thread on Ubuntu forums. – jokerdino Oct 15 '12 at 10:07
please edit your question and add the output of uname -m of both the computers you are copying from and copying to. Thanks. – jokerdino Oct 15 '12 at 10:07

You'll probably find the answer in the installed-software file. I assume many of the packages are specified with architectures.

share|improve this answer

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.