LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-24-2022, 08:32 PM   #1
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Rep: Reputation: Disabled
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.

Last edited by Raxnic; 12-24-2022 at 08:38 PM.
 
Old 12-25-2022, 12:55 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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.
 
Old 12-25-2022, 02:32 PM   #3
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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.

Last edited by Raxnic; 12-25-2022 at 02:57 PM.
 
Old 12-25-2022, 08:33 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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.
 
Old 12-25-2022, 10:19 PM   #5
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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?
 
Old 12-26-2022, 06:59 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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?
 
Old 12-26-2022, 07:40 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 12-26-2022, 08:23 AM   #8
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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.
 
Old 12-26-2022, 08:25 AM   #9
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
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.
 
Old 12-26-2022, 08:37 AM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by Raxnic View Post
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.
 
Old 12-26-2022, 08:45 AM   #11
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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.

Last edited by camorri; 12-26-2022 at 08:59 AM.
 
Old 12-26-2022, 10:46 AM   #12
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
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.
 
Old 12-26-2022, 10:53 AM   #13
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by camorri View Post
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?

Last edited by Raxnic; 12-26-2022 at 11:40 AM.
 
Old 12-26-2022, 12:27 PM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,369

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
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.

Last edited by business_kid; 12-26-2022 at 01:36 PM.
 
Old 12-26-2022, 12:54 PM   #15
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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 ).
 
  


Reply



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
Use Nvidia graphics card on linux mint mate 17.3 when in a hybrid graphics card environment betty _frances Linux Mint 1 06-08-2016 06:31 AM
Cannot connect to internet (Wireless nor Wired) after Hard Reset boaty Linux - Newbie 30 02-04-2010 08:23 PM
cannot connect to wired internet in slackware 13 K.D.Mishra Linux - Newbie 1 11-02-2009 06:08 AM
After installing nvidia graphics card driver mandrva 2009 failed to start GUI. kumar3999 Mandriva 6 11-22-2008 05:35 PM
Cannot connect to internet via wired adapter psycovic23 Linux - Networking 1 06-05-2004 09:17 AM

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

All times are GMT -5. The time now is 01:42 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