当前位置:   article > 正文

Proxmox ve(PVE)更换国内源_pve8 替换国内源

pve8 替换国内源

更换阿里云源解决TASK ERROR: command 'apt-get update' failed: exit code 100

1、查看内核版本,我的版本是10.2.1

  1. root@pve:~# cat /proc/version
  2. Linux version 5.15.102-1-pve (build@proxmox) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PVE 5.15.102-1 (2023-03-14T13:48Z)

2、去阿里云官网找对应的版本的源

debian镜像_debian下载地址_debian安装教程-阿里巴巴开源镜像站

  1. deb https://mirrors.aliyun.com/debian/ buster main non-free contrib
  2. deb-src https://mirrors.aliyun.com/debian/ buster main non-free contrib
  3. deb https://mirrors.aliyun.com/debian-security buster/updates main
  4. deb-src https://mirrors.aliyun.com/debian-security buster/updates main
  5. deb https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  6. deb-src https://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  7. deb https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
  8. deb-src https://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

 3、替换成阿里云的源。(可以把里面的内容都删除)

root@pve:~# vi /etc/apt/sources.list

 

4、因为没有订阅 Proxmox VE 企业版服务,所以这里对Proxmox VE 企业版更新源进行注释操作。也可以直接删除该文件

  1. root@pve:~# vi /etc/apt/sources.list.d/pve-enterprise.list

5、最后执行更新源

root@pve:~# apt update

如果更新报错,看看是不是dns没有设置

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/209183
推荐阅读
  

闽ICP备14008679号