问题描述
大家好!我在虚拟机(VirtualBox 6.1)中安装了 proxmox,每次尝试安装软件包时,debian 或 ceph 都会出现以下错误:
我安装 ceph 时:
W: Failed to fetch http://ftp.debian.org/debian/dists/buster/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/buster-updates/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://security.debian.org/dists/buster/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://download.proxmox.com/debian/ceph-nautilus/dists/buster/InRelease Temporary failure resolving 'download.proxmox.com'
W: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease Temporary failure resolving 'enterprise.proxmox.com'
W: Some index files failed to download. They have been ignored,or old ones used instead.
start installation
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ceph is not available,but is referred to by another package.
This may mean that the package is missing,has been obsoleted,or
is only available from another source
However the following packages replace it:
ceph-common
Package ceph-mds is not available,or
is only available from another source
E: Package 'ceph' has no installation candidate
E: Package 'ceph-mds' has no installation candidate
apt failed during ceph installation (25600)
我更新系统时:
root@pve:~# apt-get update
Err:1 https://enterprise.proxmox.com/debian/pve buster InRelease
Temporary failure resolving 'enterprise.proxmox.com'
Err:2 http://ftp.debian.org/debian buster InRelease
Temporary failure resolving 'ftp.debian.org'
Err:3 http://security.debian.org buster/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:4 http://download.proxmox.com/debian/ceph-nautilus buster InRelease
Temporary failure resolving 'download.proxmox.com'
Err:5 http://ftp.debian.org/debian buster-updates InRelease
Temporary failure resolving 'ftp.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.debian.org/debian/dists/buster/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://ftp.debian.org/debian/dists/buster-updates/InRelease Temporary failure resolving 'ftp.debian.org'
W: Failed to fetch http://security.debian.org/dists/buster/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://download.proxmox.com/debian/ceph-nautilus/dists/buster/InRelease Temporary failure resolving 'download.proxmox.com'
W: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease Temporary failure resolving 'enterprise.proxmox.com'
W: Some index files failed to download. They have been ignored,or old ones used instead.
如果有人知道如何解决这个问题,我将非常感谢您的帮助!谢谢。
解决方法
您没有来自该 VM 的正确网络连接设置(nat、网桥、网关?)或内部名称解析 (resolv.conf)?