how to install lsb-9.20150917?

Asked by Hwung

Hello!my system is xubuntu 16.04.And it need to install the lbs-core for googleearth7.1,but i can't make the lsb-9.20150917.tar.xz.How can i do?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu lsb Edit question
Assignee:
No assignee Edit question
Solved by:
Hwung
Solved:
Last query:
Last reply:
Revision history for this message
Hwung (valentin-d) said :
#1

I haved solved it.

Revision history for this message
Clem Wang (clemw) said :
#2

Unfortunately, I can't figure out how to install lsb. (I'm not sure how I got into a wedged state where lsb_release doesn't work, but I did...)

There doesn't seem to be an informative README file, like there are in most packages on how to install this package.

Since lsb-release requires the use of lsb-release, this fails:

sudo apt-get install lsb-release

I tried to do a remove and reinstall but that failed.

I'm on ubuntu 16.04

I suspect that it may have something to do with my anaconda install, because when I run:
/usr/bin/lsb_release

I get the Python error:
/usr/bin/lsb_release -a
Traceback (most recent call last):
  File "/usr/bin/lsb_release", line 25, in <module>
    import lsb_release
ModuleNotFoundError: No module named 'lsb_release'

The obvious pip install and conda installs don't work because it requires the use of lsb_release:

subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1

Revision history for this message
Clem Wang (clemw) said :
#3

I think I solved my problem: I manually copied lsb_release.py from the release to /usr/bin/ so that the python program lsb_release can find the python module and import it.

However, this does point out a boot-strap install problem with this package...