1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| mkdir /root/bak-sources
# 企业源
mv /etc/apt/sources.list.d/pve-install-repo.list /root/bak-sources #这个文件新版不存在了 这行不需要执行
mv /etc/apt/sources.list.d/pve-enterprise.list /root/bak-sources
nano /etc/apt/sources.list.d/pve-enterprise.list
-----------------
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription
# debian源
mv /etc/apt/sources.list /root/bak-sources
#apt update
#apt install apt-transport-https ca-certificates
nano /etc/apt/sources.list
-----------
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# CT/LXC 源 备份后替换,然后重启pvedaemon
cp /usr/share/perl5/PVE/APLInfo.pm /root/bak-sources
sed -i 's|http://download.proxmox.com|https://mirrors.tuna.tsinghua.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
systemctl restart pvedaemon.service
|