Just installed Ubuntu but I have no connectivity to the internet

Hi I’m a huge Linux noob and I just installed Ubuntu and have no network connectivity. I kinda assumed I’d have to get drivers for my motherboards Wifi capabilities however I get no connection even with Ethernet connection. I also put the Ethernet cord through a Network cable tester and it’s good so I can rule out the possibility of that being the culprit.

I ran IWconfig in case the drivers for my wifi were installed and it mentions “no internet connection”. I also believe ifconfig is the Linux equivalent of ipconfig but when I run it asks for me to install a package for it. That wouldn’t be an issue if I had a connection lol. If someone can show me the way that would be great.

Pc specs just in case they’re relevant.

Gigabyte B650M Elite AX

AMD 7600x

Radeon 6600

It’s anew build and don’t have any other OS installed(I planned to VM or partition Windows for games that don’t have Linux support).

Sorry for typos I’m frustrated and I know this is just the beginning of the Linux learning curve.

Posted Nov 6, 2022, 1:24 AM UTC · edited

812
flemtone•

If Ubuntu cannot find your wifi driver then connecting either via ethernet or tethering to your mobile can help you run additional-drivers tool to check for any 3rd party wifi drivers that you may need.

4
AfIx1Klwk•

if you have a smartphone or possibly tablet, you could try usb tethering it to share the internet connection: https://www.makeuseof.com/tag/how-to-tether-your-smartphone-in-linux/

ifconfig is a bit older and not used by some linux distributions anymore. you should be able to get similar info with ip a. if tethering doesn't work or isn't an option, it may help to see some info about your network adapters from something like lspci -knn | grep -iA3 net.

2
Aztec-OP•

Tethering works I will try installing some drivers and troubleshoot from there thx :)

3
AfIx1Klwk•

i haven't used ubuntu in a while, but think the software updater might have an option to look for needed drivers. if not, you should be able to get the id's from lspci -knn and look at the hardware database to see if it can help you identify which drivers you may need: https://linux-hardware.org/?view=search

lspci -knn | grep -iA3 net
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-LM [8086:153a] (rev 04)
	Subsystem: Lenovo Ethernet Connection I217-LM [17aa:2210]
	Kernel driver in use: e1000e
	Kernel modules: e1000e

that's what my ethernet adapter looks like. 8086 is the vendor and 153a is the device id. 17aa:2210 are the sub-vendor and sub-device id's. the bottom two lines show driver info.

3
spxak1•

Try something with a newer kernel like fedora 37 or popos.

Your 2.5gbe and mediatek WiFi need a new kernel.

2
CoronaMcFarm•

You have ran into one of the drawbacks of Ubuntu, it can be lagging quite a bit behind the most recent Linux kernels, your hardware is probably supported in a newer kernel, but it might take months before it gets updated. When I got my RX5700XT days after release I had to switch from Ubuntu to a distro with a more recent kernel and mesa drives to have it work

2
eionmac•

TESTING. Usually always test a new system with a LIVE LINUX and Ethernet cable attached. I recommend Live Knoppix as its hardware detection is very good. If it connect to internet (always does so automatically if using Ethernet cable), then you know system is OK. You can also test if it will work on WiFi.

If that works (both Ethernet and WiFi) Then you know it is not a hardware problem. Extract drivers from the Knoppix, save to another USB and load when loading your chosen Linux as part of the install process, if it allows other data to be loaded during install

2
OldMansKid•

I'm not an expert on this but I think Ubuntu is supposed to have most drivers ready out of the box. If neither your eithernet or wifi is working, then the general idea is to see if ubuntu is able to recognize these hardwares, like using "lspci" to see if they are listed.

Then you search on the web to see if linux has built-in driver support for the particular wifi adapter, or the eithernet adapter. I have had this problem 10 years ago, when I got a laptop that neither the eithernet card nor the wifi card were supported. I had to compile the drivers manually. If that's the case for you, then you'll either tether through your phone connection to download the drivers somewhere or the tools to compile the source code if only source code is available;

or alternatively you can install ubuntu using the DVD iso, which should contain a working tool chain to compile drivers.

1
Crissix3•

ok that ethernet doesn't work is a new one for me lol

there's also a difference between no ethernet connection and no internet connection.

so if it's only no internet connection, are you sure your router has internet?

there might be something configured weirdly there.

not a network Crack tho, so I only know the bare minimums about network connections.

1
TabsBelow•

What does rfkill list

say?


To download & install a driver, connect your pc to your smartphone by USB tethering.

1
tux2718•

Can you create an Arch Linux Live USB and boot from it with an ethernet cable attached? If you can ping your router or something on the internet, you know the hardware is good. Do you need more instruction than that?

-1
Aztec-OP•

Tethering works so I am able to ping things but since it’s through USB I may try this to test the Ethernet port

3