Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active June 1, 2017 09:05
Show Gist options
  • Save avoidik/b126675a388a37ffa9297fb6bb05af9f to your computer and use it in GitHub Desktop.
Save avoidik/b126675a388a37ffa9297fb6bb05af9f to your computer and use it in GitHub Desktop.
upgrade apt from upstream

example is for trusty (14.04) and upstream is xenial (16.04)

  • cat /etc/apt/apt.conf.d/01ubuntu
APT::Default-Release "trusty";
  • cat /etc/apt/preferences.d/apt-fix-1001
Package: apt
Pin: release a=xenial-security,c=main,o=Ubuntu,l=Ubuntu
Pin-Priority: 1001
  • cat /etc/apt/sources.list.d/apt-fix.list
deb http://archive.ubuntu.com/ubuntu xenial-security main
  • apt-get install -t xenial-security apt

troubleshoot

  • apt-cache policy apt
  • cat /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_xenial-security_InRelease | head -n 20

references

Apt package pinning and priorities Debian package management Ubuntu Pinning

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