当前位置: 首页 > news >正文

Proxmox VE9.0优化-换源

pve9.0 换源

参考文章:

  1. PVE 9.0 保姆级安装及优化教程(换源、网络配置、远程唤醒等)【基础篇】

  2. PVE 9.0 保姆级安装及优化教程(换源、网络配置、远程唤醒等)【基础篇】 | ZhiChao's Blog

  3. Debian 软件源 - 清华大学开源软件镜像站

  4. Proxmox 软件仓库 - 清华大学开源软件镜像站

  5. 国光的 PVE 环境搭建教程 - 基础设置
    SSH连接PVE,root登录。

PVE 9.0 基于 Debian 13,除了换 Debian 的软件源以外,还需要编辑企业源、Ceph 源、无订阅源以及 CT 模板源。

Debian 软件源

Debian 13 软件源变更为 DEB822 格式 /etc/apt/sources.list.d/debian.sources ,不再是传统格式 /etc/apt/sources.list

与常规的 Debian 13 一样,将 /etc/apt/sources.list.d/debian.sources 中默认源全部删除,将其替换为清华源

vi /etc/apt/sources.list.d/debian.sources

Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/debian
Suites: trixie trixie-updates trixie-backports
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
# Types: deb-src
# URIs: https://mirrors.tuna.tsinghua.edu.cn/debian
# Suites: trixie trixie-updates trixie-backports
# Components: main contrib non-free non-free-firmware
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
Types: deb
URIs: https://security.debian.org/debian-security
Suites: trixie-security
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg# Types: deb-src
# URIs: https://security.debian.org/debian-security
# Suites: trixie-security
# Components: main contrib non-free non-free-firmware
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

企业源

将 PVE 的企业源 /etc/apt/sources.list.d/pve-enterprise.sources 注释掉(也可以直接删除)

vi /etc/apt/sources.list.d/pve-enterprise.sources

# Types: deb
# URIs: https://enterprise.proxmox.com/debian/pve
# Suites: trixie
# Components: pve-enterprise
# Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

Ceph 源

将 PVE 的 Ceph 源 /etc/apt/sources.list.d/ceph.sources 也替换成清华源

vi /etc/apt/sources.list.d/ceph.sources

Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/ceph-squid
Suites: trixie
Components: no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

无订阅源

在 /etc/apt/sources.list.d 目录下创建 pve-no-subscription.sources 文件,填上以下内容

# 删除错误的旧配置文件
rm /etc/apt/sources.list.d/pve-no-subscription.list
cd /etc/apt/sources.list.d
touch pve-no-subscription.sources
vi pve-no-subscription.sources

填入下面的内容

Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg

从新的官方源 (deb.debian.org) 下载列表

# 1. 从新的官方源 (deb.debian.org) 下载列表
apt-get update# 2. 再次尝试安装 vim
apt-get install vim -y

CT 模板源

如果你需要用到 PVE 中的 LXC 容器,那么还需要替换一下 CT 模板源,否则下载模板会非常的慢

将 /usr/share/perl5/PVE/APLInfo.pm 文件中默认的源地址 http://download.proxmox.com 替换为

https://mirrors.tuna.tsinghua.edu.cn/proxmox

可以使用如下命令修改,重启后生效

cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_backsed -i 's|http://download.proxmox.com|https://mirrors.tuna.tsinghua.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm

优化完毕后进行系统安装[[20251028-Proxmox VE安装虚拟机Ubuntu Server LTS]]

http://www.zskr.cn/news/49453.html

相关文章:

  • 21 CFR part11
  • 代涂高者——《机器学习》总结笔记
  • 力扣 第 169 场双周赛(A~D)
  • 如何查看Windows快捷键被占用
  • 领嵌iLeadE-588边缘计算网关设备支持4路摄像头4路网口连接云平台
  • Ubuntu 20.04.1 LTS 安装 Emqx-5.8.8
  • 2025企业数字人展厅企业TOP5推荐:从技术落地到场景价值的实力标杆
  • 实用指南:Webpack 打包优化与骨架屏结合:双管齐下提升前端性能与用户体验
  • Atcoder-ABC-431-E
  • 2025年石棉橡胶板厂家联系方式推荐:品质服务双保障
  • 两款开源工具推荐:科学信息检索导航 LaTeX 在线阅读器,科研效率提升利器!
  • 2025年比较好的工装定制TOP实力厂家推荐榜
  • 2025年11月天津电商财税公司榜单:五家服务商综合对比与选型建议
  • 2025年质量好的耙犁片TOP实力厂家推荐榜
  • 2025年比较好的面粉粮油厂家推荐及采购参考
  • 2025年热门的景区观光车用户好评厂家排行
  • 2025年质量好的卡扣式反弹器最新TOP厂家排名
  • 2025上海留学机构十大排名榜单大全
  • 2025上海口碑最好的留学机构是哪家公司的
  • 2025年质量好的昆明泡沫箱厂家推荐及选择参考
  • Unity+FGUI列表制作滚筒抽奖动画
  • 2025年靠谱的金属网厂家最新TOP实力排行
  • 完整教程:基于单片机的多模式自动洗衣机设计与实现
  • 2025年口碑好的工业型无线测力称重变送器厂家选购指南与推荐
  • 物理模型的图像去雾算法MATLAB实现
  • 2025年评价高的发热管缩管机行业内知名厂家排行榜
  • 2025年质量好的减速机配件厂家最新推荐权威榜
  • 2025年比较好的三菱印刷机胶辊厂家推荐及选择指南
  • 2025年比较好的精密减速器用户好评厂家排行
  • VonaJS: 序列化/数据脱敏(上)