Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: gnome-software "Failed To Update" message after each logon

  1. #1

    Default gnome-software "Failed To Update" message after each logon

    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:

    Code:
    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

    Code:
    linux-ls9h:~ # zypper lr --uri 
    Repository priorities in effect:                                                        (See 'zypper lr -P' for details) 
          90 (raised priority)  :  1 repository 
          99 (default priority) :  3 repositories 
     
    # | Alias                            | Name                       | Enabled | GPG Check | Refresh | URI 
    --+----------------------------------+----------------------------+---------+-----------+---------+------------------------------------------------------------------------------ 
    1 | download.opensuse.org-non-oss    | Main Repository (NON-OSS)  | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss/ 
    2 | download.opensuse.org-oss        | Main Repository (OSS)      | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/tumbleweed/repo/oss/ 
    3 | download.opensuse.org-tumbleweed | Main Update Repository     | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/tumbleweed/ 
    4 | openSUSE-20191016-0              | openSUSE-20191016-0        | No      | ----      | ----    | http://download.opensuse.org/tumbleweed/repo/oss/ 
    5 | packman-essentials               | packman-essentials         | Yes     | (r ) Yes  | Yes     | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials 
    6 | repo-debug                       | openSUSE-Tumbleweed-Debug  | No      | ----      | ----    | http://download.opensuse.org/debug/tumbleweed/repo/oss/ 
    7 | repo-source                      | openSUSE-Tumbleweed-Source | No      | ----      | ----    | http://download.opensuse.org/source/tumbleweed/repo/oss/
    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?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,658
    Blog Entries
    15

    Default Re: gnome-software "Failed To Update" message after each logon

    Hi and welcome to the Forum
    Not sure, maybe a transient mirror issue from your locale, works fine here, can you see the file if you browse to it?

    Hopefully your not using this GUI for updates, Tumbleweed should only be updated via the command line and zypper dup?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: gnome-software "Failed To Update" message after each logon

    Thanks for the welcome, really enjoying openSUSE :-)

    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:
    Code:
    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?

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,658
    Blog Entries
    15

    Default Re: gnome-software "Failed To Update" message after each logon

    Quote Originally Posted by KWizzz View Post
    Thanks for the welcome, really enjoying openSUSE :-)

    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:
    Code:
    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.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5

    Default Re: gnome-software "Failed To Update" message after each logon

    Here's my installed packages related to packagekit:

    Code:
    linux-ls9h:~ # zypper search --installed-only --details packagekit 
    Loading repository data... 
    Reading installed packages... 
     
    S | Name                           | Type    | Version    | Arch   | Repository 
    --+--------------------------------+---------+------------+--------+---------------------- 
    i | PackageKit                     | package | 1.1.13-7.1 | x86_64 | Main Repository (OSS) 
    i | PackageKit-backend-zypp        | package | 1.1.13-7.1 | x86_64 | Main Repository (OSS) 
    i | PackageKit-branding-openSUSE   | package | 42.1-2.11  | noarch | Main Repository (OSS) 
    i | PackageKit-gstreamer-plugin    | package | 1.1.13-7.1 | x86_64 | Main Repository (OSS) 
    i | PackageKit-gtk3-module         | package | 1.1.13-7.1 | x86_64 | Main Repository (OSS) 
    i | PackageKit-lang                | package | 1.1.13-7.1 | noarch | Main Repository (OSS) 
    i | gnome-packagekit               | package | 3.32.0-3.3 | x86_64 | Main Repository (OSS) 
    i | gnome-packagekit-lang          | package | 3.32.0-3.3 | noarch | Main Repository (OSS) 
    i | libpackagekit-glib2-18         | package | 1.1.13-7.1 | x86_64 | Main Repository (OSS) 
    i | typelib-1_0-PackageKitGlib-1_0 | package | 1.1.13-7.1 | x86_64 | Main Repository (OSS)

    But this is looking interesting:

    Code:
    linux-ls9h:~ # systemctl status packagekit 
    ● packagekit.service - PackageKit Daemon 
         Loaded: loaded (/usr/lib/systemd/system/packagekit.service; static; vendor preset: disabled) 
         Active: inactive (dead) 
     
    Aug 19 20:16:48 linux-ls9h systemd[1]: Starting PackageKit Daemon... 
    Aug 19 20:16:48 linux-ls9h PackageKit[8396]: daemon start 
    Aug 19 20:16:48 linux-ls9h systemd[1]: Started PackageKit Daemon. 
    Aug 19 20:17:08 linux-ls9h PackageKit[8396]: daemon quit 
    Aug 19 20:17:08 linux-ls9h systemd[1]: packagekit.service: Succeeded. 
    Aug 19 21:08:54 linux-ls9h systemd[1]: Starting PackageKit Daemon... 
    Aug 19 21:08:54 linux-ls9h PackageKit[9643]: daemon start 
    Aug 19 21:08:54 linux-ls9h systemd[1]: Started PackageKit Daemon. 
    Aug 19 21:09:15 linux-ls9h PackageKit[9643]: daemon quit 
    Aug 19 21:09:15 linux-ls9h systemd[1]: packagekit.service: Succeeded.
    Packagekit is dead? This is what's happening if I start gnome-software and ask it to look for new software:

    Code:
    linux-ls9h:~ # systemctl status packagekit 
    ● packagekit.service - PackageKit Daemon 
         Loaded: loaded (/usr/lib/systemd/system/packagekit.service; static; vendor preset: disabled) 
         Active: active (running) since Wed 2020-08-19 21:32:55 CEST; 20s ago 
       Main PID: 11360 (packagekitd) 
          Tasks: 4 (limit: 4915) 
         Memory: 120.7M 
         CGroup: /system.slice/packagekit.service 
                 ├─11360 /usr/lib/packagekitd 
                 └─11382 gpg-agent --homedir /var/tmp/zypp.aCxR9d/zypp-trusted-krPSHJnc --use-standard-socket --daemon 
     
    Aug 19 21:32:55 linux-ls9h systemd[1]: Starting PackageKit Daemon... 
    Aug 19 21:32:55 linux-ls9h PackageKit[11360]: daemon start 
    Aug 19 21:32:55 linux-ls9h systemd[1]: Started PackageKit Daemon. 
    Aug 19 21:32:55 linux-ls9h PackageKit[11360]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0) 
    Aug 19 21:32:55 linux-ls9h PackageKit[11360]: uid 1000 obtained auth for org.freedesktop.packagekit.system-sources-refresh 
    Aug 19 21:32:56 linux-ls9h PackageKit[11360]: refresh-cache transaction /1_ddeebaca from uid 1000 finished with success after 1762ms 
    Aug 19 21:33:02 linux-ls9h PackageKit[11360]: get-updates transaction /2_bdeeaccd from uid 1000 finished with success after 3957ms
    This status remains also after quitting gnome-software.

  6. #6
    Join Date
    Sep 2012
    Posts
    5,905

    Default Re: gnome-software "Failed To Update" message after each logon

    Quote Originally Posted by KWizzz View Post
    Packagekit is dead?
    It is started on demand and exits when there is nothing to do.

  7. #7

    Default Re: gnome-software "Failed To Update" message after each logon

    I have the same issue! Fresh install of Tumbleweed with GNOME 2 days ago.

  8. #8

    Default Re: gnome-software "Failed To Update" message after each logon

    Continuing with packagekit, I see that the error message displayed in gnome-software comes from there.

    Code:
    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).

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,658
    Blog Entries
    15

    Default Re: gnome-software "Failed To Update" message after each logon

    Quote Originally Posted by KWizzz View Post
    Continuing with packagekit, I see that the error message displayed in gnome-software comes from there.

    Code:
    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).
    Hi
    Don't use any GUI tools to perform updates, the only supported way to move to the next Tumbleweed snapshot is via the command line and zypper dup.

    Check down in ~/.cache and ~/.config for packagekit and gnome-software for files, I use neither...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  10. #10

    Default Re: gnome-software "Failed To Update" message after each logon

    Think I found the issue.

    `/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.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •