pve换源

1.首先备份一下原始源并更名

1
2
mv /etc/apt/sources.list /etc/apt/sources.list.bak

2.打开这个文件

1
2
nano /etc/apt/sources.list

输入以下源:

1
2
3
4
5
6
7
8
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware

deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

3.打开国内企业源列表

1
2
nano /etc/apt/sources.list.d/pve-no-subscription.list

输入:

1
2
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription

4.屏蔽企业源

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

改为:

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

5.禁用ceph源

1
2
nano /etc/apt/sources.list.d/ceph.list

改为:

1
2
#deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise

6.最后更新一下

1
2
apt-get update

1
2
3
能正常下载更新就没问题了,然后PVE后台点更新,如下图:有更新的点升级,完成reboot重启即可;

这里需要说明一下的是,你PVE的DNS最好别乱填或者填错,我用的是阿里云的公共DNS223.5.5.5这个地址,还有114.114.114.114,再就是路由器的网关地址,贼好用。

pve换源
http://example.com/2025/04/03/pve换源/
作者
zgx
发布于
2025年4月3日
许可协议