How to Repair Ubuntu Network
While I was sudo apt update
ing my Ubuntu Server, all of a sudden the internet decided to disconnect :). I rebooted; after that, the internet wouldn't connect at all. Even the LEDs next to the Ethernet port woudn't turn on as usual.
At first I thought the problem was from the hardware, the network card. but it turned out, it was because of the updating software failure. I thought of reinstalling the packages (drivers) that were related to network (network-manager
, ifupdown
). But how could I do it? I didn't have internet access to download and sudo apt install
them.
It was a disaster.
I decided to try to manually install them. after many searches and time spending, here's what I did:
I wanted to download the packages from the Ubuntu mirror and install them via a USB stick.
When sudo apt update
ing, Ubuntu writes the URLs it downloads the software from, based on the system requirments, the links showed me two keywords: jammy
and amd64
.
Based on those, Now:
- Go to packages.ubuntu.com
- Search for the package ypu need (
network-manager
) - Click on
jammy
- Go to the bottom of the page
- Click on
amd64
- Download the package from ypur desired mirror
selected jammy
, at the bottom of the page, clicked on All packages, found the package I needed (network-manager
)
These were the packages required for me:
Very useful links: askubuntu.com/questions/285539/detect-and-m.. askubuntu.com/questions/859787/how-to-unmou..