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
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
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.
Pin: release n=common