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) ...
标签:...,up,更新,Setting,PVE,proxmox,pve,安装,debian 来源: https://blog.csdn.net/Lethe_Xu/article/details/123191719