Score:0

internet connection problem in Ubuntu 20.04

ca flag

I was trying to fix my internet connection problem in Ubuntu 20.04. My firefox is not working. The error I got after running Sudo apt-get update.

I found a few posts regarding this problem in the forum. I tried to use: sudo echo nameserver 8.8.8.8 > /etc/resolv.conf. But it didn't work, and said bash: /etc/resolv.conf: No such file or directory. Obviously, there's an empty folded named /etc/resolv.conf. I ended up with adding #nameserver 8.8.8.8 in resolv.conf.save, But I can't have it saved under resolv.conf. These are the files I got under /etc. Many thanks

  • resolv.conf
    resolv.conf.save
    resolv.conf.save.1
David avatar
cn flag
Very clear what is wrong. The error message is telling you that that mirror is down at least for now change to a different mirror.
Score:0
in flag

Firstly you need to delete resolv.conf whether it's a file or a directory. If you think it's a folder as you mentioned in the post, try sudo rm -rf resolv.conf. If it's a symlink file, execute sudo rm -f /etc/resolv.conv. Then edit the file you just created with sudo echo 8.8.8.8 > /etc/resolv.conf. That should solve your problem.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.