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 should pinning and set priority to Ubuntu repository for installing Kolab mail server. I just added the following to sources.list,

deb precise release updates
deb-src precise release updates

but for adding

Package: *
Pin: origin
Pin-Priority: 501

I can not find any "preferences" file in /etc/apt/. I searched in Google a lot, but I didn't find anythings. Even in the "preferences.d" directory there is not any "preferences" file. I should mention that I am using Ubuntu 12.04.

How can I make the /etc/apt/preferences file?

share|improve this question
up vote 3 down vote accepted

By default there is no /etc/apt/preferences file.

You can create it with a user who has sudo access:

sudo touch /etc/apt/preferences
sudo nano /etc/apt/preferences
share|improve this answer
Thanks a lot Thomas, I try it. – Mohsen Gh. Jul 25 '13 at 20:28
May i ask another question?!! What does the following command do "cat /etc/apt/preferences"? – Mohsen Gh. Jul 25 '13 at 20:32
The cat command simply "echos" the data from the file, and the cat command on its own will simply return the information in the file to the command line's output so you see it. If the file doesn't exist, it will error out. – Thomas Ward Jul 25 '13 at 20:38

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.