On 04.04.2023 00:12, Thomas Schweikle wrote:
does not seen to work at all, since the 4.1-2 package has priority 500
but if pinning would work it should have 1000. What is wrong here?
It works for me.
Without pinning:
$ apt-cache policy nvidia-driver
nvidia-driver:
Installed: 470.161.03-1
Candidate: 470.161.03-1
Version table:
*** 470.161.03-1 500
500 https://mirror.yandex.ru/debian bullseye/non-free amd64
Packages
100 /var/lib/dpkg/status
470.103.01-1~bpo11+1 100
100 https://mirror.yandex.ru/debian bullseye-backports/non-free
amd64 Packages
Created .pref file:
$ cat /etc/apt/preferences.d/nvidia-driver.pref
Package: /nvidia-driver/
Pin: version /470.103/
Pin-Priority: 1000
With pinning after "apt update":
$ apt-cache policy nvidia-driver
nvidia-driver:
Installed: 470.161.03-1
Candidate: 470.103.01-1~bpo11+1
Version table:
*** 470.161.03-1 500
500 https://mirror.yandex.ru/debian bullseye/non-free amd64
Packages
100 /var/lib/dpkg/status
470.103.01-1~bpo11+1 1000
100 https://mirror.yandex.ru/debian bullseye-backports/non-free
amd64 Packages
Try using proper regexp syntax, to pin candidates.
--
With kindest regards, Alexander.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀