Primero, verifica y corrige el archivo de repositorios:
# Hacer backup del sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.backup
# Editar sources.list
nano /etc/apt/sources.list
# Contenido recomendado para Proxmox 8.2.2 (Debian Bookworm):
deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org/debian-security bookworm-security main contrib
Segundo, Gestionar el repositorio enterprise:
# Hacer backup
cp /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.backup
# Deshabilitar el repositorio enterprise
echo “# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise” > /etc/apt/sources.list.d/pve-enterprise.list
# Agregar repositorio no-subscription
echo “deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription” > /etc/apt/sources.list.d/pve-install-repo.list
Tercero, Limpiar y actualizar:
# Limpiar cache de apt
apt clean
apt autoclean
# Eliminar listas antiguas
rm -rf /var/lib/apt/lists/*
# Actualizar listas
apt update
# Si hay errores de llaves, agregar la llave de Proxmox:
wget http://download.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
Cuarto, Si persisten los errores:
# Intentar actualizar con más verbosidad
apt update -o Debug::Acquire::http=true
# Actualizar paquetes
apt update
apt full-upgrade
# Reiniciar si es necesario
reboot