Posted: . At: 9:10 AM. This was 6 years ago. Post ID: 12336
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Fix very slow Internet on Ubuntu 18 easily.

My Internet connection in Ubuntu 18 was very slow compared to Windows 8.1. This is how I fixed it.

Run this command to open the /etc/resolv.conf file for editing. If you do not have VIM installed, try nano instead. Or run sudo apt install vim-common.

jason@Yog-Sothoth » ~ » $ sudo vim /etc/resolv.conf

Then edit the file to look like this. You can substitute your own favorite DNS provider if you so wish. But this worked well for me.

  1 # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
  2 #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
  3 # 127.0.0.53 is the systemd-resolved stub resolver.
  4 # run "systemd-resolve --status" to see details about the actual nameservers.
  5 
  6 nameserver 8.8.8.8
  7 nameserver 8.8.4.4
  8 search home
  9 

Now the Internet is much faster than before. I also had the issue where the system could not resolve the localhost nodename, this meant I had problems using sudo. But now my system is usable again. The Systemd configuration is a bit strange by default, it is best to tweak it and enjoy a much faster Internet experience.

This is much better.

jason@Yog-Sothoth » ~ » $ speedtest-cli 
Retrieving speedtest.net configuration...
Testing from iPrimus (XXX.XXX.XX.XXX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by 'Yes' Optus (Sydney) [63.75 km]: 24.954 ms
Testing download speed................................................................................
Download: 10.95 Mbit/s
Testing upload speed......................................................................................................
Upload: 0.86 Mbit/s

15 thoughts on “Fix very slow Internet on Ubuntu 18 easily.”

  1. > Download: 10.95 Mbit/s
    > Upload: 0.86 Mbit/s
    Do you think it’s “better”? My link is 100Mb and I see:
    > Download: 93.63 Mbit/s
    > Upload: 4.01 Mbit/s
    So seems there is a real problem with “upload”…

    Reply
  2. Ubuntu 20.04: Worked fine! Thanks.

    PS: it does not affect internet speed, it affects internet *connection* speed when you need to find an address, like in a “apt update” or “apt upgrade” and similars.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.