<SOLVED>Trouble apt pining jessie-backports

Archived topics about LMDE 1 and LMDE 2
Locked
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4221
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

<SOLVED>Trouble apt pining jessie-backports

Post by Fred Barclay »

Hey mates! I use both jessie-backports and testing repos on my machine for certain software (backports for octave and the kernel, testing for firejail), and I noticed that the update manager wants to offer me updates from the testing repos for packages I installed from backports.

I've checked my apt pins but it appears that jessie-backports are pinned higher than the testing repos:

Code: Select all

fred@aussie ~ $ cat /etc/apt/preferences.d/jessie-backports.pref
# To find this information for other repositories use:
#   egrep '(Origin|Label|Suite|Codename)' /var/lib/apt/lists/*Release
# Meaning of the fields:
#   o=Origin, l=Label, a=Suite, n=Codename

Package: *
Pin: release o=Debian Backports a=jessie-backports n=jessie-backports
Pin-Priority: 400

fred@aussie ~ $ cat /etc/apt/preferences.d/debian-testing.pref
# To find this information for other repositories use:
#   egrep '(Origin|Label|Suite|Codename)' /var/lib/apt/lists/*Release
# Meaning of the fields:
#   o=Origin, l=Label, a=Suite, n=Codename

Package: *
Pin: release o=Debian, a=testing, l=Debian-Security
Pin-Priority: 300

Package: *
Pin: release o=Debian, a=testing
Pin-Priority: 300
Notice how backports are pinned with priority 400 and testing has pin priority of 300?

However, apt policy (and, apparently, Update Manager) does not reflect the jessie-backports pin priority. For example:

Code: Select all

fred@aussie ~ $ apt policy octave
octave:
  Installed: 4.0.0-5~bpo8+1
  Candidate: 4.0.0-5+b3
  Version table:
     4.0.0-5+b3 0
        300 http://httpredir.debian.org/debian/ testing/main amd64 Packages
 *** 4.0.0-5~bpo8+1 0
        100 http://http.debian.net/debian/ jessie-backports/main amd64 Packages
        100 /var/lib/dpkg/status
     3.8.2-4 0
        500 ftp://<removed for privacy/ jessie/main amd64 Packages
Here, debian testing repos have a priority of 300 as expected but jessie-backports are only at 100.

Any ideas what I'm doing wrong?
Thanks!
Last edited by Fred Barclay on Sat Feb 13, 2016 5:01 pm, edited 1 time in total.
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
User avatar
killer de bug
Level 14
Level 14
Posts: 5398
Joined: Tue Jul 08, 2008 1:49 pm
Location: Leuven, Belgium

Re: Trouble apt pining jessie-backports

Post by killer de bug »

Could you please return the output of

Code: Select all

apt policy
It seems that the priority is not taken into account.
All backports are deactivated by default (i.e. the packages are pinned to 100 by using ButAutomaticUpgrades: yes in the Release files.
If it ain't broke, fix it until it is.
titetanium
Level 2
Level 2
Posts: 81
Joined: Mon Jun 18, 2012 4:26 pm

Re: Trouble apt pining jessie-backports

Post by titetanium »

Hi,

Did you do a apt-get update after pinning your repos?
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4221
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: Trouble apt pining jessie-backports

Post by Fred Barclay »

Alright, here we go:

Code: Select all

fred@aussie ~ $ apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://download.virtualbox.org/virtualbox/debian/ jessie/contrib i386 Packages
     release o=Oracle Corporation,n=jessie,l=Oracle Corporation,c=contrib
     origin download.virtualbox.org
 500 http://download.virtualbox.org/virtualbox/debian/ jessie/contrib amd64 Packages
     release o=Oracle Corporation,n=jessie,l=Oracle Corporation,c=contrib
     origin download.virtualbox.org
 500 https://deb.opera.com/opera-stable/ stable/non-free i386 Packages
     release o=Opera Software ASA,a=stable,n=stable,l=The Opera web browser,c=non-free
     origin deb.opera.com
 500 https://deb.opera.com/opera-stable/ stable/non-free amd64 Packages
     release o=Opera Software ASA,a=stable,n=stable,l=The Opera web browser,c=non-free
     origin deb.opera.com
 500 http://extra.linuxmint.com/ betsy/main i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin extra.linuxmint.com
 500 http://extra.linuxmint.com/ betsy/main amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin extra.linuxmint.com
 500 http://www.deb-multimedia.org/ jessie/non-free i386 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=non-free
     origin www.deb-multimedia.org
 500 http://www.deb-multimedia.org/ jessie/main i386 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=main
     origin www.deb-multimedia.org
 500 http://www.deb-multimedia.org/ jessie/non-free amd64 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=non-free
     origin www.deb-multimedia.org
 500 http://www.deb-multimedia.org/ jessie/main amd64 Packages
     release o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=main
     origin www.deb-multimedia.org
 500 http://security.debian.org/ jessie/updates/non-free Translation-en
 500 http://security.debian.org/ jessie/updates/main Translation-en
 500 http://security.debian.org/ jessie/updates/contrib Translation-en
 500 http://security.debian.org/ jessie/updates/non-free i386 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=non-free
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/contrib i386 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=contrib
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/main i386 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/non-free amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=non-free
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/contrib amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=contrib
     origin security.debian.org
 500 http://security.debian.org/ jessie/updates/main amd64 Packages
     release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
     origin security.debian.org
 500 ftp://<removed>/pub/debian/ jessie-updates/non-free Translation-en
 500 ftp://<removed>/pub/debian/ jessie-updates/main Translation-en
 500 ftp://>removed>/pub/debian/ jessie-updates/contrib Translation-en
 500 ftp://<removed>/pub/debian/ jessie-updates/non-free i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=non-free
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie-updates/contrib i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=contrib
     origin <removed?
 500 ftp://<removed>/pub/debian/ jessie-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie-updates/non-free amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=non-free
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie-updates/contrib amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=contrib
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
     origin <removed>
 500 ftp://<removed>/ jessie/non-free Translation-en
 500 ftp://<removed>/pub/debian/ jessie/main Translation-en
 500 ftp://<removed>/pub/debian/ jessie/contrib Translation-en
 500 ftp://<removed>/pub/debian/ jessie/non-free i386 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie/contrib i386 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie/main i386 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie/non-free amd64 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
     origin <removed>u
 500 ftp://<removed>/pub/debian/ jessie/contrib amd64 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
     origin <removed>
 500 ftp://<removed>/pub/debian/ jessie/main amd64 Packages
     release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=main
     origin <removed>
 500 http://reflection.oss.ou.edu/linuxmint/repos/ betsy/import i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=import
     origin reflection.oss.ou.edu
 700 http://reflection.oss.ou.edu/linuxmint/repos/ betsy/upstream i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=upstream
     origin reflection.oss.ou.edu
 500 http://reflection.oss.ou.edu/linuxmint/repos/ betsy/main i386 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin reflection.oss.ou.edu
 500 http://reflection.oss.ou.edu/linuxmint/repos/ betsy/import amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=import
     origin reflection.oss.ou.edu
 700 http://reflection.oss.ou.edu/linuxmint/repos/ betsy/upstream amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=upstream
     origin reflection.oss.ou.edu
 500 http://reflection.oss.ou.edu/linuxmint/repos/ betsy/main amd64 Packages
     release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=main
     origin reflection.oss.ou.edu
 500 http://http.debian.net/debian/ jessie-backports/main Translation-en
 100 http://http.debian.net/debian/ jessie-backports/main i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin http.debian.net
 100 http://http.debian.net/debian/ jessie-backports/main amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin http.debian.net
 500 http://dl.google.com/linux/earth/deb/ stable/main i386 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://dl.google.com/linux/earth/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://security.debian.org/ testing/updates/main Translation-en
 300 http://security.debian.org/ testing/updates/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=main
     origin security.debian.org
 300 http://security.debian.org/ testing/updates/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=main
     origin security.debian.org
 500 http://httpredir.debian.org/debian/ testing/main Translation-en
 300 http://httpredir.debian.org/debian/ testing/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main
     origin httpredir.debian.org
 300 http://httpredir.debian.org/debian/ testing/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main
     origin httpredir.debian.org
 500 http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/  Packages
     release o=obs://build.opensuse.org/home:Horst3180/Debian_8.0,n=Debian_8.0,l=home:Horst3180,c=
     origin download.opensuse.org
Pinned packages:
Sure enough, jessie-backports are pinned at 100.

titetanium: I did apt-get update, thanks. :D
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
User avatar
killer de bug
Level 14
Level 14
Posts: 5398
Joined: Tue Jul 08, 2008 1:49 pm
Location: Leuven, Belgium

Re: Trouble apt pining jessie-backports

Post by killer de bug »

Fred Barclay wrote: Package: *
Pin: release o=Debian Backports a=jessie-backports n=jessie-backports
Pin-Priority: 400
I think you miss the comma here before the a and the n. Could you please check?

In the apt policy output it looks like this:

Code: Select all

     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
     origin http.debian.net
If it ain't broke, fix it until it is.
User avatar
vrkalak
Level 12
Level 12
Posts: 4406
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: <SOLVED>Trouble apt pining jessie-backports

Post by vrkalak »

Image
:: Debian-Sid (Xfce/Fluxbox) :: LinuxMint-18 (LTS) LXDE w/Openbox ::
Registered Linux User: #497031 :: My DeviantART Page
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4221
Joined: Sat Sep 13, 2014 11:12 am
Location: USA primarily

Re: <SOLVED>Trouble apt pining jessie-backports

Post by Fred Barclay »

Agh! You're right, I did forget the commas.
Corrected:

Code: Select all

fred@aussie ~ $ cat /etc/apt/preferences.d/jessie-backports.pref
# To find this information for other repositories use:
#   egrep '(Origin|Label|Suite|Codename)' /var/lib/apt/lists/*Release
# Meaning of the fields:
#   o=Origin, l=Label, a=Suite, n=Codename

Package: *
Pin: release o=Debian Backports, a=jessie-backports, n=jessie-backports
Pin-Priority: 400

fred@aussie ~ $ apt policy octave
octave:
  Installed: 4.0.0-5~bpo8+1
  Candidate: 4.0.0-5~bpo8+1
  Version table:
     4.0.0-5+b3 0
        300 http://httpredir.debian.org/debian/ testing/main amd64 Packages
 *** 4.0.0-5~bpo8+1 0
        400 http://http.debian.net/debian/ jessie-backports/main amd64 Packages
        100 /var/lib/dpkg/status
     3.8.2-4 0
        500 ftp://debian.cites.illinois.edu/pub/debian/ jessie/main amd64 Packages
Thanks!

EDIT: thanks, too, vrkalak && titetanium. :)
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein
User avatar
killer de bug
Level 14
Level 14
Posts: 5398
Joined: Tue Jul 08, 2008 1:49 pm
Location: Leuven, Belgium

Re: <SOLVED>Trouble apt pining jessie-backports

Post by killer de bug »

Details matter :mrgreen:
If it ain't broke, fix it until it is.
User avatar
mockturtl
Level 4
Level 4
Posts: 452
Joined: Sat Oct 09, 2010 8:51 pm

Re: <SOLVED>Trouble apt pining jessie-backports

Post by mockturtl »

Code: Select all

o=Debian Backports
Doh! Thanks!
Image
Locked

Return to “LMDE Archive”