MX Updater icon disappears

Report Bugs, Issues and non- package Requests
Message
Author
Olle Lindgren
Posts: 9
Joined: Sun Jan 22, 2023 4:24 am

MX Updater icon disappears

#1 Post by Olle Lindgren »

In MX Linux 21, I have not managed to get MX Updater to work correctly.
The icon stops showing on the panel when there are updates.
I select MX Updater from the main menu with no result.

I have tried the following in the terminal:
olle@mx-EliteDesk:~
$ /usr/bin/apt-notifier-unhide-Icon
olle@mx-EliteDesk:~
$ Traceback (most recent call last):
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1993, in <module>
main()
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1978, in main
check_updates()
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 570, in check_updates
AptIcon.setToolTip(tooltip_msg(AvailableUpdates))
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1792, in tooltip_msg
nmsg = nmsg.format(num=num)
KeyError: 'en'

Could this possibly have to do with language settings?
My locale is sv_SE.UTF-8

Workaround: I use Package Update Indicator instead.

system info:

Code: Select all

System:    Kernel: 5.10.0-18-amd64 [5.10.140-1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-18-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.18.0 tk: Gtk 3.24.24 info: xfce4-panel, plank wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower October 20  2021 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: Hewlett-Packard product: HP EliteDesk 800 G1 USDT v: N/A 
           serial: <filter> Chassis: type: 3 serial: <filter> 
           Mobo: Hewlett-Packard model: 18E5 serial: <filter> UEFI: Hewlett-Packard v: L01 v02.65 
           date: 07/13/2015 
CPU:       Info: Dual Core model: Intel Core i3-4160 bits: 64 type: MT MCP arch: Haswell family: 6 
           model-id: 3C (60) stepping: 3 microcode: 28 cache: L2: 3 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 28732 
           Speed: 1528 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 1528 2: 1479 3: 1419 
           4: 1581 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
           Type: l1tf mitigation: PTE Inversion 
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
           Type: meltdown mitigation: PTI 
           Type: mmio_stale_data status: Unknown: No mitigations 
           Type: retbleed 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: Retpolines, IBPB: conditional, IBRS_FW, STIBP: 
           conditional, RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel 4th Generation Core Processor Family Integrated Graphics 
           vendor: Hewlett-Packard driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:041e 
           class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 3840x1200 s-dpi: 96 s-size: 1016x317mm (40.0x12.5") 
           s-diag: 1064mm (41.9") 
           Monitor-1: DP-1 res: 1920x1200 hz: 60 dpi: 94 size: 518x324mm (20.4x12.8") 
           diag: 611mm (24.1") 
           Monitor-2: DP-2 res: 1920x1200 hz: 60 dpi: 94 size: 518x324mm (20.4x12.8") 
           diag: 611mm (24.1") 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) v: 4.5 Mesa 20.3.5 
           compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Hewlett-Packard 
           driver: snd_hda_intel v: kernel bus-ID: 00:03.0 chip-ID: 8086:0c0c class-ID: 0403 
           Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Hewlett-Packard 
           driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20 class-ID: 0403 
           Sound Server-1: ALSA v: k5.10.0-18-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
           Sound Server-3: PipeWire v: 0.3.19 running: no 
Network:   Device-1: Intel Ethernet I217-LM vendor: Hewlett-Packard driver: e1000e v: kernel 
           port: f080 bus-ID: 00:19.0 chip-ID: 8086:153a class-ID: 0200 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 931.53 GiB used: 61.91 GiB (6.6%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST500LM021-1KJ152 size: 465.76 GiB 
           block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 
           serial: <filter> rev: YXM1 scheme: GPT 
           ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Seagate model: ST9250315AS 
           size: 232.89 GiB block-size: physical: 512 B logical: 512 B type: HDD rpm: 5400 
           serial: <filter> rev: 0148 scheme: MBR 
           ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Seagate model: ST9250315AS 
           size: 232.89 GiB block-size: physical: 512 B logical: 512 B type: HDD rpm: 5400 
           serial: <filter> rev: 0130 scheme: MBR 
Partition: ID-1: / raw-size: 98.52 GiB size: 96.41 GiB (97.86%) used: 61.87 GiB (64.2%) fs: ext4 
           dev: /dev/sda5 maj-min: 8:5 
           ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 35.7 MiB (37.2%) fs: vfat 
           dev: /dev/sda1 maj-min: 8:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 1.95 GiB used: 2.3 MiB (0.1%) priority: -2 
           dev: /dev/sda7 maj-min: 8:7 
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 2316 lib: 1168 flatpak: 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 [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bullseye 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] https://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/home:jstaf.list 
           1: deb http://download.opensuse.org/repositories/home:/jstaf/Debian_11/ /
           Active apt repos in: /etc/apt/sources.list.d/insync.list 
           1: deb http://apt.insync.io/debian bullseye non-free contrib
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.acc.umu.se/mirror/mxlinux.org/packages/mx/repo/ bullseye main non-free
           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/teamviewer.list 
           1: deb http://linux.teamviewer.com/deb stable main
Info:      Processes: 249 Uptime: 2h 36m wakeups: 1 Memory: 3.73 GiB used: 2.21 GiB (59.2%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI
Best regards
Olle

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

Re: MX Updater icon disappears

#2 Post by fehlix »

Olle Lindgren wrote: Sun Jan 22, 2023 4:56 am In MX Linux 21, I have not managed to get MX Updater to work correctly.
The icon stops showing on the panel when there are updates.
I select MX Updater from the main menu with no result.

I have tried the following in the terminal:
olle@mx-EliteDesk:~
$ /usr/bin/apt-notifier-unhide-Icon
olle@mx-EliteDesk:~
$ Traceback (most recent call last):
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1993, in <module>
main()
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1978, in main
check_updates()
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 570, in check_updates
AptIcon.setToolTip(tooltip_msg(AvailableUpdates))
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1792, in tooltip_msg
nmsg = nmsg.format(num=num)
KeyError: 'en'

Could this possibly have to do with language settings?
My locale is sv_SE.UTF-8
Yes, you seem to have not set properly your locale,
or at least something like the compiled locale archive have been removed.
Please do this:
Open "System Locale" in MX Tools:
sv_SE_locale.jpg
and select from the long list preferred locale sv_SE.UTF-8.
Click Next to choose you System locale:
sv_SE_default_locale.jpg
This should compile the missing locale archive for sv_SE-UTF-8,
which triggered the error you have seen.
You do not have the required permissions to view the files attached to this post.

Olle Lindgren
Posts: 9
Joined: Sun Jan 22, 2023 4:24 am

Re: MX Updater icon disappears

#3 Post by Olle Lindgren »

Thanks for your quick response!

I have set the locale to sv_SE.UTF-8 per your instructions.
Then restarted the computer.
Unfortunately, the problem persists.

/OLLE

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

Re: MX Updater icon disappears

#4 Post by fehlix »

Olle Lindgren wrote: Sun Jan 22, 2023 2:02 pm Thanks for your quick response!

I have set the locale to sv_SE.UTF-8 per your instructions.
Then restarted the computer.
Unfortunately, the problem persists.

/OLLE
Please post the text output of these 2 commands,
running within terminal as normal user:

Code: Select all

cat /etc/default/locale
and

Code: Select all

locale 
thanks

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

Re: MX Updater icon disappears

#5 Post by fehlix »

Olle Lindgren wrote: Sun Jan 22, 2023 4:56 am In MX Linux 21, I have not managed to get MX Updater to work correctly.
The icon stops showing on the panel when there are updates.
I select MX Updater from the main menu with no result.

I have tried the following in the terminal:
olle@mx-EliteDesk:~
$ /usr/bin/apt-notifier-unhide-Icon
olle@mx-EliteDesk:~
$ Traceback (most recent call last):
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1993, in <module>
main()
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1978, in main
check_updates()
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 570, in check_updates
AptIcon.setToolTip(tooltip_msg(AvailableUpdates))
File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1792, in tooltip_msg
nmsg = nmsg.format(num=num)
KeyError: 'en'

Could this possibly have to do with language settings?
My locale is sv_SE.UTF-8
OK, I found the cause of this error shown. A new version of apt-notifier will be shortly available within the repos.
Either use synaptic to upgrade or the CLI-terminal command line:

Code: Select all

sudo apt update
sudo apt full-upgrade

Olle Lindgren
Posts: 9
Joined: Sun Jan 22, 2023 4:24 am

Re: MX Updater icon disappears

#6 Post by Olle Lindgren »

FYI

olle@mx-EliteDesk:~
$ cat /etc/default/locale
# File generated by update-locale
LANG=sv_SE.UTF-8
olle@mx-EliteDesk:~
$ locale
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=
olle@mx-EliteDesk:~

/OLLE

Olle Lindgren
Posts: 9
Joined: Sun Jan 22, 2023 4:24 am

Re: MX Updater icon disappears

#7 Post by Olle Lindgren »

OK, I found the cause of this error shown. A new version of apt-notifier will be shortly available within the repos.
Either use synaptic to upgrade or the CLI-terminal command line:

Code: Select all

sudo apt update
sudo apt full-upgrade
Installed and testing!

/olle

Olle Lindgren
Posts: 9
Joined: Sun Jan 22, 2023 4:24 am

Re: MX Updater icon disappears

#8 Post by Olle Lindgren »

MX updater is now working and displays the icon as intended.
So the problem with the icon not showing is fixed.
Thank you!

However, there is another (cosmetic) issue:
The Swedish phrases shown in the tooltip and notification have been mixed up.
"1 new update available" in Swedish is "1 ny uppdatering tillgänglig"
"2 new updates available" is "2 nya uppdateringar tillgängliga"
So they should be switched.

/OLLE

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

Re: MX Updater icon disappears

#9 Post by fehlix »

Olle Lindgren wrote: Sun Jan 29, 2023 3:06 pm MX updater is now working and displays the icon as intended.
So the problem with the icon not showing is fixed.
Thank you!

However, there is another (cosmetic) issue:
The Swedish phrases shown in the tooltip and notification have been mixed up.
"1 new update available" in Swedish is "1 ny uppdatering tillgänglig"
"2 new updates available" is "2 nya uppdateringar tillgängliga"
So they should be switched.

/OLLE
Just checked the translations with the translations files on the CLI this way:
For Swedish:

Code: Select all

grep -A3 -F '"{num} new update available"' < <(msgunfmt /usr/share/locale/sv/LC_MESSAGES/apt-notifier.mo)
msgid "{num} new update available"
msgid_plural "{num} new updates available"
msgstr[0] "{num} nya uppdateringar tillgängliga"
msgstr[1] "{num} ny uppdatering tillgänglig"
and for some other languages:
French:

Code: Select all

grep -A3 -F '"{num} new update available"' < <(msgunfmt /usr/share/locale/fr/LC_MESSAGES/apt-notifier.mo)
msgid "{num} new update available"
msgid_plural "{num} new updates available"
msgstr[0] "{num} nouvelle mise à jour disponible"
msgstr[1] "{num} nouvelles mises à jour disponibles"
Spanish:

Code: Select all

grep -A3 -F '"{num} new update available"' < <(msgunfmt /usr/share/locale/es/LC_MESSAGES/apt-notifier.mo)
msgid "{num} new update available"
msgid_plural "{num} new updates available"
msgstr[0] "{num} actualización disponible"
msgstr[1] "{num} nuevas actualizaciones disponibles"
German:

Code: Select all

grep -A3 -F '"{num} new update available"' < <(msgunfmt /usr/share/locale/de/LC_MESSAGES/apt-notifier.mo)
msgid "{num} new update available"
msgid_plural "{num} new updates available"
msgstr[0] "{num} neue Aktualisierung verfügbar"
msgstr[1] "{num} neue Aktualisierungen verfügbar"
So apparently, that's an issue within the translations for Swedish made on Transifex.
Thanks, will be fixed a.s.a.p.

Olle Lindgren
Posts: 9
Joined: Sun Jan 22, 2023 4:24 am

Re: MX Updater icon disappears

#10 Post by Olle Lindgren »

Now the Swedish translation is fixed so everything works as expected.
The Swedish plural forms are now correct.
You can mark this issue as solved.

Thank you!

/OLLE

Post Reply

Return to “Bugs and Non-Package Requests Forum”