在服务器上install东西发现一直显示fall
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-7/cpp-7_7.5.0-3ubuntu1~18.04_amd64.deb Could not resolve ‘cn.archive.ubuntu.com’
这是dns没有配导致上不了网。
解决办法:
- 用
vi /etc/systemd/resolved.conf
修改了DNS=114.114.114.114 - 然后
sudo apt-get update