How to ugrade Proxmove VE

If your proxmox ve server in china ,Change utsc mirrors will speed up your proxmoxve upgrade speed.

Here are the steps.

1. Change debian,pve,ceph upgrade source, and upgrade your PVE

#chang debian source list
echo "deb stretch main contrib non-free
deb-src stretch main contrib non-free

deb stretch-updates main contrib non-free
deb-src stretch-updates main contrib non-free

deb stretch-backports main contrib non-free
deb-src stretch-backports main contrib non-free

deb stretch/updates main contrib non-free
deb-src stretch/updates main contrib non-free" > /etc/apt/sources.list

#change pve 5.x update source list to no subscription
echo "deb stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-sub.list
# Disable pve 5.x enterprise subscription
sed -i.bak 's|deb stretch pve-enterprise|\# deb stretch pve-enterprise|' /etc/apt/sources.list.d/pve-enterprise.list

#change ceph source list
echo "deb stretch main" >> /etc/apt/sources.list.d/ceph.list

# add key
wget -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg

apt updat && apt -y dis-ugprade

2. Change settings after upgrade

This step to change pve upgrade to no subscription and ceph soucre .

#change pve 5.x update source list
echo "deb stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-enterprise.list

#change ceph source list
echo "deb stretch main" > /etc/apt/sources.list.d/ceph.list

# add key
wget -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg