PVE安装后修改软件更新源
清华镜像站:
1、使用vi编辑器,修改/etc/apt/sources.list
https://mirrors.tuna.tsinghua.edu.cn/help/debian/
https://mirrors.tuna.tsinghua.edu.cn/help/proxmox/
1、使用vi编辑器,修改/etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
2、使用vi编辑器新建文件/etc/apt/sources.list.d/pve-no-subscription.list
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
3、使用vi编辑器屏蔽ceph源/etc/apt/sources.list.d/ceph.list
在内容前面加#号进行整行注释
4、屏蔽企业源/etc/apt/sources.list.d/pve-enterprise.list
在内容前面加#号进行整行注释
-----------------------------------------
都配置好后,开始更新升级:
apt update
apt upgrade -y
(如果速度还慢,查看一下/etc/apt/sources.list文件,看是否是系统在最后面新增了一行内容,如果有删掉即可)
评论
发表评论