This answer will help you restore your botched /etc/os-release
file (which is actually a symlink to /usr/lib/os-release
).
From your kernel version, and your previous questions, it's evident that your system is actually running Ubuntu 21.04 (Hirsute Hippo). This release is now end-of-life, and you should upgrade to a supported release ASAP.
For unknown reasons, you have overwritten your /etc/os-release
file with invalid contents - let's fix that.
Open the file in an editor (like nano
) with root
privileges:
sudo nano /etc/os-release
Replace the entire contents of the file with this:
NAME="Ubuntu"
VERSION="21.04 (Hirsute Hippo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 21.04"
VERSION_ID="21.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute
Save and exit.
Now when you run lsb_release -a
it should show:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
To upgrade your current installation now, please see this Q&A.