While one of the biggest conflicts with whom we can face when performing a fresh installation Ubuntu or some derivative of this, is the one when starting the system we realize that the system is not connected to the network for some reason.
If you are new to the system I invite you to review this article and you can find the solution to your problem in this, due to the large number of causes I will share with you some of the most common that are usually the focus of the problem.
One of the first problems we encounter is that sand what you have done is an update of your system to a next version from the terminal, you should start to check if you have problems with the dependencies, since these types of updates are the least recommended.
Depending on the type of connection we have, the first thing we usually check is that the cable is plugged into both the computer and the modem, in the case of Wi-Fi what we verify is that it is turned on.
Edit the mac change randomly
Among the first steps that we must do to find the problem is to check that our connection is active, for this we must open a terminal and execute the following:
sudo nano /etc/NetworkManager/NetworkManager.conf
Due to changes in the version of Network Manager since its version 12 this added the randomization of MAC addresses for Wi-Fi. So this can be one of the causes for this we must add the following line:
[device] wifi.scan-rand-mac-address=no
We save the changes with Ctrl + O and exit with Ctrl + X
Finally, we just restart Network Manager
sudo service network-manager restart
Check that this activates your connection
I share with you this solution, since it was what happened to me since for some reason my connection is not active and this can be seen when writing on the terminal:
ifconfig
In case of having Wifi
iwconfig
Now what I did was check that the network was managed, for this on the terminal I executed the following:
sudo nano /etc/network/interfaces
Obtaining the following result:
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
Where eth0 is the name of the connection, when actually the name of my wired connection is enp2s0, then all I did was replace eth0 with enp2s0
Finally, we just reload Network Manager.
sudo /etc/init.d/networking restart
Activate and deactivate your connection
Although it seems absurd, this is also a solution, what I have not been able to understand is because Network Manager disables our connection at system startup and that is why we cannot connect to the network.
To do this, we just have to type the following:
sudo ifdown eth0 sudo ifup eth0
Where eth0 is the name of your interface, remember that we know this with ifconfig or iwconfig in case of having wifi.
Check DNS
Another problem we may have is with DNS, our internet provider is the one who offers them to us, but There are times when the system does not take them, which is why we must reconfigure them for this we execute the following:
sudo dpkg-reconfigure resolvconf
Once this is done, we must restart our computer.
Change DNS
If the previous step did not work we can choose to change the dns for this we must edit the following file, I recommend you only comment the dns you have with a # at the beginning of the lines.
sudo nano/etc/resolv.conf
We can use some of the ones that google offers us:
# Google IPv4 nameservers nameserver 8.8.8.8 nameserver 8.8.4.4
# Google IPv6 nameservers nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844
Finally, we just save and reboot the system.
The last resort that we can have is to install the drivers for this we must look for them on the network or possibly we have a CD where they are included.
If you know of any other method that has resulted in editing a system configuration other than these, do not hesitate to share it with us.
Totally out of place my comment, but what a good derivative Voyager is
Hi David, very good article
Check the command "iwconfi", because I think the correct thing (at least in fedora it is like that) is "iwconfig"
For the rest, perfect and also very useful (Murphy already said that if something can go wrong ... don't worry it will fail). It is always good to know possible solutions.
when i install ubuntu mate 18,4 everything works fine ...
After a while — the Wi-Fi connection appears to be connected ... but it doesn't give me a signal.
I disconnect wifi and reconnect it and it gives me a signal.
It is not an internet problem.
because in another linux distribution this does not happen to me.
my laptop only connects to the network via wifi
it is an HP stream.
and it is not a problem with the laptop ..
Any idea? Juan
I'm sick of ubuntu, all the solutions I look for and none works for me ... unfortunately I will have to be a pirate in windows
Perfect your choice, ubuntu is the worst shit that exists, it has problems with anything without counting the translation that is less than half, windows despite a pirated copy you plug in a dog and it works.
I join Maxi. My computer won't let me install anything or make updates. For everything it generates error. I'm tired of Linux and I'm not really a systems engineer to have the patience to fix a system that should be nice to people like me, who need a computer to work, without being programmers.
Thanks, it worked really well.
Excellent I am glad that the information serves you.
I do not know that I have played in my ubuntu 18.04 that does not recognize the wi-fi.
By ethernet if it works for me, but the wi-fi does not.
What I can do?
Could you tell me if there is any command to enter in terminal.
After years working with Ubuntu I see that I have to go back to Windows 🙁 because I am not able to solve this connection problem. I'm sorry for the day I decide to update the system ...
Hello, good day for you over there. I have a Smsng NC110P netbook with RTL 8101E / RTL8102E modules and wireless-N130. A while ago I can no longer connect to the internet by wireless network. And I have Ubuntu 14.04 LTS installed.
I accessed the terminal and entered "iwconfig." The command reports to me:
Mode: Managed
Access point: Not-associated
RTS thr:off
Fragment thr: off
Power Management: off
no wireless extensions
eht0 no wireless extensions.
I have already tried installing the wireless card driver through a wired connection with the apt-get commands and I could not solve the problem. Any idea how to keep trying?
Lastly, my wireless network DOES work with other devices.
Greetings from Argentina and long live free software!
Thanks, I did not know that updating via terminal was less recommended, and unless there were problems with dependencies. Launching ifconfig to see how the system calls the ethernet connection, as it happened to you, add the lines and modify the interfaces, and re-launch the networking daemon has been in my case as in you. the solution. So thank you very much, hours that I will have to sleep, I appreciate the expert, solvent and elegant contribution.
How to install a USB wifi network card, TL-WN823N V3, The computer has a wired network card but I do not have a wired connection, only WIFI connection, I have the linux drivers, can it be done from the console?
Thank you
I have followed all the possible bugs you posted, mine finally appeared. Thanks.
It is what I appreciate from the Ubuntu community, they are always ready to help.
Hello! Wi-Fi only works on my computer if I have a usb adapter. How can I get it to work without the adapter? Thanks!
Regards!
Hello, I updated to Ubuntu 18 recently, until yesterday everything fine, today I turn it on and the WIFi icon does not appear, I tried to connect it by cable and neither. I try to enter the settings icon and neither. Try to do the first step of this tutorial and when I enter the command: sudo nano /etc/NetworkManager/NetworkManager.conf it tells me that the file does not exist.
Try to find the folders, system, etc, Network and if the file is there….
Another thing ifconfig doesn't work for me, and I can't install net-tool because guess what? I do not have internet. Help, thank you very much
Hello! Have you been able to solve the problem? The same thing happens to me and I don't know what to do
Help to
Thank you very much for the help, it served me a lot, congratulations.
What should go where it says [device] in: [device] wifi.scan-rand-mac-address = no? my pc does not want to get internet signal, tarsa too much in ubuntu 16.04
I have a question:
I have a lenovo legion y530 laptop on which I have Windows 10 factory installed, in turn, on a ssd that I connect externally to the laptop, I have Ubuntu 20.04 LTS.
My problem is that if I start the dual boot with Ubuntu, I have a Wi-Fi connection for a few minutes and then I get a connection failure, disappearing any visible Wi-Fi network that I can connect to, but from my mobile, I can connect perfectly to the home wifi network.
So, I restart ubuntu, but in the dual boot, I start Windows 10, I connect to the wifi as well, it does not disconnect for nothing.
After a while using windows 10, I restart and go to ubuntu, from there the wifi connection through ubuntu works well and I can surf and use the internet quietly.
I would like to know if anyone knows if with some of these possible solutions I can end this problem or is there a specific solution?
I clarify that previously I was trying several solutions that I found on YouTube, they did not work for me and they were not the ones that are exposed in this tutorial. But in order not to have to reformat the ssd and install ubuntu again (which already has me half tired because I did it about 3 times already), I wanted to have the support of the community.
Regards!
Hello, I mention that in the part of the command «sudo nano /etc/resolv.conf», the command is misspelled due to the simple fact that when it says «sudo nano / etc / resolv.conf» it is all together where it says « nano / etc /… "and it should go like this:" sudo nano /etc/resolv.conf ".
I hope you understand why novice people who see this article will make an error in the procedure just for that, thank you.
the best solution for me is to change the name and the password of the wi-fi of the router and saint remedy