After ubuntu18.04 is installed, there is no network and the network icon is not displayed.

After the newly installed ubuntu18.04.06 is installed, the network cable is plugged in, but there is no wired network and the network icon is not displayed on the desktop.

The reason is that the network card driver that comes with the Ubuntu system during installation is incompatible. The solution is explained below:

First, try the mobile phone cable, connect the mobile phone to the USB port of the computer, and use USB tethering on the mobile phone to allow the computer to connect to the Internet first. Then enter the following command in the terminal to view the network card device:

lspci

 You can see that the required network card driver is Realtek RTL8125. Go to the realtek official website to download the network card driver:

Realtek PCIe FE/GBE/2.5G/Gaming Ethernet Family Controller Software - Realtek Semiconductor

 Download it and unzip it. Open the terminal in the decompressed folder and enter the following command to install:

sudo ./autorun.sh

After the installation is complete, restart and the network can be used normally. There are often many mistakes at this step. It prompts that there is no make component or there is no gcc component. This is because these two packages are not installed on the computer. Solution:

Now change the source in Software & Updates and change the source to Tsinghua University.

Then run the following two commands to update and install the missing packages:

#检查可用更新包
sudo apt-get update
#更新已安装的软件包
sudo apt-get upgrade

 After the update is completed, reinstall the network card driver, restart after installation, and the network will be available.

If you have any questions, please leave a message and the blogger will answer your questions at any time.

If it's useful, give it a free like!

Guess you like

Origin blog.csdn.net/m0_62648611/article/details/131707800