Proxmox Error When Updating

Introduction

On my Proxmox box there is a daily apt-get update task run. However it has been erring out every time it has run since I installed Proxmox. So hopefully this will fix it.

Work Part

There are various package repositories for Proxmox and those are listed in File /etc/apt/sources.list

The listings in that file influence what is checked for during the update process.

My concern is that I have this listing when I run "apt-get update"

Err:8 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise amd64 Packages   401  Unauthorized
W: The repository 'https://enterprise.proxmox.com/debian/pve stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/stretch/pve-enterprise/binary-amd64/Packages  401  Unauthorized
E: Some index files failed to download. They have been ignored, or old ones used instead.

Now this most likely have an issue with my /etc/apt/sources.list

I am currently running Proxmox 5.4-3 so ideally I should have the following in my sources.list:

deb http://ftp.debian.org/debian stretch main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
# security updates
deb http://security.debian.org stretch/updates main contrib

However this is the case already so after some checking it looks like there is another file that is in another directory. This file is located at "/etc/apt/aources.list.d/pve-enterprise.list" This is an enterprise only sources list with a single entry deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise So I commented that out and saved the file.

I reran the command "apt-get update" and encountered no errors. So hopefully it should all be working correctly now.

Proxmox Package Repositoires