14

This seems to be a longstanding bug that has appeared in many releases. A fresh install of Ubuntu Desktop 20.10 does not show the Wired Network Settings. I only have Wireless internet access. Turning this off results in no internet. The ethernet cable is working, since Windows on the same PC running on it. The ethernet LED lights are also indicating a connection and on Manjaro - which I had installed previously - had an ethernet connection. Therefore I suspect the problem to reside in Ubuntu software.

No wired network settings:

No wired network settings

Running the following line results in the following output:

sudo lshw -c net

Output:

Output

Does anyone know how to let the wired network setting appear, and enable ethernet?

karel
  • 122,695
  • 134
  • 305
  • 337
Nuss9
  • 261
  • Possibly helpful: https://askubuntu.com/questions/1259947/cant-get-rtl8125b-working-on-20-04 – chili555 Jan 29 '21 at 22:28
  • Can you update your question to include the output of lspci -knn | grep Eth -A3? This may offer a little more insight into the network device –  Jan 30 '21 at 00:14
  • @Matigo

    lspci -knn | grep Eth -A3 gives:

    26: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:7c84] Kernel modules: r8169 28:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)

    – Nuss9 Jan 30 '21 at 08:08
  • It seems to be the same ethernet controller and module as mentioned by @chili555. I will have a good look at this reference. – Nuss9 Jan 30 '21 at 08:14
  • Indeed. If you need a step-by-step, post back and I'll assist. – chili555 Jan 30 '21 at 14:43
  • I made some progress.

    I downloaded the Realtek driver from here. Installed the build essentials with 'sudo apt-get install build-essential', and then ran the autorun.sh as sudo.

    This succeeded and now I have the 'Wired' section in the Network Settings. It also appears in the top right, under the quick settings. However, its constantly 'Connecting'. I don't have internet access through the wired connection yet. Will investigate.

    – Nuss9 Jan 31 '21 at 12:05
  • The ouput from autorun.sh:

    Check old driver and unload it. Build the module and install At main.c:160:

    • SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
    • SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76 sign-file: certs/signing_key.pem: No such file or directory Warning: modules_install: missing 'System.map' file. Skipping depmod. DEPMOD 5.8.0-41-generic load module r8125 Updating initramfs. Please wait. update-initramfs: Generating /boot/initrd.img-5.8.0-41-generic Completed.
    – Nuss9 Jan 31 '21 at 12:06
  • Initially the connection was not active. After a reboot it did, and now I have a working ethernet connection.

    Thanks for your help guys!

    – Nuss9 Jan 31 '21 at 12:24
  • 1
    Does this answer your question? Can't get RTL8125B working on 20.04 – Pilot6 Feb 09 '21 at 14:29

4 Answers4

10

Had the same problem and for me the issue was in my netplan yaml file. I had to change the "renderer" to NetworkManager in the netplan file. You may need to add or change the renderer line as follows, and then "sudo netplan apply".

cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  version: 2
  renderer: NetworkManager
  ethernets:

Also, worth mentioning that /etc/netplan/00-installer-config.yaml file should have access rights/mode where others cannot read the file. So, you may want to:

chmod 600 /etc/netplan/00-installer-config.yaml
MaximAL
  • 405
  • 3
  • 12
  • This worked for me when I migrated from ifupdown to Netplan. Forgot the renderers where different for each platform. – G_Style Oct 19 '22 at 15:20
  • this worked, though the config excerpt needs to be formatted to insert line feeds;

    network:<lf> version: 2<lf> renderer: NetworkManager<lf> ethernets:<lf>

    – Salman Siddiqui Mar 13 '23 at 19:29
  • This worked for me. I installed Ubuntu 20.04 Server initially and then installed the Desktop environment. Ubuntu Server uses netplan as the renderer so it was not updated to NetworkManager when I installed the Desktop environment. – yaobin May 03 '23 at 21:06
  • This solved my problem on 22.04 with the wired ethernet not displaying in Settings for a Lenovo M93p mini/tiny pc. There were no driver problems etc. - the issue was setting the renderer. – technonaut Jul 26 '23 at 14:10
2

With the references posted by @chili555 these steps enabled wired connections in my case:

  1. Install build-essential: sudo apt-get install build-essential
  2. Download the driver.
  3. Run the autorun script as root.
  4. Reboot.
Kulfy
  • 18,163
Nuss9
  • 261
  • First of all, my network is not working, so I can't run the command in step 1. Second, the link in step 2 is broken. – Self Dot Mar 02 '25 at 01:58
1

This means there is no driver attached to your Ethernet Network Card. This can be solved by installing linux-backports.

Your problem has a solution here.

Success!

Justech
  • 184
  • 3
    Hi, @Justech, which part of the link is the actual solution? Can you please edit your answer to include it? I tried searching for linux-backports by running apt-cache search "linux-backports" but got no results – Bruno Alexandre Rosa Feb 01 '22 at 11:14
1

Since none of these solutions worked for me I wanted to share what did.

I had modified the file /etc/network/interfaces

I had added code to make my connection DHCP and it appears to have caused this issue we all share here.

I removed everything from that file except for what was originally in there and rebooted my PC. Then magically my settings were all back to normal.

Hope it helps someone.

Cheers.