PVE 6. X updated to 7. X
#Modify PVE Source sed -i 's/buster\/updates/bullseye-security/g; s/buster/bullseye/g' /etc/apt/sources.list #Delete PVE Enterprise Source rm -rf /etc/apt/sources.list.d/pve-install-repo.list
# debian aliyun source #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-security bullseye-security main contrib non-free #deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription deb http://ftp.debian.org/debian bullseye main contrib deb http://ftp.debian.org/debian bullseye-updates main contrib # security updates deb http://security.debian.org bullseye-security main contrib deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
apt update && apt dist-upgrade -y
apt autoremove -y
#View the currently used kernel uname -a #Check how many cores the system has dpkg --get-selections |grep kernel
#Uninstall the useless kernel. The pve-kernel-5.3.13-1-pve after the command is the kernel displayed according to the previous command. It needs to be modified to show that your PVE is not used. The system is in use if the word "purge" is displayed after the command. Those that cannot be uninstalled can be uninstalled. Others can be uninstalled) dpkg --purge --force-remove-essential pve-kernel-5.3.13-1-pve dpkg --purge --force-remove-essential pve-kernel-5.3.13-3-pve dpkg --purge --force-remove-essential pve-kernel-5.3.18-1-pve dpkg --purge --force-remove-essential pve-kernel-5.3.18-2-pve dpkg --purge --force-remove-essential pve-kernel-5.3.18-3-pve dpkg --purge --force-remove-essential pve-kernel-5.4 dpkg --purge --force-remove-essential pve-kernel-5.4.101-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.103-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.106-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.114-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.119-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.124-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.34-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.41-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.44-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.44-2-pve dpkg --purge --force-remove-essential pve-kernel-5.4.55-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.60-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.65-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.73-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.78-1-pve dpkg --purge --force-remove-essential pve-kernel-5.4.78-2-pve dpkg --purge --force-remove-essential pve-kernel-5.4.98-1-pve dpkg --purge --force-remove-essential pve-kernel-5.3.13-1-pve #After deleting the unused kernel, update the boot menu update-grub #Restart PVE reboot
#Install the time synchronization tool to automatically synchronize the time apt install chrony -y #Install a tool that automatically applies refresh after network configuration modification apt install ifupdown2 -y #Delete the previous time synchronization tool apt remove systemd-timesyncd -y apt-get remove --purge systemd-timesyncd
Copyright: Eric Qiu*
Link to this article: https://eblog.ink/archives/290/
The source and this statement shall be indicated when reprinting