Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty Error Messages #657

Closed
1 of 3 tasks
ThomTrab opened this issue Jan 20, 2021 · 9 comments
Closed
1 of 3 tasks

Empty Error Messages #657

ThomTrab opened this issue Jan 20, 2021 · 9 comments
Labels

Comments

@ThomTrab
Copy link

Describe the bug
When I click the Refresh button to update the package's list, I got 2 errors messages, one after the other when clicking Close. I'm not able to get ride of them. Neither of them give me useful clue to address the situation.
These messages doesn't prevent the package list to be updated and are not present when using apt update from cli

Screenshots
First error message
Capture d’écran du 2021-01-20 18-41-52

Second error message
Capture d’écran du 2021-01-20 18-42-03

To Reproduce
Steps to reproduce the behavior:

  1. Click on the Refresh button
  2. See first error message
  3. Click Close
  4. See second error message

Expected behavior
No error messages on Refresh button click

Distribution:

  • Linux Mint
  • LMDE
  • Other (please specify)

Software version:
See Help > About in Update Manager.

Logs:
Copy & paste the log output from Update Manager > View > Information here.

Additional context
Before the issue appeared, I modified the /etc/apt/preferences file and finally remove it because it wasn't needed anymore

Thank you for your assistance

@ThomTrab ThomTrab added the BUG label Jan 20, 2021
@Hordeking
Copy link

This bug exists in mint 5.7.3 english, as well. It only recently started for me, so I assume that's when this version was rolled out. No error is shown when I run it from a terminal, and no issues are obviously present when I use either Synaptic or apt update.
Untitled

I don't think the issue is with Synaptic, despite the modal window having it for a title.

@mockey
Copy link

mockey commented Apr 21, 2021

I see exactly the same bug for quite some time now. Version 5.7.3 here as well.
sudo apt update runs without errors and Reload in Synaptic works as well.
Is there any workaround? Because it seems that no updates are fetched by the Update Manager after this error occurs.

@Lefuneste83
Copy link

Lefuneste83 commented Dec 6, 2021

Same extremely annoying issue here for the last 2 days on a freshly upgraded LM 20.2

-I Checked validity of all source files against a working server with same level of LM
-I removed all PPA and additional repos
-I purged then reinstalled mintupdate
-I checked various logs, very little is available for forensics

Exact same symptoms :
Empty message window first, then second with same messages as above. apt update and apt upgrade both run flawlessly.

I have managed to trace the script causing the problem from /var/log/auth.log :
/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh

Bug cinematic as it is logged :

Dec 6 20:07:23 plakias sudo: user : TTY=unknown ; PWD=/home/user ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
Dec 6 20:07:23 plakias sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Dec 6 20:07:23 plakias sudo: pam_unix(sudo:session): session closed for user root
Dec 6 20:07:23 plakias sudo: user : TTY=unknown ; PWD=/home/user ; USER=root ; COMMAND=/usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
Dec 6 20:07:23 plakias sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Dec 6 20:07:24 plakias sudo: pam_unix(sudo:session): session closed for user root
Dec 6 20:07:24 plakias sudo: user : TTY=unknown ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/mint-refresh-cache --use-synaptic 62914568
Dec 6 20:07:24 plakias sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Dec 6 20:07:32 plakias sudo: pam_unix(sudo:session): session closed for user root

Content of the script is :
#!/bin/sh
/bin/fuser /var/lib/dpkg/lock

lock file is present and empty on both systems (Mintupdate OK and KO)

On KO system running /bin/fuser /var/lib/dpkg/lock give nothing

On OK system running /bin/fuser /var/lib/dpkg/lock gives an error message :
Impossible to get stat of file /proc/6127/fd/1023 : Permission not granted

On both systems no other process is updating

@Lefuneste83
Copy link

Ok I've found the solution to this crazy problem

sudo mv /var/lib/synaptic/preferences /var/lib/synaptic/preferences.ORIG

from here : #627

@mockey
Copy link

mockey commented Dec 7, 2021

Amazing! Thanks a lot!

@ThomTrab
Copy link
Author

ThomTrab commented Dec 9, 2021

Thanks a lot!

@ThomTrab ThomTrab closed this as completed Dec 9, 2021
@Hordeking
Copy link

Hordeking commented Dec 9, 2021

@ThomTrab Before we close it, can we actually see if one of us or the devs wants to implement a code fix for mintupdate? I suspect (but don't know) that the empty prefs file doesn't actually cause a problem for synaptic, since I was using apt and synaptic in parallel, but only had trouble with mintupdate.

This bug actually needs to be combined with #627 since it's the same bug.

@hamishmb
Copy link

hamishmb commented Dec 9, 2021

Yep, this shouldn't be closed, because it isn't fixed. This seems to be happening during the automated upgrade between releases for a lot of people. For me it happened after pinning and unpinning a package in Synaptic.

@clefebvre clefebvre reopened this Dec 9, 2021
@clefebvre
Copy link
Member

Duplicate of #627

@clefebvre clefebvre marked this as a duplicate of #627 Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants