Score:0

lsb_release -a returns nothing, want to upgrade, but can't

cn flag
    No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu GNU/Linux testing/unstable
Release:    testing/unstable
Codename:   n/a

I have had this version for a few years now and would like to upgrade it to 22.04 lts.

    sudo do-release-upgrade -d
    Checking for a new Ubuntu release
    Upgrades to the development release are only 
    available from the latest supported release.
deb [signed-by=/usr/share/keyrings/adoptopenjdk-archive-keyring.gpg] https://adoptopenjdk.jfrog.io/adoptopenjdk/deb hirsute main

What can I do?

Artur Meinild avatar
vn flag
Big question: What did you do to bring your system to this state - because it's not the default. Maybe you should just do a fresh reinstall.
cn flag
Everything is working fine, I don't want to spend lots of time on this.
cn flag
"Ubuntu GNU/Linux testing/unstable" means not an official supported Ubuntu. Is it old? Because the last time I saw this was ... at least 10 years ago. "Upgrade to 22.04"... is only possible if you current system is 20.04. All other release prior to 22.04 are dead. And 22.04 would have shown a Codename. I also think you probably need to reinstall but do wait for others to chime in ;)
Doug Smythies avatar
gn flag
From an old question of yours, you were running 21.04 in March, 2022. Perhaps some version numbers (kernel and / or packages) could help us date your current situation. Which kernel are you running? `uname -a` . I agree with the other comments that you should reinstall.
Hannu avatar
ca flag
`$ cat /etc/os-release ` ?
cn flag
5.11.0-49-generic
cn flag
deb [signed-by=/usr/share/keyrings/adoptopenjdk-archive-keyring.gpg] https://adoptopenjdk.jfrog.io/adoptopenjdk/deb hirsute main
cn flag
If I reinstall, can I have my files not be erased?
Artur Meinild avatar
vn flag
@mrSuperEvening please include output of `cat /etc/os-release` in your question. Thanks.
Organic Marble avatar
us flag
Your comment indicates you are running Ubuntu hirsute (21.04) which went EOL over 2 years ago.
Artur Meinild avatar
vn flag
Ok it seems you somehow have overwritten the file `/cat/os-release` with something else.
us flag
Everything is working fine, I don't want to spend lots of time on this - A fresh install is very fast. Once you install all your programs, you should be good to go. Alternatively, you can use the USB installer to upgrade your existing version of Ubuntu
Score:2
vn flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.