Apt pinning in Ubuntu


New Member
I currently have a version of isc-kea-dhcp4-server(version 1.6.2) installed from the standard Ubuntu repositories.
Now i've decided to upgrade to a more recent version 1.8.2. I have added the isc repos to /etc/apt/sources.list.d/isc-kea-1.8.list and pinned the origin of the package. I have the following in /etc/apt/preferences:
Package: isc-kea*
Pin: origin "https://dl.cloudsmith.io"
Pin-Priority: 1001

But for some reason the package will not show up as 'upgradble', when issuing apt list --upgradable. The exact same procedure did work in debian.

issuing 'apt-cache policy kea-dhcp4-server' shows the more recent versions:
apt-cache policy isc-kea-dhcp4-server
Installed: (none)
Candidate: 1.8.2-isc0001520201206093433
Version table:
1.8.2-isc0001520201206093433 500
500 https://dl.cloudsmith.io/public/isc/kea-1-8/deb/ubuntu focal/main amd64 Packages
1.8.1-isc0000920201106154401 500
500 https://dl.cloudsmith.io/public/isc/kea-1-8/deb/ubuntu focal/main amd64 Packages
1.8.0-isc0000420200825110759 500
500 https://dl.cloudsmith.io/public/isc/kea-1-8/deb/ubuntu focal/main amd64 Packages

Any idéa what i'm missing here?
Last edited:


Well-Known Member
i'm a slackware man but recently looking into Debian Buster and playing with aptitude. So basically i may be talking rubbish. From my understanding highest priority number wins unless its older.

Installed normally has priority of 100 and possible updates maybe 500 in which case the possible upgrade would be installed.

You've marked pinned the origin of the package with 1001 higher than the possible candidate
1.8.2-isc0001520201206093433 ( 500
priority) so it won't be installed . I was reading you can manually install a particular version from command line may be something like :

sudo aptitude install "isc-kea-dhcp4-server=1.8.2"

I'm sure you can do that with apt and apt-get but i'm still playing with aptitude gui and direct command line.

I think its this command:
sudo apt-get install   --only-upgrade  isc-kea*

// the command appears on the face of it to be installing , but its not its actually upgrading a pkg that already exists

[To install aptitude :

sudo apt-get install aptitude]

The best scenario for you would be for someone to say i'm talking rubbish; however this is how you will solve it . :^)
Last edited:
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online

Latest posts