需要手动添加dns服务器才能解析网址:
修改/etc/netplan/00-installer-config.yaml内容如下,注意enp0s3需要修改

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp0s3:
      addresses: []
      dhcp4: true
      gateway4: 192.168.0.1
      nameservers:
          addresses: [223.5.5.5, 223.6.6.6]
  version: 2

重启网络
sudo netplan apply

标签: ubuntu

添加新评论