apt-notifier does not work

Report Bugs, Issues and non- package Requests
Message
Author
joseph.vidal-rosset
Posts: 6
Joined: Fri Sep 03, 2021 2:42 am

apt-notifier does not work

#1 Post 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.

User avatar
Eadwine Rose
Administrator
Posts: 15089
Joined: Wed Jul 12, 2006 2:10 am

Re: apt-notifier does not work

#2 Post by Eadwine Rose »

Please post your Quick System Info using Copy for forum, thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-38amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

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

Re: apt-notifier does not work

#3 Post 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

Post Reply

Return to “Bugs and Non-Package Requests Forum”