我正在为我们的工作站设置MAAS,一切都很顺利!我用它部署了一个测试VM。唯一不起作用的东西是恰当的。
我不能做apt update。它在寻找172-16-0-0--16.maas-internal,我不知道它是从哪里得到的。
这是完整的输出:
~# apt update
Err:1 http://packages.microsoft.com/repos/vscode stable InRelease
Could not resolve '172-16-0-0--16.maas-internal'
Err:2 http://aptly bionic InRelease
Could not resolve '172-16-0-0--16.maas-internal'
Err:3 http://aptly bionic-updates InRelease
Could not resolve '172-16-0-0--16.maas-internal'
Err:4 http://aptly bionic-security InRelease
Could not resolve '172-16-0-0--16.maas-internal'
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Failed to fetch http://aptly/dists/bionic/InRelease Could not resolve '172-16-0-0--16.maas-internal'
W: Failed to fetch http://aptly/dists/bionic-updates/InRelease Could not resolve '172-16-0-0--16.maas-internal'
W: Failed to fetch http://aptly/dists/bionic-security/InRelease Could not resolve '172-16-0-0--16.maas-internal'
W: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/InRelease Could not resolve '172-16-0-0--16.maas-internal'
W: Some index files failed to download. They have been ignored, or old ones used instead.这是我的/etc/apt/sources.list文件:
# Aptly
deb [trusted=yes arch=amd64] http://aptly/ bionic main universe
deb [trusted=yes arch=amd64] http://aptly/ bionic-updates main universe
deb [trusted=yes arch=amd64] http://aptly/ bionic-security main universe我也尝试了默认的sources.list,但是它也有相同的错误。
/etc/resolv.conf文件只指向我的DNS服务器。
不管我把什么放在我的sources.list文件中,它总是抱怨172-16-0-0--16.maas-internal。为什么要找172-16-0-0--16.maas-internal?那是什么?我能绕开它吗?我必须设置一个新的DNS记录吗?我怎么能有合适的工作呢?
非常感谢!
发布于 2021-04-21 14:15:41
不得不删除/etc/apt/apt.conf.d/90curtin-aptproxy
发布于 2021-07-06 23:13:50
看起来你已经编辑了你的网络吐露。如果您已经编辑过,请尝试以下步骤:
apt update的节点的DNS。 enp3:
match:
macaddress: 62:34:0f:91:1b:e2
addresses:
- 172.168.0.12/24
gateway4: 172.168.0.10
mtu: 1500
nameservers:
addresses:
- 172.168.0.16 #<<<< IP OF THE MAAS INTERFACE #
set-name: enp3
sudo systemctl restart systemd-networkd和节点或重新启动。https://askubuntu.com/questions/1332907
复制相似问题