使用 Proxmox VE 默认的 APT 更新源,在 WEB 管理面板 更新 点击 刷新 后,会显示错误:

TASK ERROR: command 'apt-get update' failed: exit code 100
1、查看当前镜像源配置

cat /etc/apt/sources.list

2、查看当前pve版本

pveversion -v

3、注释默认配置,修改为阿里云镜像源

nano /etc/apt/sources.list

deb https://mirrors.ustc.edu.cn/debian bullseye main contrib
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib

4、注释proxmox企业版更新源
因为我们安装的是社区版,没有订阅企业版的服务,这个默认启用,所以会报错,使用时我们可以注释掉它。

nano /etc/apt/sources.list.d/pve-enterprise.list

5、运行 apt update 更新索引以生效

6、查看可以更新的包

apt list --upgradable

7、执行软件包数据库更新

apt update && apt upgrade -y

8、也可以在页面更新

转自:
http://www.aw404.com/index.php/archives/275.html