Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I should pinning and set priority to Ubuntu repository for installing Kolab mail server. I just added the following to sources.list,

deb http://mirror.kolabsys.com/pub/ubuntu/kolab-3.0/ precise release updates
deb-src http://mirror.kolabsys.com/pub/ubuntu/kolab-3.0/ precise release updates

but for adding

Package: *
Pin: origin mirror.kolabsys.com
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
add comment

1 Answer

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
<PASTE THE PINNING DATA IN>
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
2  
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 W. Jul 25 '13 at 20:38
add comment

Your Answer

 
discard

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.