LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2020, 10:08 AM   #1
Albrich
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 4
Ubuntu 20.4.1 no wired ethernet


I have installed Ubuntu 20.4 on a new build with the MSI Z490 motherboard but the wired ethernet is not working. The ubuntu distro minimal so installing the driver from Realtec fails because the tools are not available. I would be grateful for any useful advice. Here are some diagnostics which might help.

>>>>>>>>>>>>>>>:~$ lspci -nnk | grep -ia3 net
Subsystem: Micro-Star International Co., Ltd. [MSI] GK208 HDMI/DP Audio Controller [1462:8c93]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 04)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8125 2.5GbE Controller [1462:7c75]
Kernel modules: r8169

>>>>>>>>>>>>>>>:~$ cat /etc/network/interfaces
/etc/network/interfaces: No such file or directory

>>>>>>>>>>>>>>>:~$ ls /lib/modules/5.4.0-42-generic/kernel/drivers/net/ethernet/realtek/
8139cp.ko 8139too.ko atp.ko r8169.ko

>>>>>>>>>>>>>>>:~$ ls /lib/modules/5.4.0-42-generic/kernel/drivers/net/ethernet/realtek/r8169.ko
/lib/modules/5.4.0-42-generic/kernel/drivers/net/ethernet/realtek/r8169.ko
>>>>>>>>>>>>>>>:~$

>>>>>>>>>>>>>>>:~$ cat /etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

>>>>>>>>>>>>>>>:~$ lsmod | grep 8169
r8169 90112 0

>>>>>>>>>>>>>>:~$ sudo lshw -C network
*-network UNCLAIMED
description: Ethernet controller
product: RTL8125 2.5GbE Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd cap_list
configuration: latency=0
resources: ioport:3000(size=256) memory:ab200000-ab20ffff memory:ab210000-ab213fff

>>>>>> System settings shows only NVIDIA drivers.
 
Old 12-20-2020, 10:33 AM   #2
verndog
Member
 
Registered: Oct 2007
Posts: 287

Rep: Reputation: 68
What does
Code:
ip link show
show?
 
1 members found this post helpful.
Old 12-21-2020, 07:35 AM   #3
Albrich
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 4
Thanks for the quick response.
.
zzzzzzzzzzzzzzz:~$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 
Old 12-21-2020, 08:08 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,815

Rep: Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336Reputation: 6336
Try downloading (from another computer) the driver from the Realtek website and installing per the instructions.

https://www.realtek.com/en/component...press-software

You might need to blacklist the r8169 module.

Last edited by michaelk; 12-21-2020 at 08:11 AM.
 
Old 12-21-2020, 11:50 AM   #5
Albrich
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 4
Thank you for responding michaelk. The problem I have with installing the Realtec drivers is that I can't install gcc because it's dependencies are not on the Kubuntu 20.4 installation disk. Do you know of a work round for this?
 
Old 12-21-2020, 12:30 PM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,706

Rep: Reputation: Disabled
From what I can see, gcc is included onto Kubuntu 20.04.1 installation disc. Try to install the package build-essential. It should pull gcc, make, and other tools needed to build something from source.
 
1 members found this post helpful.
Old 12-23-2020, 06:18 AM   #7
Albrich
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 4
Build Essential could not be marked for installation - "Depends: build-essential, but is not installable"
However Ubuntu 19.10 installs, and the Realtec package works on it, so I will upgrade from this.
Thanks to all contributors. Since there isn't a "bodged around it" option will close this thread as "solved".
 
Old 06-02-2021, 12:49 AM   #8
anderson110
LQ Newbie
 
Registered: Jun 2021
Posts: 1

Rep: Reputation: Disabled
I had a very similar problem. A fresh install of Ubuntu Desktop 20.04 LTS had no network connection despite being plugged into a known good ethernet network (the windows side worked fine, and so did an installation of Ubuntu 21.x). I googled my way to needing to install the realtek drivers, however, this was impossible because the realtek installation required compilers and "make", and my system did not have these, and for obvious reasons I could not download them.

Here's what I did: I created a virtualbox installation from windows of the same version of Ubuntu, then ran:

mkdir build-deps
cd build-deps
apt download $(apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances build-essential | grep "^\w" | sort -u)
cd ..
tar cvf build-deps.tar build-deps
gzip build-deps.tar

I then copied this tarfile onto a usb stick, transferred it to the marooned machine, and did

tar xzvf build-deps.tar.gz
cd build-deps
dpkg -i *.deb

and all of the necessary prerequisites were installed. Then it became possible to install the realtek drivers using their autorun.sh.

Another path in this situation is to buy a USB to ethernet adapter, and use that to get connectivity to get everything fixed up, but I did not want to wait for that.
 
  


Reply

Tags
ethernet, msi, realtec


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Used wired to install now on wireless but system waits for wired dhcpoffer. lonniec Linux - Laptop and Netbook 3 03-08-2011 07:52 PM
How to configure PC for wired/static and wired/DHCP networks? catkin Linux - Networking 2 10-27-2010 10:51 AM
bridging a wireless and wired network causes wired to stop working royce2020 Linux - Networking 0 04-21-2009 04:48 PM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
Wired to Wireless back to Wired The_Nerd Linux - Hardware 5 09-15-2004 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration