-   Debian (
-   -   how to use priority in choosing the repository (

abd_bela 07-27-2011 02:06 PM

how to use priority in choosing the repository

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 ""
Pin-Priority: 501

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

root@debian6:/opt/extra6Bis# apt-cache showpkg 9base
Package: 9base
1:6-1 (/var/lib/apt/lists/localhost_extra6Bis_Packages) (/var/lib/apt/lists/

while the installation comes from 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:
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 squeeze/main 9base i386 1:6-1 [1552 kB]

thanks for help
best regards

andrewthomas 07-27-2011 05:25 PM

Could you post the Release file for your local repository?

abd_bela 07-28-2011 02:52 AM

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


andrewthomas 07-28-2011 12:47 PM

If you create a proper Release file, then your pins will work.

All times are GMT -5. The time now is 11:03 PM.