LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Software shows up as installed and not installed at same time in zypper. (https://www.linuxquestions.org/questions/linux-software-2/software-shows-up-as-installed-and-not-installed-at-same-time-in-zypper-775036/)

LazerPhreak 12-11-2009 04:13 PM

Software shows up as installed and not installed at same time in zypper.
 
Hello! I have a rather confusing problem on my hands, and after much research am still drawing a blank. I will use Alsa-utils for my example, but this happens with several other software packages. I am running OpenSuSE 11.2. This is what I am getting.

{~} GoD: sudo zypper install alsa-utils
Loading repository data...
Reading installed packages...
'alsa-utils' is already installed.
Resolving package dependencies...

Nothing to do.


So then I attempt to remove it and get:

{~} GoD: sudo zypper remove alsa-utils
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following packages are going to be REMOVED:
alsa alsa-utils

2 packages to remove.
After the operation, 3.1 MiB will be freed.
Continue? [y/n/?] (y): y
Removing alsa-1.0.21-3.2 [error]
Removal of (17870)alsa-1.0.21-3.2.i586(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package alsa-1.0.21-3.2.i586 is not installed


Abort, retry, ignore? [a/r/i] (a): i
Removing alsa-utils-1.0.21-3.1 [error]
Removal of (18234)alsa-utils-1.0.21-3.1.i586(@System) failed:
Error: Subprocess failed. Error: RPM failed: error: package alsa-utils-1.0.21-3.1.i586 is not installed


Abort, retry, ignore? [a/r/i] (a): i
There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs.


I am at a loss and any help would be appreciated!

Thank you.

business_kid 12-12-2009 02:18 PM

man zypper

Check for a --force --override or --middle_finger option to tell it to stop thinking for you. There also might be a way to rebuild the database

LazerPhreak 12-13-2009 01:01 AM

Quote:

Originally Posted by business_kid (Post 3789074)
man zypper

Check for a --force --override or --middle_finger option to tell it to stop thinking for you. There also might be a way to rebuild the database

lol. If only flippping off the computer worked. Repair would be so much cheaper :). However I found the solution among another path

Sudo zypper clean

Cleared the previous recorded installations.

Thanks!


All times are GMT -5. The time now is 05:10 PM.