Grub version depricated warning after update

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
JLS727
Posts: 48
Joined: Sat May 02, 2015 4:18 pm

Grub version depricated warning after update

#1 Post by JLS727 »

When updating grub I see several warnings after the latest update. How can I fix that? Following is my sysytem info.

Code: Select all

Snapshot created on: 20231003_2055
System:
  Kernel: 6.1.0-26-amd64 [6.1.112-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 clocksource: tsc
    avail: hpet,acpi_pm parameters: BOOT_IMAGE=/vmlinuz-6.1.0-26-amd64 root=UUID=<filter> ro quiet
    splash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 wm: xfwm4 v: 4.18.0 with: xfce4-panel
    tools: xfce4-screensaver vt: 7 dm: LightDM v: 1.26.0 Distro: MX-23.4_x64 Libretto October 03 2023
    base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: LENOVO product: 062223U v: ThinkPad X130e serial: <superuser required>
    Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 062223U serial: <superuser required> uuid: <superuser required>
    UEFI-[Legacy]: LENOVO v: 8RET54WW (1.17 ) date: 10/24/2012
Battery:
  ID-1: BAT1 charge: 41.1 Wh (95.6%) condition: 43.0/57.7 Wh (74.5%) volts: 12.3 min: 11.1
    model: LGC 42T4961 type: Li-ion serial: <filter> status: not charging
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse PID:0080 serial: N/A
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: AMD E-450 APU with Radeon HD Graphics bits: 64 type: MCP arch: Bobcat level: v1
    built: 2011-13 process: GF 40nm family: 0x14 (20) model-id: 2 stepping: 0 microcode: 0x5000119
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB
    L2: 1024 KiB desc: 2x512 KiB
  Speed (MHz): avg: 1513 high: 1515 min/max: 825/1650 boost: disabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 1512 2: 1515 bogomips: 6585
  Flags: ht lm nx pae sse sse2 sse3 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; STIBP: disabled; RSB filling; PBRSB-eIBRS: Not
    affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Wrestler [Radeon HD 6320] vendor: Lenovo driver: radeon v: kernel alternate: amdgpu
    arch: TeraScale-2 code: Evergreen process: TSMC 32-40nm built: 2009-15 ports: active: LVDS-1
    empty: HDMI-A-1,VGA-1 bus-ID: 00:01.0 chip-ID: 1002:9806 class-ID: 0300
  Device-2: Bison Lenovo Integrated Webcam driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 2-5:2 chip-ID: 5986:01a6 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm4 v: 4.18.0 driver: X: loaded: radeon
    unloaded: fbdev,modesetting,vesa dri: r600 gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99") s-diag: 414mm (16.31")
  Monitor-1: LVDS-1 mapped: LVDS model: AU Optronics 0x315c built: 2010 res: 1366x768 hz: 60
    dpi: 136 gamma: 1.2 size: 256x144mm (10.08x5.67") diag: 294mm (11.6") ratio: 16:9 modes:
    max: 1366x768 min: 640x480
  API: EGL v: 1.5 hw: drv: amd r600 platforms: device: 0 drv: r600 device: 1 drv: swrast gbm:
    egl: 1.4 drv: kms_swrast surfaceless: drv: r600 x11: drv: r600 inactive: wayland
  API: OpenGL v: 4.5 vendor: x.org mesa v: 22.3.6 glx-v: 1.4 es-v: 3.1 direct-render: yes
    renderer: AMD PALM (DRM 2.50.0 / 6.1.0-26-amd64 LLVM 15.0.6) device-ID: 1002:9806 memory: 375 MiB
    unified: no
Audio:
  Device-1: AMD Wrestler HDMI Audio driver: snd_hda_intel v: kernel bus-ID: 00:01.1
    chip-ID: 1002:1314 class-ID: 0403
  Device-2: AMD SBx00 Azalia vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:14.2
    chip-ID: 1002:4383 class-ID: 0403
  API: ALSA v: k6.1.0-26-amd64 status: kernel-api tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.2.1 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8188CE 802.11b/g/n WiFi Adapter driver: rtl8192ce v: kernel modules: wl
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8176
    class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  Device-2: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet vendor: Lenovo driver: atl1c v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 02:00.0 chip-ID: 1969:1083
    class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Info: services: mld, NetworkManager, smbd, wpa_supplicant
Bluetooth:
  Device-1: Broadcom BCM2045B (BDC-2.1) driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-4:3 chip-ID: 0a5c:217f class-ID: fe01 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0 lmp-v: 5 sub-v: 4203
    hci-v: 5 rev: 2ec class-ID: 7c010c
  Info: acl-mtu: 1021:8 sco-mtu: 64:1 link-policy: rswitch hold sniff park
    link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio,
    telephony
Drives:
  Local Storage: total: 465.76 GiB used: 132.19 GiB (28.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT500MX500SSD1 size: 465.76 GiB block-size:
    physical: 512 B logical: 512 B speed: 3.0 Gb/s tech: SSD serial: <filter> fw-rev: 023 scheme: MBR
Partition:
  ID-1: / raw-size: 464.74 GiB size: 456.38 GiB (98.20%) used: 21.03 GiB (4.6%) fs: ext4
    dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
  ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 280.8 MiB (28.8%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: file size: 3 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 72.0 C mobo: 0.0 C gpu: radeon temp: 72.0 C
  Fan Speeds (rpm): cpu: 502 fan-2: 502
Repos:
  Packages: 2232 pm: dpkg pkgs: 2227 libs: 1080 tools: apt, apt-get, aptitude, nala, synaptic
    pm: rpm pkgs: 0 pm: flatpak pkgs: 5
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirror.umd.edu/mxlinux/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
    1: deb https://repo.nordvpn.com/deb/nordvpn/debian stable main
Info:
  Memory: total: 8 GiB note: est. available: 7.36 GiB used: 2.08 GiB (28.3%)
  Processes: 217 Power: uptime: 9m states: freeze,mem,disk suspend: deep avail: s2idle wakeups: 0
    hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 2.91 GiB
    services: upowerd,xfce4-power-manager Init: SysVinit v: 3.08 runlevel: 5 default: graphical
    tool: systemctl
  Compilers: gcc: 12.2.0 Client: shell wrapper v: 5.2.15-release inxi: 3.3.35
Boot Mode: BIOS (legacy, CSM, MBR)

User avatar
fehlix
Developer
Posts: 12624
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub version depricated warning after update

#2 Post by fehlix »

JLS727 wrote: Sat Oct 05, 2024 1:20 pm When updating grub I see several warnings after the latest update. How can I fix that? Following is my sysytem info.
Mind you, showing the command and the warnings.Thanks

User avatar
JLS727
Posts: 48
Joined: Sat May 02, 2015 4:18 pm

Re: Grub version depricated warning after update

#3 Post by JLS727 »

sudo update-grub
[sudo] password for jlschwartz:
Generating grub configuration file ...
Found theme: /boot/grub/themes/linen/theme.txt
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.1.0-26-amd64
Found initrd image: /boot/initrd.img-6.1.0-26-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Warning: version_test_numeric() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.1.0-25-amd64
Found initrd image: /boot/initrd.img-6.1.0-25-amd64
Warning: version_find_latest() is deprecated. Use version_sort() instead.
Warning: version_test_gt() is deprecated. Use version_sort() instead.
Found linux image: /boot/vmlinuz-6.1.0-10-amd64
Found initrd image: /boot/initrd.img-6.1.0-10-amd64
done

User avatar
fehlix
Developer
Posts: 12624
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub version depricated warning after update

#4 Post by fehlix »

Putting code-tags around command text toutput would make reading it easier at least for me.
Forum rules explains:
When posting long blocks of data encase the block in code tags by highlighting the text and clicking on code tags </> found at the top of the post.
Anyway, I do not get those messages.
So I guess we need dive a bit deeper:
perhaps let's start with checking the versions installed:
Please run this command with terminal as normal user

Code: Select all

apt policy grub-common grub2-common grub-pc grub-pc-bin
and do post the text-block output do enclosed within code-tags.
Thanks

User avatar
JLS727
Posts: 48
Joined: Sat May 02, 2015 4:18 pm

Re: Grub version depricated warning after update

#5 Post by JLS727 »

Sorry I cannot get code tags to work

Schwartz@mx23X130e:~
$ apt policy grub-common grub2-common grub-pc grub-pc-bin
grub-common:
Installed: 2.12-1~bpo12+1
Candidate: 2.12-1~bpo12+1
Version table:
*** 2.12-1~bpo12+1 100
100 /var/lib/dpkg/status
2.06-13+deb12u1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
grub2-common:
Installed: 2.12-1~bpo12+1
Candidate: 2.12-1~bpo12+1
Version table:
*** 2.12-1~bpo12+1 100
100 /var/lib/dpkg/status
2.06-13+deb12u1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
grub-pc:
Installed: 2.12-1~bpo12+1
Candidate: 2.12-1~bpo12+1
Version table:
*** 2.12-1~bpo12+1 100
100 /var/lib/dpkg/status
2.06-13+deb12u1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
grub-pc-bin:
Installed: 2.12-1~bpo12+1
Candidate: 2.12-1~bpo12+1
Version table:
*** 2.12-1~bpo12+1 100
100 /var/lib/dpkg/status
2.06-13+deb12u1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages

User avatar
fehlix
Developer
Posts: 12624
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub version depricated warning after update

#6 Post by fehlix »

JLS727 wrote: Sat Oct 05, 2024 5:44 pm Sorry I cannot get code tags to work
Hmm: Here a simple way.
Reply to the post with the full-editor by clicking on reply Or better quote-reply.
Do not use the "simply" editor below the thread.

Copy all text into the "clipboard", do not paste yet.
Insert the code-tags, either by pressing code-block icon [</>]
Or manually enter:
[code][/code]
Now position the cursor between the code-tags : [code] cursor is here[/code]
and paste the text-from the clipbaord.
That's it. Simple, not?

OK, now back to the issue:
JLS727 wrote: Sat Oct 05, 2024 5:44 pm

Code: Select all

$ apt policy grub-common grub2-common grub-pc grub-pc-bin
grub-common:
  Installed: 2.12-1~bpo12+1
  Candidate: 2.12-1~bpo12+1
  Version table:
 *** 2.12-1~bpo12+1 100
        100 /var/lib/dpkg/status
     2.06-13+deb12u1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
grub2-common:
  Installed: 2.12-1~bpo12+1
  Candidate: 2.12-1~bpo12+1
  Version table:
 *** 2.12-1~bpo12+1 100
        100 /var/lib/dpkg/status
     2.06-13+deb12u1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
grub-pc:
  Installed: 2.12-1~bpo12+1
  Candidate: 2.12-1~bpo12+1
  Version table:
 *** 2.12-1~bpo12+1 100
        100 /var/lib/dpkg/status
     2.06-13+deb12u1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
grub-pc-bin:
  Installed: 2.12-1~bpo12+1
  Candidate: 2.12-1~bpo12+1
  Version table:
 *** 2.12-1~bpo12+1 100
        100 /var/lib/dpkg/status
     2.06-13+deb12u1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
Ok, you upgraded your system manually in resp. to GRUB to the debian backports version. I guess probably with good intention.
It would not have upgraded automatically to the backports version.
But GRUB is a complicated package suite, and just upgrade such a thing
to the backports version, may create further and future issues.
The "smallest" issue you are now facing are the deprecation warnings.
I would not be surprised if you facing in future other issues.
Going back to the stable-version is probably possible,
but GRUB framework involves quite a number of config settings, with lots
of checks which version was upgraded adjusted etc.
And MX itself does have also some tweaks added to this game.
For now the only advice, I can give ignore the warnigns.
Another one, do not blindly upgrade to backports version, in doubt ask here in the forum.

User avatar
JLS727
Posts: 48
Joined: Sat May 02, 2015 4:18 pm

Re: Grub version depricated warning after update

#7 Post by JLS727 »

I did not knowingly upgrade grub to a backports version. Somehow the system must have done it.

User avatar
fehlix
Developer
Posts: 12624
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub version depricated warning after update

#8 Post by fehlix »

JLS727 wrote: Sat Oct 05, 2024 6:58 pm I did not knowingly upgrade grub to a backports version. Somehow the system must have done it.
The repo-list does not show you have debian-backports enabled permanently:

Code: Select all

Repos:
  Packages: 2232 pm: dpkg pkgs: 2227 libs: 1080 tools: apt, apt-get, aptitude, nala, synaptic
    pm: rpm pkgs: 0 pm: flatpak pkgs: 5
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirror.umd.edu/mxlinux/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
    1: deb https://repo.nordvpn.com/deb/nordvpn/debian stable main
The only way I can think of, maybe you clicked on the Backports tab with MXPI and selected all upgradable,
b/c without backports-repos enabled you would not get any upgrade from there.

And even if you had somehow temporarily enabled backports repo, e.g with mx-repo-manager.
those packages from backports do have a lower "priority" of "100" compared
to the stable repo of "500". Which means apt and co. would not auto upgrade to the low-priority version.

Perhaps post apt-history found with QSI-Tool.
Select apt-history, and post here.

User avatar
JLS727
Posts: 48
Joined: Sat May 02, 2015 4:18 pm

Re: Grub version depricated warning after update

#9 Post by JLS727 »

Thanks for the help. Regardless of how it happened, I removed the backport grub pkgs and re-installed the normal ones. Everything is back to normal now. Thanks again fehlix.

User avatar
fehlix
Developer
Posts: 12624
Joined: Wed Apr 11, 2018 5:09 pm

Re: Grub version depricated warning after update

#10 Post by fehlix »

JLS727 wrote: Sat Oct 05, 2024 8:27 pm Thanks for the help. Regardless of how it happened, I removed the backport grub pkgs and re-installed the normal ones. Everything is back to normal now. Thanks again fehlix.
I'm glad it worked. I hope you won't have any side effects.

Post Reply

Return to “MX Help”