My "lsb_release -a" is too verbose [Solved]

Archived topics about LMDE 1 and LMDE 2
Locked
zerozero

My "lsb_release -a" is too verbose [Solved]

Post by zerozero »

No idea when (or why either :lol: ) this happened but

Code: Select all

lsb_release -a
gives me this output

Code: Select all

zerozero@deb-kde ~/Documents $ lsb_release -a
LSB Version:	core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch
Distributor ID:	LinuxMint
Description:	Linux Mint Debian Edition
Release:	1
Codename:	debian
not that i see anything broken or malfunctioning but would like very much to understand why :?:

Code: Select all

zerozero@deb-kde ~/Documents $ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=1
DISTRIB_CODENAME=debian
DISTRIB_DESCRIPTION="Linux Mint Debian Edition"
interesting os-release gives a different output

Code: Select all

zerozero@deb-kde ~/Documents $ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 7.0 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7.0"
VERSION="7.0 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"

Code: Select all

zerozero@deb-kde ~/Documents $ cat /etc/issue
Linux Mint Debian Edition \n \l

Code: Select all

zerozero@deb-kde ~/Documents $ dpkg -l | grep lsb
ii  lsb-base                                      4.1+Debian8                        all          Linux Standard Base 4.1 init script functionality
rc  lsb-core                                      4.1+Debian8                        amd64        Linux Standard Base 4.1 core support package
ii  lsb-release                                   4.1+Debian8                        all          Linux Standard Base version reporting utility
any pointers much appreciated :)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: My "lsb_release -a" is too verbose

Post by xenopeek »

/etc/os-release comes from the package 'base-files', and isn't overridden by any Linux Mint packages. So that os-release file is also showing Ubuntu 12.10 details on my Linux Mint 14 install (as Ubuntu made changes to the package in their repository). I think you can ignore the os-release file :D

On my system /usr/bin/lsb_release is already a Pyhton 3 script, which makes the line in your output:

Code: Select all

LSB Version:   core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch
come from the function check_modules_installed in /usr/lib/python3/dist-packages/lsb_release.py (or from /usr/lib/python2.7/dist-packages/lsb_release.py if your /usr/bin/lsb_release is still Python 2).

It seems to compile the LSB Version based on the output of this dpkg command:

Code: Select all

dpkg-query -f '${Version} ${Provides}\n' -W lsb-core lsb-cxx lsb-graphics lsb-desktop lsb-qt4 lsb-languages lsb-multimedia lsb-printing
which it parses and from it captures the version number of each found package, and returns a list of those version numbers. /usr/bin/lsb_release joins that list with colons, giving you the output you have.

I can not answer how this is useful to you :wink:
Image
zerozero

Re: My "lsb_release -a" is too verbose [Solved]

Post by zerozero »

xenopeek wrote:It seems to compile the LSB Version based on the output of this dpkg command:

Code: Select all

 dpkg-query -f '${Version} ${Provides}\n' -W lsb-core lsb-cxx lsb-graphics lsb-desktop lsb-qt4 lsb-languages lsb-multimedia lsb-printing

which it parses and from it captures the version number of each found package, and returns a list of those version numbers. /usr/bin/lsb_release joins that list with colons, giving you the output you have.

I can not answer how this is useful to you :wink:
this is it (i guess :lol: )
a month ago (more or less) i was testing multiarch for this topic >> http://forums.linuxmint.com/viewtopic.p ... 0&t=122296 ans one of the app i wanted to install was google-earth
GE was complaining about some missing lsb modules so i

Code: Select all

Commit Log for Wed Jan  9 21:04:20 2013


Installed the following packages:
libjpeg62 (6b1-3)
libpod-plainer-perl (1.03-1)
lsb (4.1+Debian8)
lsb-cxx (4.1+Debian8)
lsb-desktop (4.1+Debian8)
lsb-graphics (4.1+Debian8)
lsb-languages (4.1+Debian8)
lsb-multimedia (4.1+Debian8)
lsb-printing (4.1+Debian8)

Code: Select all

Commit Log for Wed Jan  9 21:01:14 2013


Installed the following packages:
alien (8.87)
cups-bsd (1.5.3-2.4)
lib32z1 (1:1.2.7.dfsg-13)
libc6-i386 (2.13-37)
librpmbuild3 (4.10.0-5+deb7u1)
librpmsign1 (4.10.0-5+deb7u1)
lsb-core (4.1+Debian8)
lsb-invalid-mta (4.1+Debian8)
lsb-security (4.1+Debian8)
ncurses-term (5.9-10)
pax (1:20120606-2)
rpm (4.10.0-5+deb7u1)
:lol: and in the end of the day i couldn't install it

thanks a lot :wink: at least now i know when and how it happened

EDIT: solved

Code: Select all

zerozero@deb-kde ~/Documents $ sudo apt-get purge lsb-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  librpmbuild3 librpmsign1 rpm
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  lsb-core*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 268276 files and directories currently installed.)
Removing lsb-core ...
Purging configuration files for lsb-core ...

Code: Select all

zerozero@deb-kde ~/Documents $ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint Debian Edition
Release:	1
Codename:	debian
Locked

Return to “LMDE Archive”