Loading... <div class="tip inlineBlock warning"> <span style='color:red'> 更新2024.5.12: PVE官网的最新版本已经不再是8.1, 较新的历史镜像可以在国内镜像站点下载 推荐: https://mirrors.tuna.tsinghua.edu.cn/proxmox/iso/ </span> </div> # PVE8.1下软件源更新与其它配置 PVE8.1官方系统镜像基于Debian12系统, 内核为6.5.11-7. 安装后需要做必要的APT软件源替换与其它配置提升使用体验. NUC下部署PVE8.1系统视频参见: https://www.bilibili.com/video/BV1Xc411C7xc ``` #(任选一个源) #1.1.1 清华源 # 参考: https://mirrors.tuna.tsinghua.edu.cn/help/debian/ sed -i.bak "s#ftp.debian.org/debian#mirrors.tuna.tsinghua.edu.cn/debian#g" /etc/apt/sources.list sed -i "s#security.debian.org#mirrors.tuna.tsinghua.edu.cn/debian-security#g" /etc/apt/sources.list #apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing #1.1.2 中科大源 # 参考: https://mirrors.ustc.edu.cn/help/proxmox.html sed -i.bak 's|^deb http://ftp.debian.org|deb https://mirrors.ustc.edu.cn|g' /etc/apt/sources.list sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list #apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing #1.1.3 aliyun源 sed -i.bak "s#ftp.debian.org/debian#mirrors.aliyun.com/debian#g" /etc/apt/sources.list #修改文件的同时, 会创建一个.bak后缀的备份文件 sed -i "s#security.debian.org#mirrors.aliyun.com/debian-security#g" /etc/apt/sources.list #阿里Debian源 #apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing #1.1.4 163源 sed -i.bak "s#ftp.debian.org/debian#mirrors.163.com/debian#g" /etc/apt/sources.list #163Debian源 sed -i "s#security.debian.org#mirrors.163.com/debian-security#g" /etc/apt/sources.list #163Debian源 #apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing # 2. PVE 软件源 # 删除默认企业源 rm -rf /etc/apt/sources.list.d/pve-enterprise.list #(任选一个源) # 2.1.1 清华源 echo "deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list # 2.1.2 中科大源 echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list #3 CEPH分布式源 #3.1.1 中科大源 echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list #中科大源 sed -i.bak "s#http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g" /usr/share/perl5/PVE/CLI/pveceph.pm #中科大源 # -------------------------------------------------------- # 更新索引, 升级安装软件包, 重启系统 # -------------------------------------------------------- # 如果无法拉取https软件源时安装 apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing apt update && apt dist-upgrade #4.LXC容器仓库源(CT) # 4.1.1 中科大源 sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm systemctl restart pvedaemon # 稍等下手动刷新webui 页面 # 删除订阅弹窗 sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service # 执行完成后,需注销PVE登录后, 重新启动浏览器 ``` THE END 本文作者:将夜 本文链接:http://zoe.red/2023/37.html 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。 最后修改:2024 年 05 月 12 日 © 允许规范转载 赞 6 如果觉得我的文章对你有用,请随意赞赏
3 条评论
能不能出一期 8.1升级8.2的教程
如何切换到本地ISO源,无法联网。
受益匪浅,谢谢分享!