Upgrade from 19->21 : lsb_release problem  [Solved]

When you run into problems installing MX Linux XFCE
Message
Author
User avatar
billyg599
Posts: 9
Joined: Thu Feb 17, 2022 1:39 am

Upgrade from 19->21 : lsb_release problem  [Solved]

#1 Post by billyg599 »

Code: Select all

System:    Kernel: 5.10.0-11-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/vmlinuz-5.10.0-11-amd64 
           root=UUID=<filter> ro quiet splash video=2560x1440 
           init=/lib/systemd/systemd 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21_x64 Wildflower November 11  2020 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: Micro-Star product: MS-7C02 v: 1.0 serial: <filter> 
           Mobo: Micro-Star model: B450 TOMAHAWK MAX (MS-7C02) v: 1.0 serial: <filter> 
           UEFI: American Megatrends v: 3.A2 date: 12/08/2020 
Battery:   Device-1: hidpp_battery_0 model: Logitech MX Keys Wireless Keyboard serial: <filter> 
           charge: 55% (should be ignored) rechargeable: yes status: Discharging 
CPU:       Info: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 
           family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701021 cache: L2: 4 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
           bogomips: 115203 
           Speed: 2200 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 2200 
           2: 2200 3: 2201 4: 2200 5: 1860 6: 1861 7: 2799 8: 1866 9: 2205 10: 2200 11: 1867 
           12: 1866 13: 2800 14: 1867 15: 2200 16: 2209 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Full AMD retpoline, IBPB: conditional, STIBP: conditional, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GP108 [GeForce GT 1030] vendor: Micro-Star MSI driver: nvidia 
           v: 510.47.03 bus-ID: 26:00.0 chip-ID: 10de:1d01 class-ID: 0300 
           Device-2: Trust FHD Webcam type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-8:4 
           chip-ID: 145f:02aa class-ID: 0102 serial: <filter> 
           Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver: loaded: nvidia 
           unloaded: fbdev,modesetting,nouveau,vesa alternate: nv display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0") 
           s-diag: 777mm (30.6") 
           Monitor-1: DP-0 res: 2560x1440 hz: 60 dpi: 109 size: 597x336mm (23.5x13.2") 
           diag: 685mm (27") 
           OpenGL: renderer: NVIDIA GeForce GT 1030/PCIe/SSE2 v: 4.6.0 NVIDIA 510.47.03 
           direct render: Yes 
Audio:     Device-1: NVIDIA GP108 High Definition Audio vendor: Micro-Star MSI 
           driver: snd_hda_intel v: kernel bus-ID: 26:00.1 chip-ID: 10de:0fb8 class-ID: 0403 
           Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI driver: snd_hda_intel 
           v: kernel bus-ID: 28:00.4 chip-ID: 1022:1487 class-ID: 0403 
           Device-3: Trust FHD Webcam type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-8:4 
           chip-ID: 145f:02aa class-ID: 0102 serial: <filter> 
           Sound Server-1: ALSA v: k5.10.0-11-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel modules: wl bus-ID: 21:00.0 
           chip-ID: 8086:2723 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus-ID: 22:00.0 
           chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
Drives:    Local Storage: total: 1.24 TiB used: 878.52 GiB (68.9%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 1TB 
           size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
           type: SSD serial: <filter> rev: 2B2QEXM7 temp: 38.9 C scheme: GPT 
           ID-2: /dev/sda maj-min: 8:0 vendor: SanDisk model: SDSSDP128G size: 119.24 GiB 
           block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           scheme: GPT 
           ID-3: /dev/sdb maj-min: 8:16 vendor: SanDisk model: SDSSDA240G size: 223.57 GiB 
           block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 80RL temp: 28 C scheme: GPT 
Partition: ID-1: / raw-size: 928.72 GiB size: 913.14 GiB (98.32%) used: 694.41 GiB (76.0%) 
           fs: ext4 dev: /dev/dm-0 maj-min: 253:0 mapped: rootfs 
           ID-2: /boot raw-size: 512 MiB size: 487.9 MiB (95.30%) used: 236.8 MiB (48.5%) 
           fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-3: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 25.1 MiB (10.0%) 
           fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 1.98 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/dm-1 maj-min: 253:1 mapped: swapfs 
Sensors:   System Temperatures: cpu: 43.1 C mobo: N/A gpu: nvidia temp: 39 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 35% 
Repos:     Packages: 2858 note: see --pkg apt: 2851 lib: 1466 flatpak: 4 snap: 3 
           Active apt repos in: /etc/apt/sources.list 
           1: deb https://repo.protonvpn.com/debian unstable main
           Active apt repos in: /etc/apt/sources.list.d/anydesk-stable.list 
           1: deb http://deb.anydesk.com/ all main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.math.princeton.edu/pub/mxlinux/mx/repo/ bullseye main non-free
           2: deb http://mirror.math.princeton.edu/pub/mxlinux/mx/repo/ bullseye ahs
           No active apt repos in: /etc/apt/sources.list.d/plexmediaserver.list 
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/spotify.list 
           1: deb http://repository.spotify.com stable non-free
           Active apt repos in: /etc/apt/sources.list.d/syncthing.list 
           1: deb https://apt.syncthing.net/ syncthing stable
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
           No active apt repos in: /etc/apt/sources.list.d/various.list 
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
Info:      Processes: 452 Uptime: 33m wakeups: 3 Memory: 31.34 GiB used: 5.04 GiB (16.1%) 
           Init: systemd v: 247 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Shell: quick-system-in default: Bash v: 5.1.4 running-in: quick-system-in 
           inxi: 3.3.06 
It is a minor annoyance but here it is. I followed the guide here https://mxlinux.org/wiki/upgrading-from ... nstalling/

The content of /etc/lsb_release is:
PRETTY_NAME="MX 21 Wildflower"
DISTRIB_ID=MX
DISTRIB_RELEASE=21
DISTRIB_CODENAME="Wildflower"
DISTRIB_DESCRIPTION="MX 21 Wildflower"

when I give lsb_release -a I get:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Does anyone have an idea why this happens? This propagates to update-grub and it shows Debian in grub menu instead of MX.

Thanks

User avatar
dolphin_oracle
Developer
Posts: 22682
Joined: Sun Dec 16, 2007 12:17 pm

Re: Upgrade from 19->21 : lsb_release problem

#2 Post by dolphin_oracle »

debian's lsb_release does not process /etc/lsb-release. it hasn't for a long time now, and I agree its a PITA.

it usually falls on /etc/os-release, which is a symlink I think, and which I don't want to mess with since apt uses this and we still use debian repos unmodified.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
billyg599
Posts: 9
Joined: Thu Feb 17, 2022 1:39 am

Re: Upgrade from 19->21 : lsb_release problem

#3 Post by billyg599 »

You are right. /etc/os-release contains the result I get from lsb_release -a.
But how does MX 19 and 21 do it? I mean when I used to give lsb_release -a I would get MX 19 etc. So the MX team must have changed /etc/os-release and it must be safe. I don't have another clean 19 or 21 install to verify though.

User avatar
dolphin_oracle
Developer
Posts: 22682
Joined: Sun Dec 16, 2007 12:17 pm

Re: Upgrade from 19->21 : lsb_release problem

#4 Post by dolphin_oracle »

I don’t think we did but maybe I’m misremembering mx19. I’ve been on 21 a very long time.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
dolphin_oracle
Developer
Posts: 22682
Joined: Sun Dec 16, 2007 12:17 pm

Re: Upgrade from 19->21 : lsb_release problem

#5 Post by dolphin_oracle »

just checked our 19.4 release, and they have the same issue with lsb_release.

we adjusted our /etc/default/grub configuration to source lsb-release rather than use the lsb_release command.

Code: Select all

GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || echo Debian)"
I've thought about adjusting to using information from /etc/mx-version, but stuck with /etc/lsb-release for now. the advantage for /etc/mx-version would be have the iso spin version available. lsb-release is common to all releases.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
billyg599
Posts: 9
Joined: Thu Feb 17, 2022 1:39 am

Re: Upgrade from 19->21 : lsb_release problem

#6 Post by billyg599 »

OK yes this works. My /etc/default/grub was using lsb_release.

Post Reply

Return to “Installation”