Firefox update issue

Jim jf_byrnes at comcast.net
Wed Feb 8 02:12:21 UTC 2017


On 02/07/2017 06:58 PM, MR ZenWiz wrote:
> On Tue, Feb 7, 2017 at 2:00 PM, Jim <jf_byrnes at comcast.net> wrote:
>> On 02/07/2017 03:08 PM, MR ZenWiz wrote:
>>>
>>> Looks right - see below:
>>>
>>> admar at marbase:~/Downloads $ locate lsb_release
>>> /usr/bin/lsb_release
>>> /usr/lib/python2.7/dist-packages/lsb_release.py
>>> /usr/lib/python2.7/dist-packages/lsb_release.pyc
>>> /usr/share/man/man1/lsb_release.1.gz
>>> /usr/share/pyshared/lsb_release.py
>>
>> FWIW on Mint18.1 I have it.
>>
>> jfb at jims-mint18 ~ $ locate lsb_release.py
>> /usr/lib/python2.7/dist-packages/lsb_release.py
>> /usr/lib/python2.7/dist-packages/lsb_release.pyc
>> /usr/lib/python3/dist-packages/lsb_release.py
>> /usr/share/pyshared/lsb_release.py
>> jfb at jims-mint18 ~ $
>>
>> Looking at the timestamps etc, they seem to be identical and it should be
>> comparable with Python3 as it has this line:
>>
>> # Python3-compatible print() function
>> from __future__ import print_function
>>
>> so maybe you could just copy the one from 2.7 to python 3.
>>
>
> Doesn't seem to work:
>
> admar at marbase:~/Downloads $ sudo ln
> /usr/lib/python2.7/dist-packages/lsb_release.py
> /usr/lib/python3/dist-packages/
> admar at marbase:~/Downloads $ lsb_release
> No LSB modules are available.
>
> admar at marbase:~/Downloads $ sudo ln
> /usr/lib/python2.7/dist-packages/lsb_release.pyc
> /usr/lib/python3/dist-packages
> admar at marbase:~/Downloads $ lsb_release
> No LSB modules are available.
>
> admar at marbase:~/Downloads $ ll /usr/lib/python3/dist-packages/lsb_release.py*
> lrwxrwxrwx 2 root root    38 Dec  8 16:42
> /usr/lib/python3/dist-packages/lsb_release.py ->
> ../../../share/pyshared/lsb_release.py
> -rw-rw-r-- 2 root root 11010 Dec  8 16:43
> /usr/lib/python3/dist-packages/lsb_release.pyc
> admar at marbase:~/Downloads $ ll /usr/lib/python2.7/dist-packages/lsb_release.py*
> lrwxrwxrwx 2 root root    38 Dec  8 16:42
> /usr/lib/python2.7/dist-packages/lsb_release.py ->
> ../../../share/pyshared/lsb_release.py
> -rw-rw-r-- 2 root root 11010 Dec  8 16:43
> /usr/lib/python2.7/dist-packages/lsb_release.pyc
>
> I also tried making a backup of the lsb_release script and modifying
> it to use python, instead of python3 and it gets the same error as the
> original, plus another quirk:
>
> admar at marbase:~/Downloads $ lsb_release
>   File "/usr/bin/lsb_release", line 64
>     print("No LSB modules are available.", file=sys.stderr)
>                                                ^
> SyntaxError: invalid syntax
>

I'm getting a little out of my depth here, but I had a look at them with 
Nemo and it says the type = Link to Text.  Looking at their properties I 
see they both point to :

Link taget: ../../../share/pyshared/lsb_release.py

Maybe this will be helpful for you.

Regards, Jim






More information about the ubuntu-users mailing list