• Devuan project
  • devuan-project
  • Issues
  • #66

Closed
Open
Opened 2016-06-22T15:44Z by T s T @letmechangemyusername

about lsb_release -a

Hello,

I successfully upgraded my server fromdebian/wheezytodevuan/jessie.

After that thelsb_release -acommand returns :

No LSB modules are available.
Distributor ID: Debian
Description:    Devuan GNU/Linux 1.0 (jessie)
Release:        7
Codename:       jessie
  • because debian/jessie is 8.x, I wonder if the Release number is ok ?

Additionnal informations

my /etc/debian_release is7.11

Theapt-cache policy base-filesis :

base-files:
  Installed: 8+devuan7
  Candidate: 8+devuan7
  Version table:
 *** 8+devuan7 0
        990 http://auto.mirror.devuan.org/merged/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

Please solve the reCAPTCHA

We want to be sure it is you, please confirm you are not a robot.

  • hellekin
    hellekin @hellekin · 2016-06-22T11:56Z

    Sorry, I can't reproduce it on a freshly installed Devuan, and I have a machine I upgraded from Debian Squeeze to Devuan Jessie. Both machines show:

    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Devuan
    Description:    Devuan GNU/Linux 1.0 (jessie)
    Release:        1.0
    Codename:       jessie

    Note that I do not have/etc/debian_releaseanymore . Did you leave some Debian repositories in your/etc/apt/sources.list?

    Edited by hellekin 2016-06-22T11:57Z
  • T s T
    T s T @letmechangemyusername · 2016-06-22T13:51Z

    I don't have debian repository in my/etc/apt/sources.list*

    I read the lsb_release code (and the python module code) to found where the information is found. I discovered I have a/etc/lsb-release:

    DISTRIB_ID=Debian
    DISTRIB_RELEASE=7
    DISTRIB_CODENAME=
    DISTRIB_DESCRIPTION=

    mydpkgdon't know where it comes. I renamed it, now it seems fixed. alsb_release -areturns a clean :

    No LSB modules are available.
    Distributor ID: Devuan
    Description:    Devuan GNU/Linux 1.0 (jessie)
    Release:        1.0
    Codename:       jessie

    Now my issue is fixed but ...

    I also still have a/etc/debian_release

    $ cat /etc/debian_version 
    7.11

    I played a little with him...

    # dpkg -S /etc/debian_version 
    base-files: /etc/debian_version
    
    # rm /etc/debian_version 
    
    # apt-get install --reinstall base-files
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
    Preparing to unpack .../base-files_8+devuan7_amd64.deb ...
    Unpacking base-files (8+devuan7) over (8+devuan7) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up base-files (8+devuan7) ...
    
    # ls /etc/deb*
    debconf.conf    debsums-ignore  
    
    # dpkg -S /etc/debian_version 
    dpkg-query: no path found matching pattern /etc/debian_version
    
    # echo 7.11 > /etc/debian_version 
    
    # dpkg -S /etc/debian_version 
    dpkg-query: no path found matching pattern /etc/debian_version
    
    # rm /etc/debian_version 

    I don't understand why the /etc/debian_version seems coming from base-files (8+devuan7) and not after the reinstall of the same packet.

  • Pawe\xc5\x82 Cholewi\xc5\x84ski
    Pawe\xc5\x82 Cholewi\xc5\x84ski @positive · 2016-06-24T22:11Z

    Hi @letmechangemyusername

    Because base-files_8+devuan7_amd64.deb doesn't include /etc/debian_version. You can check this (i.e. for amd64):

    dpkg -c /var/cache/apt/archives/base-files_8+devuan7_amd64.deb

    I suppose file /etc/debian_version comes from Debian installation and has change date before migration date to Devuan - You should check it change date before remove:

    stat /etc/debian_version

    Maybe base-files should removes /etc/debian_version during installation to avoid confusion.

  • T s T
    T s T @letmechangemyusername · 2016-06-27T08:13Z

    After my server...

    Yesterday I upgraded my laptop from debian/wheezy to devuan/jessie.

    I don't get the issue aboutlsb_release -a. The/etc/lsb-releasedoes not exists.

    I also still have the/etc/debian_versionafter devuan upgrade. Yes it was created by the debian's base-files package.

    Yes, maybe devuan base-files (or another cleanup tool for devuan) should remove the /etc/debian_version.

  • Franco Lanza @nextime Reassigned to @nextime · 2016-10-27T09:53Z

    Reassigned to @nextime

  • Franco Lanza @nextime Milestone changed to 1.0.0 JESSIE · 2016-10-30T00:00Z

    Milestone changed to 1.0.0 JESSIE

  • Franco Lanza @nextime Added in progress label · 2016-10-30T00:00Z

    Added in progress label