PVE安装更新源错误

pve系统ping 网络不通且不能进行apt install

描述

root@xuyuquan:~# apt-get update
Err:1 http://ftp.debian.org/debian bullseye InRelease
  Temporary failure resolving 'ftp.debian.org'
Err:2 https://enterprise.proxmox.com/debian/pve bullseye InRelease
  Temporary failure resolving 'enterprise.proxmox.com'
Err:3 http://security.debian.org bullseye-security InRelease
  Temporary failure resolving 'security.debian.org'
Err:4 http://ftp.debian.org/debian bullseye-updates InRelease
  Temporary failure resolving 'ftp.debian.org'

1、vi /etc/apt/sources.list.d/pve-enterprise.list
注释掉

#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

2、

vi /etc/apt/sources.list
deb http://download.proxmox.com/debian stretch pve-no-subscription

3、

echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list

4、

wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg

这步还会出错:error:wget: unable to resolve host address ‘download.proxmox.com’
5、解决:echo "nameserver 1.1.1.1" >> /etc/resolv.conf
6、apt update && apt dist-upgrade 成功

Setting up mount (2.36.1-8+deb11u1) ...
Setting up libcurl4:amd64 (7.74.0-1.3+deb11u1) ...
Setting up libcryptsetup12:amd64 (2:2.3.7-1+deb11u1) ...
Setting up curl (7.74.0-1.3+deb11u1) ...
Setting up samba-libs:amd64 (2:4.13.13+dfsg-1~deb11u3) ...
Setting up vim-tiny (2:8.2.2434-3+deb11u1) ...
Setting up fdisk (2.36.1-8+deb11u1) ...
Setting up libsmbclient:amd64 (2:4.13.13+dfsg-1~deb11u3) ...
Setting up smbclient (2:4.13.13+dfsg-1~deb11u3) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for mailcap (3.69) ...

7、参考
官方文档
error

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值