Update manager accidentally broke

Hello. Few weeks ago I can’t update with a default update manager

The task was forcibly canceled The task was canceled successfully and no packages were changed.
The backend did not exit cleanly.

But I can do it via YaST. So, it’s a minor problem but I’d like to know how to configure it or maybe it’s better to remove.

Likely because you switched the security level to “secure” according to https://forums.opensuse.org/showthread.php/525344-reboot-shutdown-with-root?p=2826364#post2826364 .

This in turn means that users cannot install updates any more, only root.
(YaST is running as root, you have to enter the root password to start it)

Nope. I returned but there is the same message. It’s started before my security changing.

grep SECURITY /etc/sysconfig/security
PERMISSION_**SECURITY**="easy local"
# PERMISSION_**SECURITY**. If PERMISSION_**SECURITY** contains 'secure' or

Ok, the message rather indicates that PackageKit is crashing for some reason.

Does running “pkcon update” in a shell work? If not, what error message do you get?

It was since the OS installed.
*
Hm, I try to set “workstation” secure predefined settings but it returns to “user settings” after closing. Maybe it’s an actual application behaviour but it’s not good UX.

The icon is worked. I can click “check for updates” button. After that I get an error message that I quoted before.

Yes, of course.
YaST Software Management can only be run as root.
So it has the privileges to install software, regardless of your security settings.

That’s the point I was trying to make.

The icon is worked. I can click “check for updates” button. After that I get an error message that I quoted before.

No.
Run “pkcon update” in a terminal window (Konsole e.g.) and see whether that works, or whether you get an error message.

Freezes on this

Getting updates        ] 0%

Strange.
And you say YaST works?

Well, try to delete PackageKit’s cache then:

sudo rm /var/lib/PackageKit/system.package-list

and try again.

What also may help is to clean zypper’s cache and/or rebuild the RPM database.

sudo zypper clean -a
sudo rpm --rebuilddb

Though I would suspect problems with YaST too if the issue is there.

sudo rm /var/lib/PackageKit/system.package-list

no such file or dir.


sudo zypper clean -a
sudo rpm --rebuilddb
  1. all repos are clean
  2. didn’t helps

Sorry, no idea then I’m afraid.

Are you behind a proxy maybe?

Did packagekitd crash?
“sudo coredumpctl” should show.

no crash, no proxy.

TIME                            PID   UID   GID SIG PRESENT EXE
Вс 2017-05-21 22:57:33 MSK    240     0     0  11   /usr/sbin/plymouthd
Пн 2017-05-22 01:27:33 MSK    240     0     0  11   /usr/sbin/plymouthd
Пн 2017-05-22 01:53:21 MSK  20368   481   479   6   /usr/bin/sddm-greeter
Пн 2017-05-22 01:55:17 MSK    225     0     0  11   /usr/sbin/plymouthd
Пн 2017-05-22 02:28:34 MSK    235     0     0  11   /usr/sbin/plymouthd

...
lines 463-496/496 (END)


I think I’ll wait for Leap 42.3 and will try to watch it dependencies/update all packages by default patterns

UPD: I made a big update now (after a week of forgetting it) and update manager now shows updates but after I trying to apply - backend error again

The task was forcibly canceled The task was canceled successfully and no packages were changed.

The backend did not exit cleanly.

pkcon update 

seems to work now after reboot but very weird. The packages are not showed in Yast and I can use it multiple times with the same effect and can write inside of console

psijic@linux-l3fr:~> pkcon updateПолучение обновлений=========================]         
Завершено            =========================]         
Обновление списка ПО=========================]         
Проверка изменений=========================]         
Завершено            =========================]         
Обновление пакетов=========================]         
Начало                  =========================]         
Разрешение зависимостей=========================]         
Установка обновлений=========================]         cal UI and library functionality
Загрузка пакетов                         ] (0%)  **Аварийное завершение фоновой службы во время операции! ***(Abnormal termination of the background service during the operation!)*
psijic@linux-l3fr:~> a-59.0.3071.104-1.1.x86_64 Extra ffmpeg codecs for browsers based on Chromium
 flash-player-ppapi-26.0.0.126-1.1.x86_64       Adobe Flash PPAPI Plugin
 gstreamer-plugins-bad-lang-1.8.3-5.5.5.noarch  Languages for package gstreamer-plugins-bad
 gstreamer-plugins-libav-1.8.3-3.1.x86_64       A ffmpeg/libav plugin for GStreamer
 libaudcore4-3.8.2-4.1.x86_64   Main functionality library of Audacious
 libaudgui4-3.8.2-4.1.x86_64    GTK GUI implementation of Audacious
 libaudqt1-3.8.2-4.1.x86_64     QT GUI implementation of Audacious
 libaudtag3-3.8.2-4.1.x86_64    ID3 and APE metadata support for Audacious
 libtwolame0-0.3.13-3.1.x86_64  Shared libraries for TwoLame
 youtube-dl-2017.06.25-1.1.noarch       A tool for downloading from Youtube
Продолжать с изменениями? [N/y] y



After few times it get crash and now freezes at 0% again. GUI is clean now again (Your system is up to date)

Dunno, mb it’s about Python/kernel/glibc/yast update

Wow, I just updated with GUI without any problem. If somebody want to know…

I would like to know how you solved this since i keep having the same issue over and over again.
If i reboot the plasma widget works well but over time it stops working.

I think it’s about to update some packages. I don’t make any actions especially to fix it. Maybe earlier I change some dependencies or install broken packages etc. I think it’s about python or somesing else, don’t know…

Well, there is a bug report about PackageKit crashes here:
https://bugzilla.opensuse.org/show_bug.cgi?id=981011

You may have been affected by this.

AFAIK the crashes don’t happen reliably, but only under certain circumstances.
So it may be/have been a matter of (bad) luck…