LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-25-2022, 08:04 PM   #1
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Rep: Reputation: Disabled
How to install a network driver ? and where to get the driver?


Xubuntu, 22.04 kernel 5.15-0-56 generic
Intel i3, onboard ethernet, 8 gigs memory, 2TB HD.

I need to install A network/ethernet driver (WIRED). It had been loading and working fine, then for some reason the module is not loading, (but thats in another post)

How do I go about getting the driver and installing it? without internet on that computer?

I can download the driver to this system them move it over using a usb drive, but I cannot find the driver online anywhere. I thought I had found it, but on one site its not available and another it will not download
Is there a way to get the driver from the distro installation?

Thanks.
 
Old 12-25-2022, 09:38 PM   #2
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 207

Rep: Reputation: 44
If you are using Xubuntu, 22.04 chances are you MUST get it from them.

1) the kernel must either have the driver built-in or built as "loadable"

2) some drivers require hardware blobs be loaded BEFORE loading the module

3) some modules won't work on some hardwares without Options (modules.conf)

4) much hardware has no driver. insure first your adapter is actually in a list supported by the driver.

I don't know what WIRED is. Is it:

? "Wired Intel Ethernet Adapter ?

> cannot find the driver

all the loadable kernel firware is in /lib/firmware ?

all the loadable kernel modules are in /lib/modules

You can't just rob modules from another kernel if the module you need isn't in Kubunto or whatever you've loaded. Perhaps they have a package with "extra modules" that aren't in /lib/modules unless called for?

___________________________
say what hardware specifically you have and if it's integrated or a pci card
 
Old 12-25-2022, 09:42 PM   #3
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 207

Rep: Reputation: 44
* If you had the right module(s) you could transfer it by usb, run modprobe(1), and surf. Yes. that's the usual way. Most distro have "package managers" which have "kernel packages" that can be installed.

* you could check /boo/config and see if your kernel had it NO,YES,MODULES

* you could compile the kernel
 
Old 12-25-2022, 09:57 PM   #4
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by xlfs-0.2 View Post
If you are using Xubuntu, 22.04 chances are you MUST get it from them.

1) the kernel must either have the driver built-in or built as "loadable"

2) some drivers require hardware blobs be loaded BEFORE loading the module

3) some modules won't work on some hardwares without Options (modules.conf)

4) much hardware has no driver. insure first your adapter is actually in a list supported by the driver.

I don't know what WIRED is. Is it:

? "Wired Intel Ethernet Adapter ?

> cannot find the driver

all the loadable kernel firware is in /lib/firmware ?

all the loadable kernel modules are in /lib/modules

You can't just rob modules from another kernel if the module you need isn't in Kubunto or whatever you've loaded. Perhaps they have a package with "extra modules" that aren't in /lib/modules unless called for?


___________________________
say what hardware specifically you have and if it's integrated or a pci card
Wired as in, not wireless internet connection.

The ethernet adapter is on the motherboard,
Code:
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
Thanks.
 
Old 12-26-2022, 07:13 PM   #5
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
I got it sorted out. I was able to install an updated kernel and that did the trick. Thanks.
 
Old 12-26-2022, 08:29 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by Raxnic View Post
I need to install A network/ethernet driver (WIRED). It had been loading and working fine, then for some reason the module is not loading, (but thats in another post)
What makes you think you need to install a driver? Odds are very high the driver you need is installed. What you possibly may need is firmware. A module that depends on firmware won't load without it.

Quote:
How do I go about getting the driver and installing it? without internet on that computer?
Use a computer with working internet to fetch the package(s) containing what you do need, and transfer via USB, or possibly floppy disk. If it's only with the current kernel that network doesn't work, boot with a kernel which does provide working network.

Quote:
I can download the driver to this system them move it over using a usb drive, but I cannot find the driver online anywhere.
Kernel modules (drivers) ship with every kernel, though they may be in a separate package, which is how it works in *buntu:
Code:
# pinxi -S
System:
  Host: big41 Kernel: 5.15.0-56-generic arch: x86_64 bits: 64
    Console: pty pts/0 Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
# dpkg -l | grep -E 'linux|mwar|ealtek'
ii  amd64-microcode                       3.20191218.1ubuntu2                     amd64        Processor microcode firmware for AMD CPUs
ii  binutils-x86-64-linux-gnu             2.38-4ubuntu2.1                         amd64        GNU binary utilities, for x86-64-linux-gnu target
ii  console-setup-linux                   1.205ubuntu3                            all          Linux specific part of console-setup
ii  intel-microcode                       3.20220809.0ubuntu0.22.04.1             amd64        Processor microcode firmware for Intel CPUs
ii  libselinux1:amd64                     3.3-1build2                             amd64        SELinux runtime shared libraries
ii  linux-base                            4.5ubuntu9                              all          Linux image base package
ii  linux-firmware                        20220329.git681281e4-0ubuntu3.7         all          Firmware for Linux kernel drivers
ii  linux-image-5.15.0-47-generic         5.15.0-47.51                            amd64        Signed kernel image generic
ii  linux-image-5.15.0-56-generic         5.15.0-56.62                            amd64        Signed kernel image generic
ii  linux-image-generic                   5.15.0.56.54                            amd64        Generic Linux kernel image
ii  linux-modules-5.15.0-47-generic       5.15.0-47.51                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii  linux-modules-5.15.0-56-generic       5.15.0-56.62                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii  linux-modules-extra-5.15.0-47-generic 5.15.0-47.51                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii  linux-modules-extra-5.15.0-56-generic 5.15.0-56.62                            amd64        Linux kernel extra modules for version 5.15.0 on 64 bit x86 SMP
ii  util-linux                            2.37.2-4ubuntu3                         amd64        miscellaneous system utilities
# ls -l /lib/modules/*/kernel/drivers/net/ethernet/realtek
/lib/modules/5.15.0-48-generic/kernel/drivers/net/ethernet/realtek:
total 394
-rw-r--r-- 1 root root  70737 Aug 26 05:12 8139cp.ko
-rw-r--r-- 1 root root  89849 Aug 26 05:12 8139too.ko
-rw-r--r-- 1 root root  26289 Aug 26 05:12 atp.ko
-rw-r--r-- 1 root root 210049 Aug 26 05:12 r8169.ko

/lib/modules/5.15.0-56-generic/kernel/drivers/net/ethernet/realtek:
total 395
-rw-r--r-- 1 root root  70689 Nov 22 10:08 8139cp.ko
-rw-r--r-- 1 root root  89865 Nov 22 10:08 8139too.ko
-rw-r--r-- 1 root root  26297 Nov 22 10:08 atp.ko
-rw-r--r-- 1 root root 210961 Nov 22 10:08 r8169.ko
# dpkg -S /lib/modules/5.15.0-56-generic/kernel/drivers/net/ethernet/realtek/r8169.ko
linux-modules-extra-5.15.0-56-generic: /lib/modules/5.15.0-56-generic/kernel/drivers/net/ethernet/realtek/r8169.ko
# pinxi -Naz
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Biostar Microtech Intl Corp driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: d800 bus-ID: 01:00.0 chip-ID: 10ec:8168
    class-ID: 0200
# lsmod | grep -E 'real|net' | grep -v snd
realtek                32768  1
 
Old 12-26-2022, 09:00 PM   #7
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Yes, my kernel went haywire somehow and I had to revert to a previous one to get things fixed. The realtek driver for the ethernet card (on board) was gone/missing. I ended up updating the kernel to the most recent and that fixed the issue.
Thanks.
 
Old 12-26-2022, 09:07 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
In your OP you indicated 5.15-0-56 presented the problem, yet 5.15-0-56 seems to be the latest available. What kernel did you install that solved the problem?
 
Old 12-26-2022, 10:41 PM   #9
Raxnic
Member
 
Registered: Aug 2019
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
In your OP you indicated 5.15-0-56 presented the problem, yet 5.15-0-56 seems to be the latest available. What kernel did you install that solved the problem?
I installed version 6.0.9-06 using a program called Ubuntu Mainline Kernel installer. It seemed way too easy, but everything looks to be working, uname -r shows 6.0.9-060009-generic. It shows that in the grub menu as well.
I dont know exactly what caused the problem. The only thing I did was install Nvidia driver.
The system I am posting from is kernel 5.15-0-56 and it is running good, some kinda glitch with the other sytem.

Last edited by Raxnic; 12-26-2022 at 10:45 PM.
 
  


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
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
[Network Driver] Would be interested to know about Filter driver or Hookup driver Siddalingesh Nallur Linux - Kernel 0 05-14-2015 01:44 PM
used apt-get install to get dtc package, how do I get a previous version adetheheat Linux - Software 5 10-07-2010 11:13 AM
Cannot get nv driver to work and the vesa driver is limited arobinson74 Linux - Hardware 2 11-11-2007 08:02 AM
Get the Butterfly!!! Get it! Get it! Get it! rmartine General 6 01-11-2004 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:53 PM.

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