Questions tagged [lsb-release]
11 questions
19
votes
12 answers
How to get the Debian codename without lsb_release
I am trying to create a script that requires me to print the Debian codename so that I may echo it into the sources.list file.
I am trying to make this script work across any version of Debian, so I had hoped to set a bash variable of the release…
Woody
- 191
- 1
- 1
- 3
11
votes
2 answers
How to determine which Ubuntu flavor I'm on?
I am on Xubuntu (16.04, btw) however lsb_release -a gives me:
user@host:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Should it display Xubuntu, or is…
joH1
- 898
- 1
- 11
- 23
7
votes
3 answers
Remove "No LSB modules are available." message from 'lsb_release -a'
I try to write a script to get the version of my distro so that I can pass it to a variable.
The following command is what I wrote to achieve the result.
lsb_release -ar | grep -i release | cut -s -f2
The unwanted output:
No LSB modules are…
vincent pham
- 191
- 3
- 8
3
votes
2 answers
Why lsb_release -c command , returns n/a?
recently I switched from zorin os to deepin 20 for it's outstanding UI and eases of use for daily operations.
it's almost OK but if I need some newer packages which are not listed in official deepin repositories, I have to use some community…
smbanaei
- 141
- 6
2
votes
1 answer
Check Armbian version on the command line
I have an Orangepi+2e device with Armbian OS.
How can I check Armbian version?
I tried with these commands, but can not found Armbian type.
$ sudo lsb_release -a
Out:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu…
Benyamin Jafari
- 207
- 2
- 9
1
vote
3 answers
Can't compare lsb_release result to string in Bash
I'm doing something wrong on the string comparison below. It works if I set a variable and compare that, but I can't copy the value to a string. Does anyone know what's wrong?
$ if [ "$(lsb_release -i)" = "Distributor ID: RedHatEnterpriseClient" ];…
Aido
- 166
- 14
1
vote
1 answer
why lsb_release looks slower than a program supposed to print few bytes?
i'm just wondering why in all linux boxs , lsb_release take longer time to print few infos about distro,
anyone could enlighten me about this fact ? please.
Yunus
- 1,634
- 2
- 13
- 19
0
votes
0 answers
ImportError: No module named 'lsb_release'
While I was trying to fix the ImportError: No module named 'lsb_release', I accidentally performed the unlink command on /usr/share/pyshared/lsb_release.py
sudo unlink /usr/share/pyshared/lsb_release.py
Now I cannot find lsb_release.py and the links…
0
votes
0 answers
Manjaro lsb-release set to Arch (lsb-release: /etc/lsb-release exists in filesystem)
I tried upgrading my packages with pacman -Syu and got an error message.
error: failed to commit transaction (conflicting files)
lsb-release: /etc/lsb-release exists in filesystem (owned by manjaro-release)
Errors occurred, no packages were…
axtck
- 101
- 2
0
votes
1 answer
circular dependency between lsb-release and python3 (ubuntu 18.04)
I've managed to get into a situation where I have a circular dependency between lsb-release and python3. When I try to sudo apt install python3 --reinstall I get the following (just pasting the key lines)
(Reading database ... 470097 files and…
GTK
- 103
- 3
0
votes
1 answer
What is the differences between distributions, the OS and code names (stable, testing) in linux and what order is that listed in /etc/*release?
Overall, I'm trying to understand the differences between distributions, Operating systems and release code names (stable, experimental, testing) for Linux and how can those are listed in release files. I know some are based on toy story characters…
ubercoo
- 1