Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have been running these commands:

sudo dpkg --clear-selections
sudo dpkg --set-selections < [Path to packages_list ]>
sudo apt-get autoremove

with the file packages_list which looks like this

acpi-support                    install
acpid                       install
adduser                     install
adium-theme-ubuntu              install
adobereader-enu                 install
aisleriot                   install
akonadi-server                  install
alacarte                    install
alsa-base                   install
alsa-utils                  install
anacron                     install

I have been getting these errors while using the second command mentioned above..

dpkg: --set-selections takes no arguments

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Can some one help me out please..

share|improve this question
up vote 0 down vote accepted

Wherever you copied this from:

sudo dpkg --set-selections < [Path to packages_list ]>

you mangled it and misunderstood the result. I can tell because you have <> arranged like an extra pair of brackets, which if they were actually there in the instructions you found, would be unnecessary (and inconsistently spaced).

It complains that it doesn't take arguments because it takes stdin, You're supposed to use the stdin redirection operator < before your filename. And no > anywhere.

share|improve this answer
Thanks...It solves the problem – starkk92 Aug 19 '13 at 13:50

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.