LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-27-2011, 02:06 PM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 598

Rep: Reputation: 31
how to use priority in choosing the repository


Hi,

Despite the priority, I put in my /etc/apt/preferences

Package: *
Pin: origin ""
Pin-Priority: 999

Package: *
Pin: origin "localhost"
Pin-Priority: 995

Package: *
Pin: origin "ftp.fr.debian.org"
Pin-Priority: 501

When I install a package, it comes from ftp.fr.debian.org, even if this pacakge existe, in my locale repository??!!
Here is an example :


root@debian6:/opt/extra6Bis# apt-cache showpkg 9base
Package: 9base
Versions:
1:6-1 (/var/lib/apt/lists/localhost_extra6Bis_Packages) (/var/lib/apt/lists/ftp.fr.debian.org_debian_dists_squeeze_main_binary-i386_Packages)


while the installation comes from ftp.fr.debian.org here is :

/opt/extra6Bis# apt-get install 9base

Reading package lists... Done
Building dependency tree
Reading state information... Done
..................................
The following NEW packages will be installed:
9base
0 upgraded, 1 newly installed, 0 to remove and 449 not upgraded.
Need to get 1552 kB of archives.
After this operation, 4497 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian/ squeeze/main 9base i386 1:6-1 [1552 kB]

thanks for help
best regards
 
Old 07-27-2011, 05:25 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Could you post the Release file for your local repository?
 
Old 07-28-2011, 02:52 AM   #3
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 598

Original Poster
Rep: Reputation: 31
there is no release file, I created by using dpkg-scanpackages
the line in sources is deb ftp://localhost /

thanks
 
Old 07-28-2011, 12:47 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
If you create a proper Release file, then your pins will work.
 
  


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
proftp-mysql issue : packages excluded due to repository priority protections kergad Linux - Server 2 05-22-2011 09:21 PM
how to give priority to local repository abd_bela Debian 1 04-07-2011 06:51 AM
X: warning; priority set to -1 instead of requested priority 0 HitmanX Linux - Newbie 5 12-13-2010 11:09 AM
priority in apt-get for repository abd_bela Debian 1 09-19-2007 09:24 AM
process priority,nice -- small question regarding high/low priority values beeblequix Linux - Newbie 1 10-11-2006 10:22 AM


All times are GMT -5. The time now is 05:44 PM.

Main Menu
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