Zypper is blocked by PackageKit

Hi, everyone, I’ve a fresh install of TW as dual boot with Windows.
The first thing I did was sudo zypper list-updates. It is getting an error:
PackageKit is blocking it
Gnome DE

(I installed TW in my sister’s laptop a month ago. I didn’t get this error)

Read the error - the applet is running at the same time … simply wait a few minutes and try zypper again

There can only be one program at the time accessing the packages database. Does not matter if one or both are zypper, YaST > Software or some PackageKit using program. Thus when you started the PackageKit one first, then indeed all others are forbidden until it stopped.

Or remove the applet, or the whole of PackageKit. What ever fits you best.

I didn’t start anything. Is it safe to remove?

I did not say “you” did. But when it is the applet, a user (whoever that is) did. And when it is the applet, then (s)he may not be aware of it, because it is what she/he got presented when he/she logged in in the desktop for the first time.

It is not cleat to me what “it” is, but when you (as user) think you do not need the applet, then remove it. And when you as system manager think that your users do not need (or are even not allowed) to use the applet, you can e.g. remove PackageKit.

That is “safe” in that your system will happily run along. I never install PackageKit on any of the systems I manage.

No need to remove anything: System Tray > System Tray Settings > Entries > Software Updates > Disable.

1 Like

Obviously, PackageKit was installed as default and will run at prescribed times (once a day, or …).

If you open the applet from the System Tray, you can click on Update (if there are updates) and it will do so. It effectively does the same as zypper dup.

The zypper tool is preferred, and since you’re wanting to run it, you can uninstall PackageKit or disable it.

No no. My confusion is. It’s the fresh install. I did partitions 1gb boot, 8gb swap, 150gb root. Installed TW and when it booted, the error showed up.

The other machine i was talking is another laptop where I installed TW with KDE, this time i chose Gnome

Disable the updates ! :thinking:

PackageKit is independent of GNOME or KDE …

This may sound a novicr question. But what is applet? I’ve been using gnome on Ubuntu, POP. Is it open suse specific?

Thnx. It seems this time, it was installed as default somehow

Applets are apps found in the Taskbar, like the clock, network manager, volume, and so on. They are interfaces usually to some more robust functionality running in the background.

Applet term is not Linux specific

It sound something essential!

Correct. With the newer releases of TW, it’s a default install and enabled.

Many users prefer to point and click to do things, vs running some command at the command line.

You have 3 possibilities:

  1. deinstall packagekit
  2. disable the Update in the applet
  3. wait 5 minutes and use the command zypper xxx once more.

I do not Know if the applet will use zypper dup in background, but you have to use only zypper dup after using the Solution 1 and 2.

1 Like

Nope. Disable updates by packagekit. Use 'zypper dist-upgrade` instead. Preferably use a systemd service for robust and hassle-free background operation:

Sep 17 13:47:04 erlangen systemd[1]: Starting zypper dist-upgrade...
Sep 17 13:47:05 erlangen zypper[31475]: The following 270 packages are going to be upgraded:
Sep 17 13:47:05 erlangen zypper[31475]: The following product is going to be upgraded:
Sep 17 13:47:05 erlangen zypper[31475]: The following 3 NEW packages are going to be installed:
Sep 17 13:47:05 erlangen zypper[31475]: The following package is going to be REMOVED:
Sep 17 13:47:08 erlangen zypper[31475]: Checking for file conflicts: [......done]
Sep 17 13:48:12 erlangen systemd[1]: dup.service: Consumed 53.625s CPU time.
erlangen:~ # 

Ok , thank u

Here’s the applet in action. The 4 screenshots should be in sequence.

This is the taskbar in my upper Panel - the menu (or details) button shows all
Now the applets are shown
The PackageKit applet showing me it found updates.
When I open the applet fully, I can see all the details, and can update with a click

tb1
.
.
tb2
.
.
tb3
.
.