apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Err:2 https://enterprise.proxmox.com/debian/pve bullseye InRelease
401 Unauthorized [IP: 144.217.225.162 443]
Hit:3 http://ftp.hk.debian.org/debian bullseye InRelease
Hit:4 http://ftp.hk.debian.org/debian bullseye-updates InRelease
Hit:5 http://download.proxmox.com/debian/ceph-pacific bullseye InRelease
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease 401 Unauthorized [IP: 144.217.225.162 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
This error is caused by not having an enterprise Proxmox subscription/license. However, Proxmox can use Free/Testing/Non-Enterprise packages for Ceph.
This is normally caused by the fact that you don't have an Enterprise Subscription, either update your subscription or comment the Enterprise repo out in /etc/apt/sources.list.d/pve-enterprise.list
Alternatively you can simply just delete /etc/apt/sources.list.d/pve-enterprise.list and you'll be ok.
Here is how /etc/apt/sources.list should look (assuming you are using Bullseye):
deb http://ftp.ca.debian.org/debian bullseye main contrib
deb http://ftp.ca.debian.org/debian bullseye-updates main contrib
# security updates
deb http://security.debian.org bullseye-security main contrib
Here is how /etc/apt/sources.list.d/ceph.list should look:
deb http://download.proxmox.com/debian/ceph-pacific bullseye main
You may also need to enable the no-subscription repo:
https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_enterprise_repo
sources.list for version 8 of Proxmox with no-subscription repo:
deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib
# Proxmox VE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib
Also edit /etc/apt/sources.list.d/ceph.list
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription