Ubuntu 16.04: help with apt pinning. apt list not showing version from 3rd party repo

mrjayviper

Junior Member
Mar 13, 2017
23
0
66
So I have a custom repo here which I added by creating a mrjayviper.list file inside /etc/apt/sources.list.d/

Code:
deb https://download.hosting.com/mrjayviper/deb all main
deb https://download.hosting.com/mrjayviper/deb xenial main

I then created this file /etc/apt/preferences with the following contents

Code:
Package: *
Pin: origin download.hosting.com
Pin-Priority: 999

note: I've tried other numbers like 800 and 900 and 1100 instead of 999.

My issue is that when I run (see below), it's showing Ubuntu's copy and not the one from the 3rd party repo.

Code:
=> apt list | grep handbrake
   
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

handbrake/xenial 0.10.2+ds1-2build1 amd64 (from official repo)
handbrake-cli/xenial 0.10.2+ds1-2build1 i386 (from official repo)
handbrake-gtk/xenial 1.0.4-zhb-1ppa1~xenial1 amd64 (from 3rd party repo)

The 3rd party repo has a much newer version of the handbrake-cli (same version as handbrake-gtk) and I thought apt pinning should take priority anyway using whatever version is in the 3rd party repo even if it's a lower version.

things I've also done:
- I've deleted my apt database (sudo rm -rf /var/lib/apt/lists) and re-running apt-get update after creating the preferences file.
- I've tried the apt list command with and without /etc/apt/preferences. Same results

My aim is to understand and get apt pinning to work and not getting the latest version of handbrake-cli which probably can be done by compiling source anyway.

Any ideas what I could be doing wrong?

Thanks
 

mrjayviper

Junior Member
Mar 13, 2017
23
0
66
I can see other packages from the 3rd party repo. The only I cannot see are the ones that's also available in official repos.
 

lxskllr

No Lifer
Nov 30, 2004
57,670
7,896
126
Did you give the official repos a pin priority? Without that, your custom repo won't have a number to compare to.
 

mrjayviper

Junior Member
Mar 13, 2017
23
0
66
I didn't pin anything else other than the 3rd part repo. perhaps it's pinned "behind the scenes".

My workaround is to put my repo entries at the top of /etc/apt/sources.list and delete mrjayviper.list
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |