当前位置: 首页 > 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.jsqmd.com/news/40227/

相关文章:

  • 基于Session和Redis实现短信验证码登录 - 教程
  • 深入解析:高可用架构实战:SpringBoot+MongoDB构建AI原生应用
  • 代涂高者——《机器学习》总结笔记
  • 2025年五个女博士品牌可信度分析:深度拆解科研底色与市场真实反馈
  • 2025年五个女博士品牌可信度分析:深度拆解科研数据与真实市场反馈
  • SonarQube Scanner CLI 下载踩坑记
  • 力扣 第 169 场双周赛(A~D)
  • 软件测试基础理论
  • 用 CloudFront + Lambda@Edge 实现“可回滚、可观测”的灰度发布
  • 2025年北京搬家公司联系电话推荐:吉时达搬家准时守约口碑佳
  • 如何查看Windows快捷键被占用
  • 2025年企业人工智能解决方案最新top5推荐:智能体平台全场景覆盖,助力企业数字化转型
  • 领嵌iLeadE-588边缘计算网关设备支持4路摄像头4路网口连接云平台
  • 【完结10章】n8n+AI工作流:从入门到企业级AI应用实战
  • 2025企业数字人展厅企业TOP5推荐:从技术落地到场景价值的实力标杆
  • 如何敏捷建立能落地有效果的软件质量体系
  • 实用指南:Webpack 打包优化与骨架屏结合:双管齐下提升前端性能与用户体验
  • 数字通信 锁相环
  • 2025年GEO搜索优化服务商最新专业评测top5:源码搭建重构AI流量入口新生态
  • Atcoder-ABC-431-E
  • 空间线性的线段树分治
  • 2025年AI客服品牌最新top4专业评测:AI销冠在线自动回复
  • 2025年石棉橡胶板厂家联系方式推荐:品质服务双保障
  • 完整教程:毕设项目基于python的旅游文化推广管理系统\251019(白嫖源码+演示录像)可做计算机毕设JAVA、PHP、爬虫、APP、小程序、C#、C++、python、数据可视化、文案
  • 2025年石棉橡胶板厂家联系方式推荐:质量认证齐全厂商盘点
  • 两款开源工具推荐:科学信息检索导航 LaTeX 在线阅读器,科研效率提升利器!
  • 2025年石棉橡胶板厂家联系电话推荐:全国供货渠道大全
  • 2025年AI获客服务商最新top5评测:数据分析、市场预测、客户服务多场景覆盖
  • 2025年比较好的工装定制TOP实力厂家推荐榜
  • 2025年11月天津电商财税公司排名:五强口碑与能力综合评测