Page 1 of 1

New architecture specific repo of modified binaries

PostPosted: 2013-08-08 14:53
by seanruk
I am creating a subset of Debian packages targeted at a specific architecture and intend to use the standard mirrors for all other packages; following the guide on the wiki ( ... positories).
For those derivatives that rebuild Debian source packages, add some source packages and modify some source packages, where possible we encourage them to use standard Debian mirrors for the source packages and add a second repository containing only the source and binary packages that have been added or modified. This recommendation may be hard to do and therefore regular source package syncing is an alternative recommendation.

I've added my repo above the standard mirrors in /etc/apt/sources.list and in vain tried pinning the repo to raise it's priority. However, running apt-get update followed by trying to update a package, it's still resolving to the main repository.
Code: Select all
root@debian:/tmp# apt-get install --print-uris --reinstall adduser
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded.
Need to get 262 kB of archives.
After this operation, 0 B of additional disk space will be used.
'' adduser_3.113+nmu3_all.deb 262220 MD5Sum:9b7a9665cd1a6290786478931aafa9bc

I think I've found out why the wiki states "This recommendation may be hard to do".

Anyone got any suggestions or something I'm missing?

Any assistance would be appreciated, this is the first time I've setup my own repo.

Re: New architecture specific repo of modified binaries

PostPosted: 2013-08-08 14:58
by confuseling
Well, why not post the apt preferences file in question?

I just set a default release instead of pinning, but I don't know whether that'll help in your case...


Re: New architecture specific repo of modified binaries

PostPosted: 2013-08-09 13:46
by seanruk
Thanks for the link, I'll take a read.

The preferences file:
Code: Select all
Package: *
Pin: release o=deb,n=wheezy
Pin-Priority: 900

There is nothing else in /etc/apt/preferences.d/

My sources.list contains:
Code: Select all
deb wheezy main
deb wheezy main contrib