移除未使用的Linux内核
- 若不存在
pvekclean
,请先安装
git clone https://github.com/jordanhillis/pvekclean.git cd pvekclean chmod +x pvekclean.sh
安装完成后执行pvekclean
即可
./pvekclean.sh
Proxmox VE 7 (PVE 7) 配置更新源, 移除自带的企业源
echo 'deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription' >> /etc/apt/sources.list.d/pve-no-subscription.list
日常软件更新命令:
apt update -y && apt dist-upgrade -y
更新PVE,并安装常用软件
apt-get update && apt-get install vim lrzsz unzip net-tools curl screen uuid-runtime git -y && apt dist-upgrade -y
Proxmox VE 6.3 / 6.4 / 7.0 / 7.1 去掉未订阅的提示
sed -i_orig "s/data.status === 'Active'/true/g" /usr/share/pve-manager/js/pvemanagerlib.js sed -i_orig "s/if (res === null || res === undefined || \!res || res/if(/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js sed -i_orig "s/.data.status.toLowerCase() !== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js systemctl restart pveproxy
- 确认无误后,重新启动服务器
reboot
如果更新时出现错误 E: Sub-process /usr/bin/dpkg returned an error code
https://blog.csdn.net/yusiguyuan/article/details/24269129
apt-get update --fix-missing apt-get autoremove && sudo apt-get clean && sudo apt-get install -f
如果更新时出现错误 You are attempting to remove the meta-package 'proxmox-ve'
#Yes, I've tested it. I can remove any kernels listed with this command: #列出当前系统的Linux镜像 dpkg --list | egrep -i --color 'linux-image|linux-headers' #Then: #删除旧的Linux镜像 apt-get --purge remove linux-image-4.9.0-4-amd64 linux-image-4.9.0-5-amd64 #更新grub update-grub
解决locale: Cannot set LC_CTYPE to default locale: No such file or directory
报错
# localedef -i en_US -f UTF-8 en_US.UTF-8