Cannot Fully Remove Wine from Ubuntu 10.04 Lucid Lynx.

Asked by copernicus

Hello

I have made a complete mess of My Wine Installation on Ubuntu 10.04 Lucid.

I cannot Run Runes of Magic. So I decided to try to COMPLETELY remove Wine and then reinstall it again once I fully installed Wine.

The problem is That I cannot seem to fully uninstal Wine no matter what I try

I have uninstalled everything wine related from Synaptics.
and also tried these commands:

rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm

But I cannot fully uninstall Runes of Magic or Wine

I know wine is NOT fully removed because if I run this command

sudo aptitude install -f

I get this message ::

mark@mark-laptop:~$ sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following NEW packages will be installed:
wine wine1.2 wine1.2-gecko winetricks
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/18.5MB of archives. After unpacking 95.6MB will be used.
Do you want to continue? [Y/n/?]

I also removed my .Wine directory

and ran these commands with No joy either

sudo apt-get remove wine
sudo apt-get purge wine
rm -rf ~/.wine

Still not removing Wine fully

Can somebody help me to COMPLETELY remove wine and runes of magic from Ubuntu. So I can try to install Wine and runes of magic cleanly and correctly once again.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine Edit question
Assignee:
No assignee Edit question
Solved by:
copernicus
Solved:
Last query:
Last reply:
Revision history for this message
Craig73 (funrun73) said :
#1

What is indicating that it is not being fully removed?

"Need to get 0B/18.5MB of archives" just seems to be suggesting the install packages are sitting in the cache. It would appear like you have removed it from your system.

Since you have completely removed the .wine folder, Runes of Magic shouldn't still be on your system, as the program files do not go anywhere else [the files that are stored outside of your .wine folder include those saved by the windows app to Desktop, My Documents, My Music, My Pictures, My Video]

Revision history for this message
copernicus (iamcopernicus) said :
#2

Thank-you for your reply.

I am relative beginner when it comes to Ubuntu. So I will try to quickly explain my problem.
I Installed runes of Magic Using Wine.
Runes of Magic will NOT start at all. I assume I have corrupted my Wine somehow.
I Have removed Wine from synaptics. I also removed all Residual config files in Synaptics.
I have also deleted my .Wine directory from my Home folder.

 want to completely remove all traces of Wine and Runes of Magic so I can cleanly install Both from fresh again following different methods. To try to get Runes of magic working

I Know there are still traces of Wine and Runes of magic left behind because when I run this command

sudo aptitude install -f

i get this output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following NEW packages will be installed:
  libmpg123-0 wine1.2 wine1.2-gecko winetricks
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/18.6MB of archives. After unpacking 95.9MB will be used.
Do you want to continue? [Y/n/?]

As I say im newcomer to Ubuntu. I would Like to know how to remove all traces of Wine and Runes of Magic to make clean instalation of the two

Revision history for this message
copernicus (iamcopernicus) said :
#3

Is it becuase I still have Runes of Magic Instalation File Named :
/home/home/Downloads/FOGDownloader-RoM_3_0_1_2153.exe

In my Downloads Folder that, Even though I have uninstalled all traces of Wine including the .wine directory. that When I run this command:

sudo aptitude install -f

I get this output :

laptop:~$ sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following NEW packages will be installed:
wine1.2 wine1.2-gecko winetricks
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/18.4MB of archives. After unpacking 95.5MB will be used.
Do you want to continue? [Y/n/?]

Is this what is causing me to think that Wine and Runes Of magic are NOT fully uninstalled ??
scrypt is online now Report Post Edit/Delete Message

Revision history for this message
Craig73 (funrun73) said :
#4

Now, the downloaded install EXE for Runes is not enough for it to want to install WINE automatically. There must be something installed that depends on WINE if Synaptic/Aptitude is trying to automatically install it [although I would have expected Synaptic to not allow you to remove the package if something depended on it]

Can you try going into Synaptic and running Edit - Fix Broken Packages.

I'll look around for some other ideas...

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

You also do not need to use -f for files in $HOME. It's a REALLY bad habit to get using (f)orce ALL the time

can you give the output of:

dpkg -l | grep -i wine

Thanks.

Revision history for this message
Craig73 (funrun73) said :
#6

OK - the issue here seems to be showing in that you are using Apt and Aptitude (Synaptic and Add Remove programs are using apt-get, I expect that the Ubuntu Software Centre is also a front end to Apt).

I noticed that on my system as well, Aptitude really wants to install/uninstall/update a lot of different software.... where in Apt / Synaptic it tells me I'm up to date.

If Synaptic doesn't show anything as upgradable (or "apt-get install" doesn't show any updates) then you are fine.

Revision history for this message
Craig73 (funrun73) said :
#7

(ie - don't mix Aptitude and Apt (apt-get), just use one or the other, and because Ubuntu's GUI tools use Apt, you should too)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

You can use both interchangably, they can both be used as you wish. Note on this page, the 2 are used very interchangably:
https://help.ubuntu.com/community/RubyOnRails

Both are fine, users tend to stick with one which is fine but to say that using both is in some way "bad" is laughable.

Revision history for this message
Craig73 (funrun73) said :
#9

Actionparsnip... from my understanding Aptitude maintains a separate database and by using Apt and Aptitude together the Aptitude database gets out of sync. [IE - right now it seems to think that I have conky installed, and I do not, I recently un-installed it through Synaptic... perhaps there is something I need to do to cleanup Aptitude, but mixing the two could have unintended consequences]

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

No as that would be really stupid, they all use the same backend (dpkg) to install the debs they download so there is a single point for packages. One may have a seperate database for installed / not installed but they both manipulate the packages. The fact that it makes aptitude "out of sync" does not really make the software in the OS break, its just some weird thing which aptitude has is not fully integrated into the rest of the system and to me that sounds like something to avoid.

Revision history for this message
Craig73 (funrun73) said :
#11

@Actionparsnip,
This is getting far beyond Marks question. Yes both use the same source of debs so generally it isn't an issue to install or remove apps this way, the largest issue would be Aptitude adding and removing packages unexpectedly (say when he's just letting it automatically update and remove packages and dependencies). There are ways around it (and it's probably worth researching to see if there is a way to cleaning keep the databases in sync, I really don't see why not)

@Mark
Sorry for the delay (errands and life and such :-) )

If using Synaptic and wine is not showing... you are good to try re-installing.

dpkg -l | grep -i wine (as suggested by action) is a great way to see if the package is installed or not (although it will still show in some other cases). Here is some documentation on how to read the output (the second and third column)
https://lists.ubuntu.com/archives/kubuntu-users/2006-July/006991.html

If it's really bugging you that Aptitude thinks it needs to install WINE, then run the following command
sudo aptitude keep-all
(this removes any 'pending' install/uninstall/purge ... out of simplicity though it's better to stick with Synaptic and Apt-get. Some people prefer Aptitude because it will uninstall dependencies automatically when you remove an application, where you have to aks Synaptic/apt-get to do that in a separate step... but the complexity and pain of running both Synaptic and Aptitude together is probably not work it at this point)

In terms of Runes of Magic, a quick check of WineHQ shows this is known to not work (or at least have problems) due to how it's coded (specifically how the menu is coded). Some people have created patches for Wine to work around the issue and have the game playing... I haven't really dug into it furthur...

Read up on Runes of Magic here
http://appdb.winehq.org/objectManager.php?sClass=application&iId=8157
I was reading specifically this bug http://bugs.winehq.org/show_bug.cgi?id=17818

(even Code Weavers, which is one of the commerically supported versions of Wine, has this app flagged as not working
http://www.codeweavers.com/compatibility/browse/name/?app_id=4909)

The forums on WineHQ.org might provide you with more information on the status of app if you have trouble sorting through the info available (or I can help you sort through it)

Revision history for this message
copernicus (iamcopernicus) said :
#12

Thanks a lot Craig73 and Actionparsnip for you clear concise replies. Much appreciated by an Ubuntu learner.

I have given all your suggestions a read and I have leaned some really great important Ubuntu related issues.

Appologies for my delay in replying back. This is due to work Issues.

Here is the dpkg -l | grep -i wine Output

mark@mark-laptop:~$ dpkg -l | grep -i wine
ii gnome-exe-thumbnailer 0.4-0ubuntu1~lucidppa2 Wine .exe and other executable thumbnailer f
ii wine 1.2-0ubuntu1~lucidppa1 Microsoft Windows Compatibility Layer (dummy
ii wine1.2 1.2-0ubuntu1~lucidppa1 Microsoft Windows Compatibility Layer (Binar
ii wine1.2-gecko 1.0.0-0ubuntu4 Microsoft Windows Compatibility Layer (Web B
ii winetricks 0.0+20100731-0ubuntu1 Microsoft Windows Compatibility Layer (winet
mark@mark-laptop:~$

I also found A really helpful Post on the Ubuntu Forum. That has helped me to Understand and Learn how to clean my Ubuntu installation thoroughly and safely.

Here is the link to the Post if anyone is interested.

http://ubuntuforums.org/showthread.php?t=140920

Posted by k3lt01 (Ubuntu Forum Post)

Thank-you all for your help

Revision history for this message
copernicus (iamcopernicus) said :
#13

Thanks a lot Craig73 and Actionparsnip for you clear concise replies. Much appreciated by an Ubuntu learner.

I have given all your suggestions a read and I have leaned some really great important Ubuntu related issues.

Appologies for my delay in replying back. This is due to work Issues.

Here is the dpkg -l | grep -i wine Output

mark@mark-laptop:~$ dpkg -l | grep -i wine
ii gnome-exe-thumbnailer 0.4-0ubuntu1~lucidppa2 Wine .exe and other executable thumbnailer f
ii wine 1.2-0ubuntu1~lucidppa1 Microsoft Windows Compatibility Layer (dummy
ii wine1.2 1.2-0ubuntu1~lucidppa1 Microsoft Windows Compatibility Layer (Binar
ii wine1.2-gecko 1.0.0-0ubuntu4 Microsoft Windows Compatibility Layer (Web B
ii winetricks 0.0+20100731-0ubuntu1 Microsoft Windows Compatibility Layer (winet
mark@mark-laptop:~$

I also found A really helpful Post on the Ubuntu Forum. That has helped me to Understand and Learn how to clean my Ubuntu installation thoroughly and safely.

Here is the link to the Post if anyone is interested.

http://ubuntuforums.org/showthread.php?t=140920

Posted by k3lt01 (Ubuntu Forum Post)

Thank-you all for your help

Revision history for this message
copernicus (iamcopernicus) said :
#14

Okay I should add that when I tried to boot into Ubuntu today I could not So I ran Ubuntu recovery mode. used these commands from administrator terminal
sudo apt-get update
sudo apt-get upgrade

This seemed to fix my issue. becuase now I can boot back into Ubuntu normaly
and now when I run

sudo aptitude install -f

mark@mark-laptop:~$ sudo aptitude install -f
[sudo] password for mark:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done

I no longer get a message that wine wine1.2 wine1.2-gecko winetricks
Need to be installed.

I think that following the guide found here

http://ubuntuforums.org/showthread.php?t=140920

Posted by k3lt01 (Ubuntu Forum Post)

Helped to fix my Wine issue. along with other commands posted by yourselves.

Revision history for this message
Craig73 (funrun73) said :
#15

Based on the output from your dpkg command, it looks like you have installed wine again (perhaps by allowing Aptitude to run it's automatic install when we started) - so perhaps that is also why Aptitude is not reporting it needing to be installed. Open Synaptec and search for wine and confirm (or run the dpkg line again)

[Note, I don't think this should really be an issue unless you are planning on compiling your own version of wine to work around the Runes of Magic bug]

The only warning I might give about 'found postings' and even web searches is to check the date (if it's a blog posting with no date reference, check the comments) ... this posting is from 2006 with the last comment on it from 2008 [I haven't had a chance to read it, it might still apply]. The warning is that things change, features added/bugs fixed, and older suggestions sometimes don't apply anymore. A good starting place is wiki.ubuntu.com and recent forum postings (google and ubuntuforums advanced search allow you to constrain the date to more recent articles, as a starting point)

Revision history for this message
Craig73 (funrun73) said :
#16

Note: fwiw, if I have a problem with an application I installed in wine, I just delete the .wine directory and this blows away all apps installed in that bottle of wine. Then when I re-install my app, it's in a fresh copy of the wine environment (ie - a clean windows registry and file structure.

The wine program itself is the same, but since I always run the most recent copy I'm less concerned).

[of course the difference is, I install every wine app in it's own wine folder (bottle) by setting the wineprefix at the command line and installing from that command line... so instead of a single .wine folder I have a .wine-office2007, .wine-evernote3, .wine-evernote3.5, etc.]

anyhow, good luck and let us know if you need furthur clarification (hopefully this hasn't been too much info ;-) )