Temporary failure resolving 'mirrors.linode.com'
After I update to Ubuntu 20.04, ssh broke. So I want to reinstall it. But I get error message with sudo apt install openssh-server
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
btrfs-progs libargon2-0
Use 'sudo apt autoremove' to remove them.
Suggested packages:
molly-guard monkeysphere ssh-askpass
The following NEW packages will be installed:
openssh-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 377 kB of archives.
After this operation, 1,527 kB of additional disk space will be used.
Err:1 http://mirrors.linode.com/ubuntu focal-updates/main amd64 openssh-server 1
Temporary failure resolving 'mirrors.linode.com'
E: Failed to fetch http://mirrors.linode.com/ubuntu/pool/main/o/openssh/openssh'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-mi?
Is there something wrong with my network setting?
3 Replies
I have hand-modified /etc/resolv.conf and add nameserver 8.8.8.8
. No luck. How to set a correct DNS then?
Well, I solved it myself. I don't why it works again after I systemctl restart networking service
. And that's even after several reboot.
It would not be typed like this: $ systemctl restart networking.service