Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 01-14-2010, 03:49 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
apt pinning problems


I'm trying to create my own apt repository but I'm encountering problems with prioritizing the different repositories.

I've tried using /etc/apt/preferences to pin the releases that I want but when I run apt-cache policy all the repos are the same priority (500). I have this on two different machines and one of of them it's working so it's not likely that it's a server problem, probably it's a client config issue but from what I can see the configs are the same.

I had this exact issue on the machine that is now working but it solved itself magically after a while.

This is from the machine that is working:
root@aptserver:~# apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
300 common/all Packages
release o=Mine,a=common,n=common,l=My Automatic updater,c=all

And this is from the machine that's making a fuss:
root@aptclient:/etc/apt# apt-cache policy
100 /var/lib/dpkg/status
release a=now
500 common/all Packages

The preferences file are identical, created by the same script. The release line is missing from the faulty machine and I don't know how to get it there.

Package: *
Pin: release n=common
Pin-Priority: 300

Old 01-14-2010, 07:24 AM   #2
LQ Newbie
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Solved it.

The repositories must be signed for information needed for pinning to be used.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 05:50 PM
APT pinning question parent's_basement Debian 2 10-20-2008 07:38 AM
apt pinning aquaboot Debian 2 10-14-2008 03:44 AM
Apt-pinning question Tortanick Debian 3 06-02-2007 09:16 AM
apt-pinning h/w Debian 6 02-25-2004 11:57 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration