Jump to content

First time Linux - Can't install ethernet driver

Go to solution Solved by Guest,

Support was added in Kernel 5.9, Ubuntu LTS I believe is on 5.8.

You might try Ubuntu 21.04

 

or can you tether from your phone over USB?

If so, tether and grab this kernel https://liquorix.net/

 

You may or may not need to also clone the linux-firmware tree as well.

git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

cd linux-firmware

sudo make install

 

Hi,

 

This morning I decided to try out Linux. I installed Ubuntu. I was pretty sure that I won't have an ethernet driver, because Windows 10 didn't install one either. I guess the LAN in my MB is not quite old enough:

https://www.asus.com/Motherboards-Components/Motherboards/All-series/TUF-GAMING-B550M-PLUS/techspec/

 

I found the ethernet driver and it started with dependency for "make". I downloaded it from here and installed it:

https://packages.ubuntu.com/search?suite=groovy&section=all&arch=any&keywords=make&searchon=names

 

Then it asked for "gcc", again booted back into windows, downloaded it, went back into ubuntu to install.

"gcc" asked for "gcc-10"

"gcc-10" asked for "cpp"

"cpp" asked for "cpp-10"

"cpp-10" asked for "gcc-10-base" - Finally was able to install "gcc-10-base" and install all of the above. But now "gcc" has some other dependencies, it askes for "binutils", "libcc1-0" and "libgcc-10-dev"

 

Again binutils and libgcc-10-dev have another million dependencies, please see the log attached.

log

 

How do you guys do this? I have to manually install every single thing. Add to that the fact that I need to restart and boot back into windows to get that thing. I've been doing this for 3 hours now, I literally regret waking up this morning.

 

PLEASE .....help

Link to post
Share on other sites

3 hours ago, C2dan88 said:

Install build-essentials package (this include gcc, make and other tools for compiling)

Search says no results:

https://packages.ubuntu.com/search?suite=groovy&section=all&arch=any&keywords=build-essentials&searchon=names

Link to post
Share on other sites

3 hours ago, Electronics Wizardy said:

What ubuntu version? Id just try installing a newer version like 21.04 as the drive should be included.

I downloaded the LTS version. 20.04.2.0

Even their website is mocking me: https://ubuntu.com/download/desktop

"Recommended: Internet access is helpful" - yeah, it surely would be

Link to post
Share on other sites

Just now, AlexGhe said:

I downloaded the LTS version. 20.04.2.0

Even their website is mocking me: https://ubuntu.com/download/desktop

"Recommended: Internet access is helpful" - yeah, it surely would be

Yea thats a fairly old version, a newer linux distro will have the driver included, I think the put in the kernel recently.

Link to post
Share on other sites

Support was added in Kernel 5.9, Ubuntu LTS I believe is on 5.8.

You might try Ubuntu 21.04

 

or can you tether from your phone over USB?

If so, tether and grab this kernel https://liquorix.net/

 

You may or may not need to also clone the linux-firmware tree as well.

git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

cd linux-firmware

sudo make install

 

Link to post
Share on other sites

19 minutes ago, wasab said:

I am 99.9% sure your ethernet will work out of the box. Wifi drivers maybe because the default ones in the kernel usually are garbage on linux but ethernet? Heck no. 

Not always

 

also

https://askubuntu.com/questions/1259947/cant-get-rtl8125b-working-on-20-04

 

OP you need to see if you can get a newer kernel installed I do believe ubuntu has the 5.10 kernel in backports which does include the driver

 

here's how to do this offline

Go here: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.11.16/amd64/

 

download the linux-headers, linux-image-unsigned, and linux-modules put them on a usb drive you can read with ubuntu

 

open a terminal in that directory (usually there a right click option)

You can install then via terminal using "sudo dpkg -i" then the filename (the terminal supports tab completion)

then you need to tell the boot loader there's a new kernel "sudo update-grub"

 

then reboot the computer and see if it works

Link to post
Share on other sites

1 hour ago, Nayr438 said:

Support was added in Kernel 5.9, Ubuntu LTS I believe is on 5.8.

You might try Ubuntu 21.04

 

or can you tether from your phone over USB?

If so, tether and grab this kernel https://liquorix.net/

 

You may or may not need to also clone the linux-firmware tree as well.

git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

cd linux-firmware

sudo make install

 

Yes, installing 21.04 I had internet connectivity right away.

Link to post
Share on other sites

5 minutes ago, AlexGhe said:

Yes, installing 21.04 I had internet connectivity right away.

Well that works too, bear in mind you're on a development release for Ubuntu, so while it's using "stable" software it's not an LTS so you might run into some issues relating to that like the amdgpu-pro driver, or some other software packages.

Link to post
Share on other sites

7 minutes ago, 10leej said:

Not always

 

also

https://askubuntu.com/questions/1259947/cant-get-rtl8125b-working-on-20-04

 

OP you need to see if you can get a newer kernel installed I do believe ubuntu has the 5.10 kernel in backports which does include the driver

 

here's how to do this offline

Go here: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.11.16/amd64/

 

download the linux-headers, linux-image-unsigned, and linux-modules put them on a usb drive you can read with ubuntu

 

open a terminal in that directory (usually there a right click option)

You can install then via terminal using "sudo dpkg -i" then the filename (the terminal supports tab completion)

then you need to tell the boot loader there's a new kernel "sudo update-grub"

 

then reboot the computer and see if it works

Thank you, but in the end I reinstalled with latest ubuntu and that fixed it

 

I don't know why but I feel the beginner experience wasn't supposed to be so..... let's just say manual, I was just unlucky.

I'm pretty sure if I continued manually installing every dependency I wouldn't be done till the end of next week... maybe.

Link to post
Share on other sites

Just now, AlexGhe said:

Thank you, but in the end I reinstalled with latest ubuntu and that fixed it

 

I don't know why but I feel the beginner experience wasn't supposed to be so..... let's just say manual, I was just unlucky.

I'm pretty sure if I continued manually installing every dependency I wouldn't be done till the end of next week... maybe.

That's what's referred to as "dependency hell"

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×