Skip to content

Instantly share code, notes, and snippets.

@shiftgeist
Last active January 8, 2020 07:47
Show Gist options
  • Save shiftgeist/881a4025d9e7e94ec2b626e37e5683a6 to your computer and use it in GitHub Desktop.
Save shiftgeist/881a4025d9e7e94ec2b626e37e5683a6 to your computer and use it in GitHub Desktop.
Interesting tweeks not to forget in apt.

Installing an old apt package version / How apt-cache showpkg saved my day

Docker-ce won't start at version 18.09.0

With apt-cache you get all latest versions.

$ apt-cache showpkg docker-ce

18.09.0~3-0~debian-stretch - # Newest
18.06.1~ce~3-0~debian - # The one i wanted
18.06.0~ce~3-0~debian - 
18.03.1~ce-0~debian - 
18.03.0~ce-0~debian - 
17.12.1~ce-0~debian - 
17.12.0~ce-0~debian - 
17.09.1~ce-0~debian - 
17.09.0~ce-0~debian - 
17.06.2~ce-0~debian - 
17.06.1~ce-0~debian - 
17.06.0~ce-0~debian - 
17.03.3~ce-0~debian-stretch - 
17.03.2~ce-0~debian-stretch - 
17.03.1~ce-0~debian-stretch - 
17.03.0~ce-0~debian-stretch -

Fixing the version

sudo apt-get install docker-ce=18.06.1~ce~3-0~debian --reinstall

...and all issues where gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment