当前位置:首页 > PVE > 正文内容

PVE 8 更换 apt 国内源的方法[清华源]

admin1个月前 (09-10)PVE216

清华源信息


官方网站

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


更换流程

备份源文件

#
cp /etc/apt/sources.list /etc/apt/sources.list.bak


替换源文件

# debian 12 源
cat > /etc/apt/sources.list << EOF
deb http://mirrors.ustc.edu.cn/debian/ bookworm main non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm main non-free-firmware

deb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib

deb http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free-firmware

EOF
# pve 软件原
cat > /etc/apt/sources.list.d/pve-no-subscription.list << EOF
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
EOF


关闭自动更新

生产系统自动更新容易遇到不可预知的问题,正常需要关闭自动更新,按需手动更新

关闭方法

systemctl disable --now pve-daily-update.timer

开启方法

systemctl enable --now pve-daily-update.timer


PVE8.x基于debian12默认的慢,用第三方仓库更新podman版本

仓库配置添加仓库

echo 'deb http://download.opensuse.org/repositories/home:/alvistack/Debian_12/ /' | tee /etc/apt/sources.list.d/home:alvistack.list

 配置gpg key

curl -fsSL https://download.opensuse.org/repositories/home:alvistack/Debian_12/Release.key | gpg --dearmor |  tee /etc/apt/trusted.gpg.d/home_alvistack.gpg > /dev/null

安装podman

apt update && apt install -y podman netavark

验证安装

podman version




扫描二维码推送至手机访问。

版权声明:本文由发布,如需转载请注明出处。

本文链接:https://ikuaios.com/post/3.html

分享给朋友:
返回列表

没有更早的文章了...

没有最新的文章了...

“PVE 8 更换 apt 国内源的方法[清华源]” 的相关文章

评论列表

2K电影
4天前

楼主的帖子提神醒脑啊!https://www.2kdy.com

2K影视
3天前

感觉不错!https://www.2kdy.com

2K电影
2天前

今天上网不回帖,回帖就回精华帖!https://www.2kdy.com

2K影视
21小时前

文章论点明确,论据充分,说服力强。https://www.2kdy.com

2K影院
8小时前

今天怎么了,什么人都出来了!https://www.2kdy.com

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。