How to get apt-get update working on a fresh Proxmox install

Keeping things up to date

Mon, 27 Aug 2018

Unsplash After a fresh install of Proxmox you may run into issues running apt-get or see errors in the task list along the lines of “command ‘apt-get update’ failed: exit code 100”. This is caused by the default repositories that are setup for Proxmox. These instructions should fix this:

  1. First connect to the web portal
  2. Then shell into the host from there or you can ssh into the host
  3. Once on the host run: vi /etc/apt/sources.list
  4. Then add: deb http://download.proxmox.com/debian stretch pve-no-subscription
  5. Exit vi saving your changes
  6. Then remove: rm -f /etc/apt/sources.list.d/pve-enterprise.list
  7. Run apt-get update again and it should work

You’ll want this working as it’s the best way to keep Proxmox and its underlying Debian OS up to date with patches, security updates, etc.

SHARE
André Wanlin

André Wanlin is a Full Stack Developer and Team Leader at Petline Insurance Company, where André leads application development, including system administration and support. André has worked in .NET since 2008 and is passionate about DevOps and development methodologies like Lean, Agile, Scrum and Kanban. He loves to talk about Azure DevOps (formerly Team Foundation Server). André is a dog owner, an avid concert goer, and traveler from Winnipeg, Manitoba. You can reach him at andre@wanlin.ca or go to andre.wanlin.ca or you can catch him walking his dog at one of the many dog parks in the city.