Zypper wants to remove package: kscd, but cannot because kscd is not installed ?!

Hi, for a few days now there is this kscd package that cannot be removed by zypper dup because it is not installed, here is the output of zypper dup:

The following package is going to be REMOVED:
  kscd

1 package to remove.
After the operation, 1.3 MiB will be freed.
Continue? [y/n/? shows all options] (y): y
(1/1) Removing kscd-15.04.3-1.1 .........................................[error]
Removal of (75084)kscd-15.04.3-1.1.x86_64(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package kscd-15.04.3-1.1.x86_64 is not installed


Abort, retry, ignore? [a/r/i] (a): a
Problem occured during or after installation or removal of packages:
Installation aborted by user


This is kind of strange, whats the problem here?

Are you sure it’s not installed
It is for me from a default kde install

I do not know, actually i do not know what it is for. I just thought that it is not installed because the error message said so.

On 2015-07-29 21:26, sabo007 wrote:
>
> I do not know, actually i do not know what it is for. I just thought
> that it is not installed because the error message said so.

Try “rpm -q kscd”


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

It’s an audio cd player

The version I have in TW is: kscd-15.04.2-1.2.x86_64

Ok but iam still a bit confused why i need to remove it. Running zypper dub allways wants to remove that, i did not manually tried to remove that package. So when when zypper dup wants to remove a installed package, then only when it installes another package right?
And the big question, why is zypper dup not able to remove the package by itself?

On 2015-07-31 02:46, sabo007 wrote:

>> Try “rpm -q kscd”

> Ok but iam still a bit confused why i need to remove it. Running zypper
> dub allways wants to remove that, i did not manually tried to remove
> that package. So when when zypper dup wants to remove a installed
> package, then only when it installes another package right?
> And the big question, why is zypper dup not able to remove the package
> by itself?

Why don’t you simply run the command I posted and tell us the result? :slight_smile:

It is an informative command, it does not modify anything.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

A check reveals kscd is no longer provided in the repos, which suggests it has been removed/superceded or something
http://paste.opensuse.org/6634083

On 2015-07-31 06:46, caf4926 wrote:
>
> A check reveals kscd is no longer provided in the repos, which suggests
> it has been removed/superceded or something
> http://paste.opensuse.org/6634083

Well, that explains why zypper wants to remove it :slight_smile:
Now we need to find out why it can’t.
I suspect rpm database corruption.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Well, it doesn’t build at the moment, that’s why it isn’t in Tumbleweed any longer.

I suppose when this is fixed, it will reappear.

Sure :), the output is:

package kscd is not installed

Someone mentioned a database corruption as possible reason for zypper wanting to remove a package that is not installed, is there a way to repair that? Or should i wait for the package to reappear in the repos again?

Then it’s probably zypper’s cache that is outdated/corrupted.
Try to delete it with “zypper clean -a” or by just deleting the folder /var/cache/zypp/.

Tried both, none of it changed anything. Someone said that the package is installed by default, is that true? If so why is not it installed? Or maybe it was installed by default, then it disappeared from the repos, then zypper dup removed it but somehow did not registered that and thats why it still wants to remove it?

It was installed by default in the past, but as I wrote already, it is not available at all at the moment (in Tumbleweed).

If so why is not it installed? Or maybe it was installed by default, then it disappeared from the repos, then zypper dup removed it but somehow did not registered that and thats why it still wants to remove it?

The latter. Something is broken/inconsistent on your system.

Try running “sudo rpm --rebuilddb” to rebuild rpm’s database of installed packages. Afterwards clean zypper’s cache again to be sure and the problem will hopefully be solved.

That solved the problem, thanks