LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   wine isn't installed. wine is installed. which is it? (http://www.linuxquestions.org/questions/linux-software-2/wine-isnt-installed-wine-is-installed-which-is-it-131986/)

Trinity22 01-06-2004 05:39 AM

wine isn't installed. wine is installed. which is it?
 
I'm in the process of trying to formulate a way of removing the current Wine install so I can install it again. However, according to konsole, wine isn't installed and is installed.

Quote:

[root@44ba0d45 trinity]# rpm -i wine-20031016-1rh9winehq.i686.rpm
warning: cannot get shared lock on /var/lib/rpm/Packages
package wine-20031016-1rh9winehq is already installed
[root@44ba0d45 trinity]# rpm -e wine-20031016-1rh9winehq.i686.rpm
warning: cannot get shared lock on /var/lib/rpm/Packages
error: package wine-20031016-1rh9winehq.i686.rpm is not installed
I think my computer is heavily confused on this, since Notepad works fine and yet Wine doesn't show up at all under Synaptic.

I can't install a newer version over it because it butts horns with the already/not installed Wine 200310616.

Does anyone have any suggestion? I'll take anything short of reinstalling the OS.

Trinity

Ciccio 01-06-2004 06:38 AM

Quote:

[root@44ba0d45 trinity]# rpm -e wine-20031016-1rh9winehq.i686.rpm
warning: cannot get shared lock on /var/lib/rpm/Packages
error: package wine-20031016-1rh9winehq.i686.rpm is not installed
Well... why don't you try rpm -e wine-20031015-1rh9wineh1 (without i686.rpm)

DrOzz 01-06-2004 09:41 AM

no that wont' work ...
there is some unclaimed process still locking the database, so you'll have to find it and kill it ...
type : fuser /var/lib/rpm/Packages
and see what it is, and then kill it ..
p.s. you have to be root, and its located in /sbin, so if you get command not found, then type the whole path...

Ciccio 01-06-2004 10:27 AM

I was curious about the locking message... however, the second part of the error tells that the package isn't installed, so perhaps he is writing the name incorrectly (i.e. adding .i686.rpm) try rpm -qa|grep wine and then try rpm -e <whatever output it shall return>. However, you should be able to do rpm -U, so that it will update instead of uninstall + install.

pezplaya 01-06-2004 06:31 PM

When uninstalling an rpm (rpm -e) you don't use the full file name.

try

rpm -e wine-20031016

or just

rpm -e wine

I think the first one should work.



after this you should be able to install wine again


rpm -ivh wine.blahblah.i686.rpm

Trinity22 01-06-2004 06:56 PM

thank you all. the fuser command wouldn't work since I got a "command not found" with it.

I did try Ciccio's method though and that uninstalled it well :) Saving this whole thread so I know how to do this in the future.

Thanks again to all.

Trinity

Ciccio 01-07-2004 11:21 AM

Did you try it as root? It works in my RH9 and in mi MDK9.1


All times are GMT -5. The time now is 09:11 PM.