From my machine:
$ apt policy lsb-release
lsb-release:
Installed: 11.1.0ubuntu2
Candidate: 11.1.0ubuntu2
Version table:
*** 11.1.0ubuntu2 500
500 http://in.archive.ubuntu.com/ubuntu focal/main amd64 Packages
500 http://in.archive.ubuntu.com/ubuntu focal/main i386 Packages
100 /var/lib/dpkg/status
The package lsb-release
comes from the repository main
. The output of sudo apt update
suggests that you've missing sources in your sources.list
file.
To investigate further, I started a new docker container and disabled all instances of the main
repository and I was able to reproduce this issue. You can fix this issue by following the below steps:
You must enable the main
repository in order to install the package lsb-release
:
sudo add-apt-repository main
I highly recommend you to enable the Universe repository too:
sudo add-apt-repository universe
Run apt update
after enabling the repositories:
sudo apt update
If I'm seeing the output correctly, you have one more issue with the package manager, as stated in this answer remove the offending files with:
sudo rm -rf /etc/apt/apt.conf.d/20snapd.conf
Install lsb-release
again:
sudo apt install lsb-release
The package lsb-release
should be installed now.