[Solved] Cannot connect to the internet

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

[Solved] Cannot connect to the internet

Post by therealrobojock »

Hi,
I don't know why but certain distro's including mint cannot connect to the internet on my machine. It connects to the network fine and i can access 192.168.1.1 fine but it i open the browser it times out the page. Older versions of mint used to work on the machine without problems.

This is the motherboard i have in the machine and this is the router i connect to. For some or other reason these distros (Manjaro, Opensuse and Windows) work with the current setup out of the box without extra configuration, but i prefer to use linux mint.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot connect to the internet

Post by kc1di »

Hello therealrobojock,
Could you go to a terminal and type these command and post the output here - thanks.

Code: Select all

inxi -Nn

Code: Select all

iwconfig
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

inxi -Nn results

Code: Select all

Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169
           IF: enp1s0 state: up speed: 100 Mbps duplex: full
           mac: 40:8d:5c:4d:fd:8a
iwconfig results

Code: Select all

enp1s0    no wireless extensions.

lo        no wireless extensions.
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot connect to the internet

Post by kc1di »

please post the output of

Code: Select all

uname -r
Also you may find this page helpful. This is a known problem and it is unfortunately not fixed in ubuntu 16.04 which mint is based upon so you'll have to do the fix yourself. https://medium.com/@lgobinath/no-ethern ... e2779dc9b8
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

uname -r results

Code: Select all

4.10.0-38-generic
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

According to link you gave towards the end there is an updated solution, the thing is how do i do step 1. without an internet connection :shock:

Step 1

Code: Select all

sudo apt-get install build-essential linux-headers-$(uname -r)
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot connect to the internet

Post by kc1di »

Follow the steps on the web page I posted in previous post to manually install r8168 driver and blacklist r8169 driver.
It should work for now. Sorry it's so difficult in Mint/Ubuntu. But that is just the way things are at present :(

You may have to download the correct driver from here. https://packages.ubuntu.com/de/xenial/a ... s/download using another computer.
then save it to a flash drive or cd and install it with this command:

Code: Select all

sudo apt install PATH_TO_THE_DEB_FILE
reboot see if it connects.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

I have done as told, blacklisted the r8169 driver and installed the .deb file. Rebooted a few times and it still doesn't work r8169 keeps loading :(
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Cannot connect to the internet

Post by JeremyB »

Post results for

Code: Select all

lspci -nnk | grep -iA3 net
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

Code: Select all

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
	Subsystem: Gigabyte Technology Co., Ltd Motherboard [1458:e000]
	Kernel driver in use: r8169
	Kernel modules: r8168
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot connect to the internet

Post by kc1di »

try this command the reboot :

Code: Select all

 sudo  'echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf'
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Cannot connect to the internet

Post by Termy »

I would have suggested that you try a supported kernel version. 4.10 is no longer supported and therefore not recommended, AFAIK. (please correct me if I'm wrong) You could try 4.4, or, if you're not a VirtualBox user (or are happy downloading it from the website) you can use 4.13. Another reason I would suggest not using 4.10 is that 4.4 and 4.13 are getting Spectre and Meltdown patches, whereas 4.10 and 4.8 are, from what I'm told, not.

Try opening a terminal and running sudo modprobe -r r8169 to temporarily disable that module, then, if the usual way you connect doesn't work, try dhclient to (hopefully) get your Internet rolling. This is more of a test than anything.
I'm also Terminalforlife on GitHub.
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

kc1di wrote: Fri Mar 23, 2018 8:38 am try this command the reboot :

Code: Select all

 sudo  'echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf'
This does not work, it gives me an error of command not found or something like. The command from the guide sudo sh -c ‘echo blacklist r8169 >> /etc/modprobe.d/blacklist.conf’ works and if i cat /etc/modprobe.d/blacklist.conf it shows at the bottom blacklist r8169
Termy wrote: Fri Mar 23, 2018 1:57 pm Try opening a terminal and running sudo modprobe -r r8169 to temporarily disable that module, then, if the usual way you connect doesn't work, try dhclient to (hopefully) get your Internet rolling. This is more of a test than anything.
This also does not work :cry:

What i don't understand is if i plug in a different modem it works, if i switch back to the modem i want to use it doesn't work. Distro's (like debian, opensuse leap 42.3) that use older kernels like 4.9 it works, if it is a newer kernel 4.10 and up it doesn't work
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot connect to the internet

Post by kc1di »

therealrobojock wrote: Sat Mar 24, 2018 6:16 am
What i don't understand is if i plug in a different modem it works, if i switch back to the modem i want to use it doesn't work. Distro's (like debian, opensuse leap 42.3) that use older kernels like 4.9 it works, if it is a newer kernel 4.10 and up it doesn't work
That makes me believe the problem is with how 4.10 -4.13 kernels are doing something that prevents that particular driver from loading correctly.
In any event the only way around it that I see right now is to revert to the 4.4 kernel series. As from what I've been able to find in the chatter on line is that kernel 4.10 and above have r8169 installed and doesn't allow the module for r8168 to load or it conflicts with it. But someone more knowledgeable than I will have to explain the whys of that. So for now the only recourse I believe may be to use the 4.4 kernel.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

kc1di wrote: Sat Mar 24, 2018 6:51 am
So for now the only recourse I believe may be to use the 4.4 kernel.
At the moment i am not using linux mint because of that problem, is there anyway i can do that without an internet connection on the machine after installation?
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot connect to the internet

Post by kc1di »

Yes there is you can go here http://ubuntuhandbook.org/index.php/201 ... in-ubuntu/ and download the 4.4 kernel on another machine and install them with gdebi or dpkg. once installed boot into the 4.4 kernel and see if you can get wifi going if you can the update the 4.4 kernel to the latest version. good luck.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

No luck there either :cry: Yes i selected 4.4 kernel from the grup menu before boot, but still no luck :?
User avatar
kc1di
Level 18
Level 18
Posts: 8175
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Cannot connect to the internet

Post by kc1di »

ok now boot to 4.4 and you'll have to reinstall the r8168 module to build against the 4.4 kernel.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
mintmdrescher
Level 1
Level 1
Posts: 38
Joined: Thu Jun 11, 2015 9:33 am

Re: Cannot connect to the internet

Post by mintmdrescher »

What does 'netstat -rn' say?
What does 'cat /etc/resolv.conf' say?
therealrobojock
Level 1
Level 1
Posts: 32
Joined: Tue Apr 19, 2016 6:27 am

Re: Cannot connect to the internet

Post by therealrobojock »

Tried everything :( still doesn't work :x

The thing is the network card "works" i can access 192.168.1.1, i just cannot go onto the internet even if i run linux mint from live from usb. I think previous versions 17.x worked. Some distros have the same issue. Ubuntu 17.10 live usb works that how i access the forum.

Code: Select all

inxi -Nn
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8168
           IF: enp1s0 state: up speed: 100 Mbps duplex: full
           mac: 40:8d:5c:4d:fd:8a

Code: Select all

uname -r
4.4.0-040400-generic

Code: Select all

lspci | grep -iA3 net
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

Code: Select all

netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 enp1s0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 enp1s0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enp1s0

Code: Select all

cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
Locked

Return to “Beginner Questions”