修改官方源

编辑/etc/apt/sources.list

删掉原来的源地址,添加国内源地址

1
2
3
4
5
6
7
8
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ bullseye-security main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main non-free contrib

移出企业源

编辑/etc/apt/sources.list.d/pve-enterprise.list

1
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise

更新命令

ssh连接pve执行命令或者在登录pve后台更新菜单里操作

1
apt update -y & apt dist-upgrade -y