LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

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

Rep: Reputation: 0
apt pinning problems


Hi,

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 http://192.168.1.160 common/all Packages
release o=Mine,a=common,n=common,l=My Automatic updater,c=all
origin 192.168.1.160

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

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.

/etc/apt/preferences:
Package: *
Pin: release n=common
Pin-Priority: 300

Thanks.
 
Old 01-14-2010, 08:24 AM   #2
berglin
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.
 
  


Reply


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 06:50 PM
APT pinning question parent's_basement Debian 2 10-20-2008 08:38 AM
apt pinning aquaboot Debian 2 10-14-2008 04:44 AM
Apt-pinning question Tortanick Debian 3 06-02-2007 10:16 AM
apt-pinning h/w Debian 6 02-25-2004 12:57 PM


All times are GMT -5. The time now is 07:51 PM.

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