I have googled and looked on here for answers to this problem and it seems quite common, but so far none of the solutions have worked for me.
This seemed to start after an upgrade and seems from threads to be driver related. The built-in network card is Realtek and I have tried another 1G card which I bought some time ago, and that too seems to be Realtek. One comment was that these cards are a common issue. Maybe. The first signs were that I was not able to use my USB mouse, nor a spare I have. Fortunately, I keep my wired mouse of old and that works fine, as does the wired keyboard. Then I noticed that when I plugged my Android phone in that it was sometimes recognized and others not, but either way I could not view it in the folders. It just wouldn't open. Then just before I went away for a month, the network card stopped working.
I did get the network card working after following one of the suggestions, but I don't know which. I followed a number of links and tried all sorts. I had enough and shut down, but accidentally rebooted and it worked. After shutting down again and returning 2 days later, it had stopped working again.
$ uname -r
6.2.0-1005-oracle
$ sudo lshw -C network
*-network UNCLAIMED
description: Ethernet Controller
Product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor
physical ID: pci@0000:07:00:0
version: 06
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap-listnce.
resources: ioport:b000 (size=256) memory:d2104000-d2104fff memory: d2100000-d2103fff
I tried this, though option 2 is standard. Still does not work. The stage to "Activate" did not work. The cursor would not move to the button. So tried various commands I found instead, but none made a difference. From here. I then tried here.
sudo service network-manager restart
failed, said it was not found.
Not tried this as I have no network:
sudo apt reinstall linux-modules-extra-5.15.0-75-generic
Such things are useless if one doesn't have network!
https://packages.ubuntu.com/jammy/kernel/linux-modules-extra-6.2.0-1005-oracle
Tried that, as a mod of a suggestion, but when I select the link the webpage says error as it's not the same as my machine (my laptop I'm using to download the file), which wouldn't be the same.
sudo apt update
and then:sudo apt install linux-modules-extra-6.2.0-1005-oracle
Reboot. – chili555 Sep 03 '23 at 13:14sudo dpkg -s linux-modules-extra-$(uname -r) | grep Status
– chili555 Sep 03 '23 at 13:31sudo dpkg -i ~/Desktop/linux*.deb
How is the USB formatted? FAT32 is preferred. – chili555 Sep 03 '23 at 20:03ls -al ~/Desktop | grep deb
and also:sudo dpkg -i ~/Desktop/linux*.deb
"Failed" doesn't give us much to go on to help you. – chili555 Sep 27 '23 at 13:41