no MX23 system upgrade notifications on task bar unless "apt update" cmd is executed  [Solved]

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
AA BB
Posts: 320
Joined: Mon Nov 11, 2019 10:49 pm

no MX23 system upgrade notifications on task bar unless "apt update" cmd is executed  [Solved]

#1 Post by AA BB »

Unless a execute "apt update" cmd each time I log into MX23 I get no system upgrade notifications on task bar. How can I restore auto notifications ?

Code: Select all

System:
  Kernel: 6.1.0-33-amd64 [6.1.133-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-33-amd64 root=UUID=<filter> ro quiet splash
  Desktop: Fluxbox v: 1.3.7 info: tint2 vt: 7 dm: LightDM v: 1.32.0 Distro: MX-23.6_fluxbox_x64
    Libretto May 19 2024 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: Dell product: Latitude E7250 v: N/A serial: <superuser required> Chassis:
    type: 9 serial: <superuser required>
  Mobo: Dell model: 0TVD2T v: A01 serial: <superuser required> UEFI-[Legacy]: Dell v: A24
    date: 04/10/2020
Battery:
  ID-1: BAT0 charge: 26.5 Wh (100.0%) condition: 26.5/38.4 Wh (69.1%) volts: 11.3 min: 11.1
    model: LGC-LGC3.4 DELL WG6RP64 type: Li-poly serial: <filter> status: full
CPU:
  Info: model: Intel Core i7-5600U bits: 64 type: MT MCP arch: Broadwell gen: core 5 level: v3
    note: check built: 2015-18 process: Intel 14nm family: 6 model-id: 0x3D (61) stepping: 4
    microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1320 high: 1341 min/max: 500/3200 scaling: driver: intel_cpufreq
    governor: ondemand cores: 1: 1341 2: 1311 3: 1321 4: 1310 bogomips: 20751
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: conditional; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Dell driver: i915 v: kernel arch: Gen-8
    process: Intel 14nm built: 2014-15 ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:1616 class-ID: 0300
  Device-2: Sunplus Innovation Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 2-1.6:4
    chip-ID: 1bcf:2b8d class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 display-ID: :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: eDP-1 model: LG Display 0x0450 built: 2014 res: 1366x768 hz: 60 dpi: 125 gamma: 1.2
    size: 277x156mm (10.91x6.14") diag: 318mm (12.5") ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel HD Graphics 5500 (BDW GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:03.0
    chip-ID: 8086:160c class-ID: 0403
  Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Dell driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9ca0 class-ID: 0403
  API: ALSA v: k6.1.0-33-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 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: Intel Ethernet I218-LM vendor: Dell driver: e1000e v: kernel port: f080 bus-ID: 00:19.0
    chip-ID: 8086:15a2 class-ID: 0200
  IF: eth0 state: down mac: <filter>
  Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel modules: wl pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:095a class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 2-1.3:3
    chip-ID: 8087:0a2a class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 2.1 lmp-v: 4.2
    sub-v: 1000 hci-v: 4.2 rev: 1000
  Info: acl-mtu: 1021:5 sco-mtu: 96:6 link-policy: rswitch hold sniff
    link-mode: peripheral accept service-classes: rendering, capturing, audio, telephony
Drives:
  Local Storage: total: 238.47 GiB used: 5.96 GiB (2.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: LITE-ON model: LMH-256V2M-11 MSATA 256GB size: 238.47 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 10C
    scheme: MBR
Partition:
  ID-1: / raw-size: 25.19 GiB size: 24.63 GiB (97.76%) used: 5.96 GiB (24.2%) fs: ext4
    dev: /dev/sda7 maj-min: 8:7
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda6
    maj-min: 8:6
Sensors:
  System Temperatures: cpu: 44.0 C mobo: 36.0 C sodimm: SODIMM C
  Fan Speeds (RPM): cpu: 0
Repos:
  Packages: pm: dpkg pkgs: 1881 libs: 904 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm pkgs: 0
    pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
  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/mx.list
    1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bookworm main non-free
Info:
  Processes: 208 Uptime: 8m wakeups: 2 Memory: 15.5 GiB used: 1.69 GiB (10.9%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)

User avatar
j2mcgreg
Global Moderator
Posts: 6534
Joined: Tue Oct 23, 2007 12:04 pm

Re: no MX23 system upgrade notifications on task bar unless "apt update" cmd is executed

#2 Post by j2mcgreg »

Use Repo Manager in MX Tools to switch your main repo to Salt Lake City, Utah. I live in Toronto, Canada and the R.I T. repo is selected automatically when I do an install. The first thing I do is switch repos to SLC. It.s not how close you are geographically that affect a mirror's reliability, but how far away you are (hops) network-wise.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

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

Re: no MX23 system upgrade notifications on task bar unless "apt update" cmd is executed

#3 Post by fehlix »

AA BB wrote: Sun Apr 27, 2025 1:44 pm Unless a execute "apt update" cmd each time I log into MX23 I get no system upgrade notifications on task bar. How can I restore auto notifications ?
Automatic update of the package list only takes place once a day, you may have to wait until new updates are automatically made visible.

AA BB
Posts: 320
Joined: Mon Nov 11, 2019 10:49 pm

Re: no MX23 system upgrade notifications on task bar unless "apt update" cmd is executed

#4 Post by AA BB »

Use Repo Manager in MX Tools to switch your main repo to Salt Lake City, Utah
Many thanks....I reset to Salt Lake and upgrade notification immediately turned on

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

Re: no MX23 system upgrade notifications on task bar unless "apt update" cmd is executed

#5 Post by dolphin_oracle »

AA BB wrote: Sun Apr 27, 2025 3:07 pm
Use Repo Manager in MX Tools to switch your main repo to Salt Lake City, Utah
Many thanks....I reset to Salt Lake and upgrade notification immediately turned on
that's because mx-repo-manager ran an apt update in the background.

so as fehlix says, +24 hours from now, see if you have any updates automatically (plus half hour).
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.

User avatar
kmathern
Developer
Posts: 2502
Joined: Wed Jul 12, 2006 2:26 pm

Re: no MX23 system upgrade notifications on task bar unless "apt update" cmd is executed

#6 Post by kmathern »

An idea for the notifier, maybe add some extra info to the tooltip that will show when the updates were last checked.
(I probably went overboard and added too much info, but you get the idea)

Image

Code: Select all

$ diff -u <(wget -O- https://raw.githubusercontent.com/MX-Linux/apt-notifier/refs/heads/MX21/lib/modules/apt-notifier.py 2>/dev/null) /usr/lib/apt-notifier/modules/apt-notifier.py 
--- /dev/fd/63	2025-04-27 15:24:38.464300113 -0500
+++ /usr/lib/apt-notifier/modules/apt-notifier.py	2025-03-13 22:06:49.393984597 -0500
@@ -1748,20 +1748,27 @@
     ast.fix_fluxbox_autostart()
 
 def tooltip_msg(num):
+    cmd = "stat /var/lib/apt/periodic/update-stamp -c %z"
+    cmd = cmd.split()
+    run = subprocess.run(cmd, capture_output=True, universal_newlines=True)
+    update_stamp_timestamp = run.stdout.strip()
+    cmd = "stat /var/lib/apt/daily_lock -c %z"
+    cmd = cmd.split()
+    run = subprocess.run(cmd, capture_output=True, universal_newlines=True)
+    daily_lock_timestamp = run.stdout.strip()        
     num = int(num)
     if num == 0:
         # untranslated old non-plurals msg
         umsg = '0 updates available'
         tmsg = _(umsg)
-
         numsg = 'No updates available'
-        nmsg = _('No updates available')
+        nmsg = _('No updates available')# + "\n" + update_stamp_timestamp[0:16] + "  update-stamp" + "\n" + daily_lock_timestamp[0:16] + "  daily_lock"
     else:
         if num == 1:
             # untranslated old non-plurals msg
             umsg = '1 new update available'
             # translated old non-plurals msg
-            tmsg = _(umsg)
+            tmsg = _(umsg)# + "\n" + update_stamp_timestamp[0:16] + "  update-stamp" + "\n" + daily_lock_timestamp[0:16] + "  daily_lock"
         else:
             # untranslated old non-plurals msg
             umsg = '$count new updates available'
@@ -1799,6 +1806,7 @@
             # neither old non-plurals nor new plurals are translated
             # se we take the new plurals msg
             msg = nmsg
+    msg = msg  + "\n" + update_stamp_timestamp[0:16] + "  update-stamp" + "\n" + daily_lock_timestamp[0:16] + "  daily_lock"
     return msg

Post Reply

Return to “MX Help”