Page 1 of 1

apt-notifier does not work

Posted: Thu Oct 26, 2023 3:44 am
by joseph.vidal-rosset
Hello,
For a while, I noticed that apt-nofifier does not work in MX-23. Here is the reply that I get with apt-notifier command:

Code: Select all

 File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 245, in set_globals
    try: xlate
         ^^^^^
NameError: name 'xlate' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/apt-notifier/modules/aptnotifier_xlate.py", line 26, in __init__
    try: conf
         ^^^^
NameError: name 'conf' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 2009, in <module>
    main()
  File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 1954, in main
    set_globals()
  File "/usr/lib/apt-notifier/modules/apt-notifier.py", line 248, in set_globals
    xlate = AptNotifierXlate()
            ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/apt-notifier/modules/aptnotifier_xlate.py", line 29, in __init__
    conf = AptNotifierConfig()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/apt-notifier/modules/aptnotifier_config.py", line 38, in __init__
    home = pwd.getpwuid(int(logid))[5]
                        ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
I replaced the file with this one: https://github.com/MX-Linux/apt-notifie ... otifier.py
the only error I got is this one:

Code: Select all

/usr/share/themes/Greybird-dark-mx/gtk-2.0/apps/xfce-panel.rc:7: error: unexpected keyword 'bg', expected string constant
[sudo] Mot de passe de joseph : 
the apt-notifier icon appeared on the panel, but I still need to upgrade in a terminal, it does not work only with the mouse, like before.

All the best,
Jo.

Re: apt-notifier does not work

Posted: Thu Oct 26, 2023 4:25 am
by Eadwine Rose
Please post your Quick System Info using Copy for forum, thanks.

Re: apt-notifier does not work

Posted: Thu Oct 26, 2023 7:49 am
by fehlix
Yes, please first post Quick System Info, as mentioned.
Next please post the text output of this command:

Code: Select all

apt policy apt-notifier
Thanks