On Tue, 18 Feb 2025, Sophoklis Goumas wrote:
Hello.
I've started with this:
$ cat /etc/apt/preferences.d/winehq-v9
Package: *:any
Pin: release o="dl.winehq.org", v=9*
Pin-Priority: 625
I'm not sure about the quotes, the :all or the * on the version in your
example.
The easiest way to fix these pinning rules is to use apt-cache policy.
Start with
Package: *
Pin-Priority: 625
and check that it works on your pachage.
Then add
Pin: release o=dl.winehq.org
And check that it's still working.
Etc until you find where the issue is
Remember, of course, to check that it doesn't match where it shouldn't
too.
apt-mirror@aptmirror19:/mnt/mirror/local (master)$ cat
/etc/apt/preferences.d/local-pin-bookworm
Package: *
Pin: release o=local debs,n=bookworm,l=local debs
Pin-Priority: 995
apt-mirror@aptmirror19:/mnt/mirror/local (master)$ apt-cache policy
fuse-overlayfs fuse-overlayfs:
Installed: 1.14-1~tjw12r1
Candidate: 1.14-1~tjw12r1
Version table:
*** 1.14-1~tjw12r1 995
995 http://aptmirror.home.woodall.me.uk/local bookworm/main
amd64 Packages
100 /var/lib/dpkg/status
1.10-1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages