当前位置:   article > 正文

PVE安装更新源错误_pve temporary failure resolving

pve temporary failure resolving

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
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

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

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

2、

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

3、

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

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
  • 1

这步还会出错: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) ...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

7、参考
官方文档
error

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

闽ICP备14008679号