Software Updates broken

After some recent update, the Software Updates plasmoid (or whatever it’s called – the thing that runs runs from the task bar) no longer works. When packagekitd runs periodically, the following messages appear as two different popups in the notification section on the screen:

 Authorization failed You have failed to provide correct authentication. Please check any passwords or account settings.

The system logs show this:

systemd[1]: Starting PackageKit Daemon...
PackageKit[21372]: daemon start
dbus[1065]: [system] Successfully activated service 'org.freedesktop.PackageKit'
systemd[1]: Started PackageKit Daemon.
PackageKit[21372]: daemon quit
packagekitd[21372]: (packagekitd:21372): GLib-CRITICAL **: Source ID 6 was not found when attempting to remove it

I have not changed any repositories lately.

Executing zypper repos showed this:

$ zypper repos
#  | Alias                           | Name                        | Enabled | GPG Check | Refresh
---+---------------------------------+-----------------------------+---------+-----------+--------
 1 | Google                          | Google                      | Yes     | (r ) Yes  | Yes    
 2 | download.nvidia.com-leap        | nVidia Graphics Drivers     | Yes     | (r ) Yes  | Yes    
 3 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)   | Yes     | (r ) Yes  | Yes    
 4 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss) | Yes     | (r ) Yes  | Yes    
 5 | download.opensuse.org-oss       | Main Repository (OSS)       | Yes     | (r ) Yes  | Yes    
 6 | download.opensuse.org-oss_1     | Main Update Repository      | Yes     | (r ) Yes  | Yes    
 7 | ftp.gwdg.de-suse                | Packman Repository          | Yes     | (r ) Yes  | Yes    
 8 | google-chrome                   | google-chrome               | Yes     | (r ) Yes  | Yes    
 9 | linuxdownload.adobe.com-linux   | Adobe Flash Plugin          | Yes     | ( p) Yes  | Yes    
10 | opensuse-guide.org-repo         | Libdvdcss Repository        | Yes     | (r ) Yes  | Yes    
11 | repo-source                     | openSUSE-Leap-42.1-Source   | No      | ----      | Yes

Thinking this had something to do with #6, I deleted it, but I still see the same problem, and it still points to source ID 6 as the problem.

Best show more detail ie zypper lr -d that will so the URLs You need the update repo but need to be sure it is point to the right URL

try to update via zypper up

packagekit is the program that does the updates for the Update plasmoid. It is normal for it to start and stop when done or found an error

Have you rebooted since the last updates?

Authentication depends on “systemd”. Some updates restart “systemd”, and this can break communication with user software.

Yep im getting the same error. I have rebooted several times since previous updates.

http://imgur.com/5wwq1KQ

No idea why, it just randomly started happening a week or two ago. I can update via yast and I assume zypper works as well but the desktop app is broken.

Many many times. This has been going on for a couple of weeks. I reboot every day.

zypper lr -d                                                                                                                   
#  | Alias                           | Name                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                  | Service
---+---------------------------------+-----------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------------------+--------
 1 | Google                          | Google                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://dl.google.com/linux/rpm/stable/x86_64                        |        
 2 | Update                          | Update Repository (Oss)     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/oss/                   |        
 3 | download.nvidia.com-leap        | nVidia Graphics Drivers     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.nvidia.com/opensuse/leap/42.1                        |        
 4 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)   | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/    |        
 5 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss) | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.1/non-oss/               |        
 6 | download.opensuse.org-oss       | Main Repository (OSS)       | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.1/repo/oss/        |        
 7 | ftp.gwdg.de-suse                | Packman Repository          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/        |        
 8 | google-chrome                   | google-chrome               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/x86_64                  |        
 9 | linuxdownload.adobe.com-linux   | Adobe Flash Plugin          | Yes     | ( p) Yes  | Yes     |   99     | rpm-md | http://linuxdownload.adobe.com/linux/x86_64/                         |        
10 | opensuse-guide.org-repo         | Libdvdcss Repository        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_42.1/                   |        
11 | repo-source                     | openSUSE-Leap-42.1-Source   | No      | ----      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/42.1/repo/oss/ |

That’s exactly what I’m seeing.

The exact same issue is happening on my home server as well.

Yes I use a GUI to administrate my server, crucify me later :wink:

On 07/25/2016 08:56 PM, dilireus wrote:
>
> nrickert;2786497 Wrote:
>> Have you rebooted since the last updates?
>>
>> Authentication depends on “systemd”. Some updates restart “systemd”,
>> and this can break communication with user software.
>
> Many many times. This has been going on for a couple of weeks. I
> reboot every day.
>
>

I run “zypper ps” after every dup in TW and if any process is owned by
root, I reboot, if not I simply logout/login to refresh the processes.


Ken
linux since 1994
S.u.S.E./openSUSE since 1996

I’m getting the same issue. I could remove plasma5-pk-updates and use Yast to patch my system, but I hope this will be fixed soon.

Normally, I use Yast and zypper to update.

However, I have just turned the update applet back on (in system tray settings). And it is working fine for me.

Maybe check the output of:

grep systemd /etc/pam.d/*

I get 4 lines of output from that command (one of them is a comment line). If “grep” does not find anything, then that would be a problem.

Thanks I never knew I could turn off the app. The sound it makes when it fails to update is atrocious and gives me a shock. KDE really need to work on some more pleasing system sounds.

max@maxlaptop:~> grep systemd /etc/pam.d/*
/etc/pam.d/common-session:session       optional        pam_systemd.so
/etc/pam.d/common-session.pam-config-backup:session optional    pam_systemd.so
/etc/pam.d/common-session-pc:session    optional        pam_systemd.so
/etc/pam.d/systemd-user:# Used by systemd when launching systemd user instances.
max@maxlaptop:~> 

Thats my output from that command.

Okay. That’s the correct output. So the pam configuration is not the cause of the problem.

And, yes, you can turn off the updater. My normal practice is use Yast online update, followed by “zypper up”. I usually do this just before I reboot. Most updates can wait a day or two, until I’m ready to boot anyway.

Hmm. Another question.

Do you use auto-login? I’m wondering if maybe some process isn’t started when you do that. If you do use auto-login, then perhaps a good test would be to logout (but do not reboot), and then login again to see if updates now work.

Yes I use auto login. I tried logging out manually then logging in again but updates still give me the same error unfortunately.

Thanks for trying that. Unfortunately, that leaves this problem as still a mystery.

The same output here and I do not use auto-login.

pc1:/home/amadrits # grep systemd /etc/pam.d/*
/etc/pam.d/common-session:session       optional        pam_systemd.so
/etc/pam.d/common-session.pam-config-backup:session optional    pam_systemd.so
/etc/pam.d/common-session-pc:session    optional        pam_systemd.so
/etc/pam.d/systemd-user:# Used by systemd when launching systemd user instances.
pc1:/home/amadrits # 

I do not use auto-login, so at least with me this isn’t the problem.

I’m having exactly the same problem, but with an added twist. After the error, if I go into Yast’s online update, it starts normally, shows the package manager loading, and shows the repositories being downloaded and refreshed. When the actual app opens and I go to the Package Groups tabs and look at All Packages, it shows that the filesystem, glibc, glibc-extra, libpcre1 and libselinux1 are going to be auto-installed with glibc, glibc-extra and libselinux repeated several times in the list. It also shows that the system has no other packages installed. If I close it and restart, it starts normally again, but this time, the installed package list is correct and there are no odd autoupdates. So it appears that software updates is corrupting the installed package list or something else when it tries to start. This is repeatable - if software update runs, Yast’s online updates opens incorrectly every time afterward.

Hope this is a clue to what’s going on.

Hm, I never saw anything like that.

And it’s even more strange anyway:
If PackageKit would somehow block the package management, YaST should not even start but give an error message.
If PackageKit would corrupt something, it would continue to stay corrupted, and YaST shouldn’t work correctly ever after.

To the others:
check that the package “polkit-kde-authentication-agent-5” is installed, and the process is running.
Either with the system monitor (Ctrl+ESC) or:

ps ux|grep polkit

(run as user)

Also, do you have other polkit related problems, like mounting an external USB drive/stick or problems with sound?