LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot connect to (Wired) internet after installing Nvidia graphics card and driver. (https://www.linuxquestions.org/questions/linux-networking-3/cannot-connect-to-wired-internet-after-installing-nvidia-graphics-card-and-driver-4175720166/)

Raxnic 12-24-2022 08:32 PM

Cannot connect to (Wired) internet after installing Nvidia graphics card and driver.
 
Fresh install of Xubuntu and had been conncecting (wired) to internet fine for weeks, then I installed a Nvidia card and driver (wich works good) and now I cannot get on internet :(

I ran :

suco lshw -C network and I get a message saying UNCLAIMED and it shows the driver and version info.

I searched for UNCLAIMED linux network setting and didnt get much.

I disconnected the CAT5 cable And plugged it into another system and internet works fine.

I checked settings in network configuration and everything seems to be like it should

I am not sure why installing a graphics card would alter internet settings?

What else should I post or check into?

Thanks.

camorri 12-25-2022 12:55 PM

Quote:

I am not sure why installing a graphics card would alter internet settings?
Absolutley nothing.

What is the status of your ethernet interface? Run the command ifconfig and or ip a and post the results. There should be an ip address present, and the interface should be up.

If your interface is named eth0, run the command ifconfig eth0 up will bring it up. You can look at the manpage for the ip command if you want to activate or deactivate the interface with that command.

Raxnic 12-25-2022 02:32 PM

Quote:

Originally Posted by camorri (Post 6400214)
Absolutley nothing.

What is the status of your ethernet interface? Run the command ifconfig and or ip a and post the results. There should be an ip address present, and the interface should be up.

If your interface is named eth0, run the command ifconfig eth0 up will bring it up. You can look at the manpage for the ip command if you want to activate or deactivate the interface with that command.

Code:

This is what I get with ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever

When I do lsmod I dont see anything related to network card.
Does that mean the driver is not loaded into kernel?
when I do lspci I get this:

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

I tried to bring up using ifconfig but I dont have ifconfig installed and "ip link set eth0 or eth1 up" says cannot find device.

From what I have researched it may be the driver for the network card (on motherboard) needs reinstalled.

There is also something called secure boot that "possibly" needs deactiveated in the bios ????

The network/internet was working fine for weeks, it was right after I installed the video card and driver that this happened.

How do I find out what driver I need to reinstall the network driver?

Thanks.

camorri 12-25-2022 08:33 PM

I have the same network card. Here is the output of inxi -n

Quote:

inxi -n
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: eth0 state: up speed: 1000 Mbps duplex: full
Here is where the driver lives on my system.

Quote:

locate r8169.ko
/lib/modules/5.15.80/kernel/drivers/net/ethernet/realtek/r8169.ko
It appears the driver is not loaded. Look in the output of the command lsmod, if its loaded, it will be listed there. If not, then as root try to modporbe r8169.ko.

Raxnic 12-25-2022 10:19 PM

Quote:

Originally Posted by camorri (Post 6400270)
I have the same network card. Here is the output of inxi -n
Here is where the driver lives on my system.
It appears the driver is not loaded. Look in the output of the command lsmod, if its loaded, it will be listed there. If not, then as root try to modporbe r8169.ko.

No its not loaded

I guess after the last update a whole bunch of modules got whiped out. I dont have a network directory or a realtec directory at all under kernel 5.15.0-56-generic but when I look under /lib/modules/5.15.43-generic/kernel/drivers/net/ethernet/realtek/r8169.ko it is there. along with alot of other drivers.

Can I simply create the directories and copy over the driver to the newer kernel then reboot?

camorri 12-26-2022 06:59 AM

It looks like an upgrade? was done, is that correct?

When a new kernel is installed, you need the modules that match the kernel you are booting. The modules should be available from what ever program you use to update the system. Once installed, the boot loader needs updating to point to the new kernel.

Can you tell us exactly what has gone on with your system?

273 12-26-2022 07:40 AM

One thing to try, which may help to install the missing packages etc., is to select more options in the GRUB screen and select a previous kernel - sorry not at home to find the exact wording but something like more Xubuntu options then select the 5.13 kernel (do not select any safe mode or anything like that) then you may have network connectivity with the old kernel so you can make sure the drivers are installed for the newer kernel.

Raxnic 12-26-2022 08:23 AM

Quote:

Originally Posted by camorri (Post 6400378)
It looks like an upgrade? was done, is that correct?

When a new kernel is installed, you need the modules that match the kernel you are booting. The modules should be available from what ever program you use to update the system. Once installed, the boot loader needs updating to point to the new kernel.

Can you tell us exactly what has gone on with your system?

Its a HP I3 processor, 8 gigs of ram and a new 2TB HD, I just installed Xubuntu a few weeks ago and it was working fine. The only things I did was upgrade normally through the ubuntu sofware center and I installed Nvidia driver and graphics card. I didnt try to install a new kernel or at least not knowlingly.

Raxnic 12-26-2022 08:25 AM

Quote:

Originally Posted by 273 (Post 6400381)
One thing to try, which may help to install the missing packages etc., is to select more options in the GRUB screen and select a previous kernel - sorry not at home to find the exact wording but something like more Xubuntu options then select the 5.13 kernel (do not select any safe mode or anything like that) then you may have network connectivity with the old kernel so you can make sure the drivers are installed for the newer kernel.

This is what I was going to try but not sure if that is a permanent solution.

273 12-26-2022 08:37 AM

Quote:

Originally Posted by Raxnic (Post 6400390)
This is what I was going to try but not sure if that is a permanent solution.

It's not a permanent solution, no, but will let you install the missing drivers for your network card for the newer kernel.
My theory is that the drivers were installed manually, somehow, for the 13 kernel and it didn't, update with the kernel so you just need to find the generic driver package name and install that so it install each time the kernel is updated.

camorri 12-26-2022 08:45 AM

Quote:

5.15.0-56-generic but when I look under /lib/modules/5.15.43-generic/kernel/drivers/net/ethernet/realtek/r8169.ko
If this is accurate, you do not have a match between booting kernel and modules. They won't work. I have no idea how you made this mis-match, I guess you don't either.

I would stronly suggest you look at what kernels you have in /boot and what is in /boot/efi/EFI/yourbootdir. It looks like 5.15.43 kernel never got copied to the bootdir, or your boot loader did not get updated.

Raxnic 12-26-2022 10:46 AM

Quote:

Originally Posted by 273 (Post 6400392)
It's not a permanent solution, no, but will let you install the missing drivers for your network card for the newer kernel.
My theory is that the drivers were installed manually, somehow, for the 13 kernel and it didn't, update with the kernel so you just need to find the generic driver package name and install that so it install each time the kernel is updated.

I am going to give this a try and/or purchase a WIFI adapter and install that. I did that with this system and it worked really well.

Raxnic 12-26-2022 10:53 AM

Quote:

Originally Posted by camorri (Post 6400393)
If this is accurate, you do not have a match between booting kernel and modules. They won't work. I have no idea how you made this mis-match, I guess you don't either.

I would stronly suggest you look at what kernels you have in /boot and what is in /boot/efi/EFI/yourbootdir. It looks like 5.15.43 kernel never got copied to the bootdir, or your boot loader did not get updated.

I am not sure what to look for in /boot but I see a folder with initrd-5.15.0-43-generic and another initrd.img-5.15.0-56-generic

and files that say system map and config files with the same kernel names as above.

I cannot access efi directories at all even with sudo, and there is only one user on the system.

Code:

[update] I was able to change grub settings so i can boot into the older kernel and now I have internet back.
Is there a way to permanantly keep this older kernel and blacklist the newer one? or should I use the Ubuntu update center to update from where I am at?


business_kid 12-26-2022 12:27 PM

Try this:
  1. Run 'uname -r' and look for your kernel version.
  2. run 'du -sh /lib/modules/*' and check for modules of the same version. On a distro, there's usually 50 megs or so per kernel version.

For kernels/initrds, You only need to pay attention to the EFI stuff. If you start by removing unwanted crud, that helps.

camorri 12-26-2022 12:54 PM

I'm glad you can now boot, and your ethernet is now connected. That is progress.

Generally speaking, you should update to newer kernels, they often include security fixes and support for more features.

I am not familiar how you update a Xubuntu system. I think you have a tool to do that. You could look at the support doc from Ubuntu to see how they recommend updating kernels. Basically, its a mater up installing the correct packages, and updateing your boot loader. ( grub ).


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