about lsb_release -a
Hello,
I successfully upgraded my server fromdebian/wheezy
todevuan/jessie
.
After that thelsb_release -a
command 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-files
is :
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
-
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_release
anymore . Did you leave some Debian repositories in your/etc/apt/sources.list
?Edited by hellekin -
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=
my
dpkg
don't know where it comes. I renamed it, now it seems fixed. alsb_release -a
returns 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.
-
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.
-
After my server...
Yesterday I upgraded my laptop from debian/wheezy to devuan/jessie.
I don't get the issue about
lsb_release -a
. The/etc/lsb-release
does not exists.I also still have the
/etc/debian_version
after 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.
-
Milestone changed to 1.0.0 JESSIE
-
Added in progress label