Since around beginning of July gnome-software is showing this annoying “Failed to Update” message after each login (for any user account).
This is the information that I get if I click on details:
Failed To Update
Detailed errors from the package manager follow:
Download (curl) error for 'http://download.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org
Which does not make sense, as network as well as lookups are working.
Tried this via wifi (connection made available to all other users; connection icon showing that connection is established also in logon screen) and cable.
Version gnome-software: 3.36.1-3.1
Version packagekit: 1.1.13-7.1
Tumbleweed version: 20200817
The only thing that I remember is that around that time I was checking the option to automatically install software in Gnome’s Restart dialogue. Maybe this was the action that caused this behaviour?
Tried to delete gnome-software’s cache under $HOME/.cache/gnome-software. Still same issue.
Is there any way to further investigate in this issue?
Of course I am not using this GUI for the update. Zypper dup is my friend.
The good thing about my issue is that I don’t have to wait for gnome-software (or packagkit) to finish the synchronization after logon.
Absolutely no issue to access the file:
linux-ls9h:~> curl http://download.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml | wc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9323 100 9323 0 0 115k 0 --:--:-- --:--:-- --:--:-- 115k
162 245 9323
But this is after login. I thought that maybe during the login phase there was a network “reset” that is causing the error message.
Or something got stuck with gnome-software that could be resolved by resetting things.
But where to start?
Hi
So can you check the packagekit services are running, I remove packagekit and it’s friends and lock… the two that remain are PackageKit-gtk3-module and gnome-packagekit.
Continuing with packagekit, I see that the error message displayed in gnome-software comes from there.
linux-ls9h:~ # pkcon offline-status
Status: Failed
ErrorCode:failed-initialization
ErrorDetails:Download (curl) error for 'http://download.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org
Besides uninstalling packagekit, is there a way to reset it (configuration plus local/cached files)? I can’t git rid of the thought that all this behaviour has been caused by me clicking on reboot plus selecting “Install updates and restart” in Gnome (maybe the system thinks that it wants to install updates after reboot, but there are none;, as I use zypper only but this is just a guess).
/var/lib/PackageKit has a file offline-update-competed which has the exact content of the error message.
Was renaming that file, now the issue is gone.
Looks like this file got stuck after an update.
@malcolmlewis: absolutely agree with you. Do not use any GUI tools on TW. I did.
I ran a zypper dup.
Afterwards, zypper was recommending to reboot the system.
That’s what I did.
On Gnome you would hit the Window key, then type reboot, Gnome shell will then suggest the “Power off” app. I pressed enter and chose Restart.
But on that one single occasion, this Power off app had an checkmark option to reboot and install. Never thought that this could have such an impact (especially having run zypper dup just before)
BTW, for firmware updates (e.g. Logitech BT mouse/keyboard dongle) you need to rely on gnome-software, as zypper did not notify me of a firmware update, whereas gnomre-software did.