Proxmox VE(PVE)7.0.13 源修改

软件包仓库国内源设置

 

 使用帮助

默认是企业订阅版,如果不做修改,在使用 pveceph init 进行 ceph 初始化安装的时候会将整个环境破坏,切记!

SSH登陆各节点
【重要】将/etc/apt/sources.list.d/pve-enterprise.list 文件内的唯一一条记录注释掉:

echo "#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list

wget -q -O- 'http://mirrors.ustc.edu.cn/ceph/keys/release.asc' | sudo apt-key add -

  echo deb http://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
  echo deb http://mirrors.ustc.edu.cn/proxmox/debian/pve $(lsb_release -sc) pve-no-subscription |sudo tee /etc/apt/sources.list.d/pve-no-subscription.list

建议同时使用国内debian源

proxmox7 - 腾讯云源

cat >/etc/apt/sources.list<<'EOF'
deb https://mirrors.cloud.tencent.com/debian/ bullseye main contrib non-free
deb https://mirrors.cloud.tencent.com/debian/ bullseye-updates main contrib non-free
deb https://mirrors.cloud.tencent.com/debian/ bullseye-backports main contrib non-free
deb https://mirrors.cloud.tencent.com/debian-security bullseye-security main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian/ bullseye main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian-security bullseye-security main contrib non-free
EOF

apt-get update && apt-get upgrade && apt-get dist-upgrade -y

 



 

posted @ 2021-10-28 00:15  ironbamoo  阅读(1525)  评论(0编辑  收藏  举报