Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Pinning an unofficial repository

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
leveller
Posts: 85
Joined: 2009-05-03 02:51

[Solved] Pinning an unofficial repository

#1 Post by leveller »

I have some packages from the deb-multimedia repo that I'd like to replace with ones from the official repo. It's quite a few packages so it'd be very inconvenient to pin them all individually. So I've tried to setup the pinfile so that anything from the official repo takes precedence, but I can't seem to get it right. After trying various options, this is what I have currently have for the pinfile:

Code: Select all

Package: *
Pin: origin o=debian
Pin-Priority: 1001

Package: *
Pin: origin o=www.deb-multimedia.org
Pin-Priority: 2

Package: *
Pin: release a=experimental
Pin-Priority: 1
The problem being that no matter how high of a number I set the official repo to or lower one I set deb-multimedia, 990 seems to be the max and 990 also seems to be what status any locally installed package has, e.g.

Code: Select all

$apt-cache policy aegisub
aegisub:
  Installed: 2:3.2.2~20181123.git2cb92a5f74-dmo4
  Candidate: 2:3.2.2~20181123.git2cb92a5f74-dmo4
  Version table:
 *** 2:3.2.2~20181123.git2cb92a5f74-dmo4 990
        990 http://www.deb-multimedia.org unstable/main amd64 Packages
        100 /var/lib/dpkg/status
     3.2.2+dfsg-6+b1 990
        990 http://ftp.uk.debian.org/debian unstable/main amd64 Packages
Also, not sure how much difference it makes here, but I have the following set:

Code: Select all

$cat /etc/apt/apt.conf.d/000DefaultRelease 
Apt::Default-Release "unstable";
Last edited by leveller on 2022-01-04 06:36, edited 1 time in total.

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Pinning an unofficial repository

#2 Post by craigevil »

Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

leveller
Posts: 85
Joined: 2009-05-03 02:51

Re: Pinning an unofficial repository

#3 Post by leveller »

Finally solved this. For anyone else facing the same issue, I've blogged about it here: https://anarcholinuxism.wordpress.com/2 ... h-official

Post Reply