LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2020, 02:48 AM   #1
Oasis_o7
LQ Newbie
 
Registered: Apr 2020
Location: Texas
Distribution: Linux Mint
Posts: 10

Rep: Reputation: Disabled
Post Struggling to Uninstall Wine


So, I've been using Linux Mint for several months; I'm definitely still a newb. Although I tend to use the command line these days, when I first started using Linux Mint on my main PC I used the Linux Mint Software Manager. I had heard somewhere that the Software Manager isn't the best, but I wanted to try it out. One of the programs I installed via the Software Manager was Wine Stable ver. 4. I want Wine Stable ver. 5 but each time I try to install it my system tells me that certain files are getting in the way, such that I can't fulfill certain dependencies for this newer version of Wine. I've tried purging Wine from my PC via the purge command but my system tells me that I can't remove "virtual packages". From what I can find, the only way to remove these "virtual packages" that are getting in the way is to remove the main program that depends on them. I'm not sure exactly why, but it just won't let me remove Wine. To the best of my knowledge, research, and understanding, meagre as it is, I think that I have to uninstall Wine via the Software Manager, since that's where it was first installed. However, every time I've tried to do this the progress bar stops moving and never finishes. Additionally, whenever I run Wine, it opens with a window that claims that Wine is updating, but it never finishes. I assume this is because both Wine and LM Software Manager is running into the exact same dependency problem that I've run into every time I try to update or remove Wine via the command line.


I can see that this post is quite a ramble. My apologies. I'm not good at writing these forum posts asking for PC help. Never have been.
If it looks like I left out a lot of specific details and spoke in vague terms, that's because I've tackled this problem several times over the last several months, so the details are fuzzy. If you have any specific questions or you need me to run any sort of commands for the sake of diagnostics, I will try to get back to you quickly and answer to the best of my ability.
 
Old 04-10-2020, 02:20 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,409

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
Yes you are rambling, but you should see me when I get started.

Apt will only remove what it put in. But you probably installed stuff in wine. It won't install that. If you can run wine still, I'd try 'wine uninstaller' and get them out. If not, maybe you'll have to do 'rm -rf ~/.wine' and then try purging it, or updating it. You don't have to install stuff to try wine. 'winemine' and 'winefile' and a few others should work.
 
Old 04-10-2020, 07:00 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,276

Rep: Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458
"I had heard somewhere that the Software Manager isn't the best"

I tend to recommend that you use the distro's software manager. Did you use the same to uninstall?

I'd think that the command line sudo apt command to do clean up. Read up on that command.

This link may have some extra to look at. Sudo apt-get may still work but new is simply apt.
 
Old 04-11-2020, 12:16 AM   #4
Oasis_o7
LQ Newbie
 
Registered: Apr 2020
Location: Texas
Distribution: Linux Mint
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Yes you are rambling, but you should see me when I get started.

Apt will only remove what it put in. But you probably installed stuff in wine. It won't install that. If you can run wine still, I'd try 'wine uninstaller' and get them out. If not, maybe you'll have to do 'rm -rf ~/.wine' and then try purging it, or updating it. You don't have to install stuff to try wine. 'winemine' and 'winefile' and a few others should work.
I tried "wine uninstaller" and I was able to use it to remove a wine utility. I think it was called 'wine gecko' or something like that. Unfortunately that didn't solve my problem. When I try to install the latest stable version of wine I can see that wine 4.0.0 is holding up wine 5.0.0. I'm not sure why. Here, maybe it would help for you to see what I'm seeing:
Code:
oasis@oasis-MS-7851:~$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 5.0.0~bionic)
E: Unable to correct problems, you have held broken packages.
oasis@oasis-MS-7851:~$ sudo apt install wine-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine-stable : Depends: wine-stable-i386 (= 5.0.0~bionic)
               Depends: wine-stable-amd64 (= 5.0.0~bionic) but 4.0~bionic is to be installed
E: Unable to correct problems, you have held broken packages.
oasis@oasis-MS-7851:~$
I also tried the remove command you suggested, but that didn't have any noticeable effect either. It seemed like wine was still installed:
Code:
oasis@oasis-MS-7851:~$ rm -rf ~/.wine
oasis@oasis-MS-7851:~$ sudo apt update
Ign:1 http://packages.linuxmint.com tricia InRelease
Hit:2 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                            
Hit:3 http://packages.linuxmint.com tricia Release                                                         
Hit:4 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease                                
Hit:5 http://archive.canonical.com/ubuntu bionic InRelease                                                 
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                
Hit:7 http://repo.steampowered.com/steam precise InRelease                                                 
Hit:9 http://archive.ubuntu.com/ubuntu bionic InRelease                                                    
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                 
Hit:11 http://ppa.launchpad.net/lutris-team/lutris/ubuntu bionic InRelease           
Get:12 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]         
Fetched 252 kB in 1s (194 kB/s)     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
oasis@oasis-MS-7851:~$ apt list --upgradable
Listing... Done
wine-stable/bionic 5.0.0~bionic amd64 [upgradable from: 4.0~bionic]
wine-stable-amd64/bionic 5.0.0~bionic amd64 [upgradable from: 4.0~bionic]
wine-stable-i386/bionic 5.0.0~bionic i386 [upgradable from: 4.0~bionic]
winehq-stable/bionic 5.0.0~bionic amd64 [upgradable from: 4.0~bionic]
oasis@oasis-MS-7851:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  wine-stable winehq-stable
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
oasis@oasis-MS-7851:~$

Quote:
Originally Posted by jefro View Post
"I had heard somewhere that the Software Manager isn't the best"

I tend to recommend that you use the distro's software manager. Did you use the same to uninstall?

I'd think that the command line sudo apt command to do clean up. Read up on that command.

This link may have some extra to look at. Sudo apt-get may still work but new is simply apt.
I used the Linux Mint Software Manager to install wine. It's what gave me wine 4.0.0 in the first place. I have attempted to use that software manager to uninstall wine, but the process never finishes.
 
Old 04-12-2020, 07:25 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,409

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
OK. Think I can crack this. You need to know that libs are not 32-64 bit 'promiscuous.'

You have a 64bit OS, right? So, in wine-64, Wine(64bit) works by translating windows system calls to linux ones. So things like /lib/ld-linux.so and other libs needs to be 64 bit.

Sadly, most windoze software is still 32 bit. Wine(32bit) works by translating windows system calls to linux ones. So things like /lib/ld-linux.so and other libs needs to be 32 bit.

Slackware and one or 2 other distros (Fedora?) solve this by having 32bit libs in /lib or /usr/lib, and 64bit libs in /lib64 or /usr/lib64. Then /lib/ld-linux.so(32bit) and /lib64/ld-linux.so can coexist quite happily. I have a specially compiled 32/64 bit wine from Slackware's Alien repo, and also his compat32 packages, which give me 32bit compatibility on a 64bit system. The one thing I need running under wine is 32bit.

If you're on Debian, Ubuntu, or a variant, I think they say "Oh yeah, you have to do this sort of thing " and 3 days later you give up. They use /usr/lib/32, I think. But is that in /etc/ld.so.conf? Chase around the lib dirs with file is and check the distro website. /usr/bin/wine will either be 32 or 64 bit, and will be unlikely to allow for the other's existence. I would uninstall the lot, and check the distro website. I don't think you need wine-64. Just use the 32 bit.
 
Old 04-13-2020, 03:41 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,276

Rep: Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458
I had a link I thought I posted but will have to look for it. Talked about fully removing wine.
 
Old 04-14-2020, 04:35 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,409

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
After bits of 2-3 days on the linux Mint site, I gave up on wine32 and uninstalled all of wine. I can compile 32bit programs here, because I have libs for all sorts of programs whose support is needed.

Getting wine off is probably like the old one about the fox, the goose, and the bag of beans. A farmer had all three and had to cross a river, but he could only take one at a time. If given an opportunity, the fox would eat the goose, or the goose would eat the beans. How is it done?

I'd start with the an apt list command. Then I'd uninstall wine-unstables(s), winehq(s) wine-stable(s) and then go for an autoremove or purge.
 
Old 04-14-2020, 03:55 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,276

Rep: Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458Reputation: 3458
This still may be of value even though old. https://askubuntu.com/questions/1555...ine-completely

https://sourcedigit.com/14942-comple...buntu-systems/
 
Old 04-14-2020, 10:39 PM   #9
Oasis_o7
LQ Newbie
 
Registered: Apr 2020
Location: Texas
Distribution: Linux Mint
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
So I tried the commands suggested on the linked page, but they didn't work. My system claimed that it couldn't find the files:
Code:
oasis@oasis-MS-7851:~$ cd $HOME
oasis@oasis-MS-7851:~$ rm -r .wine
rm: cannot remove '.wine': No such file or directory
oasis@oasis-MS-7851:~$ rm .config/menus/applications-merged/wine*
rm: cannot remove '.config/menus/applications-merged/wine*': No such file or directory
oasis@oasis-MS-7851:~$ rm -r .local/share/applications/wine
rm: cannot remove '.local/share/applications/wine': No such file or directory
oasis@oasis-MS-7851:~$ rm .local/share/desktop-directories/wine*
rm: cannot remove '.local/share/desktop-directories/wine*': No such file or directory
oasis@oasis-MS-7851:~$ rm .local/share/icons/????_*.xpm
rm: cannot remove '.local/share/icons/????_*.xpm': No such file or directory
This result really surprised me.


Quote:
Originally Posted by business_kid View Post
After bits of 2-3 days on the linux Mint site, I gave up on wine32 and uninstalled all of wine. I can compile 32bit programs here, because I have libs for all sorts of programs whose support is needed.

Getting wine off is probably like the old one about the fox, the goose, and the bag of beans. A farmer had all three and had to cross a river, but he could only take one at a time. If given an opportunity, the fox would eat the goose, or the goose would eat the beans. How is it done?

I'd start with the an apt list command. Then I'd uninstall wine-unstables(s), winehq(s) wine-stable(s) and then go for an autoremove or purge.
Next, I simply tried
Code:
apt remove wine-stable
and that worked. Like, it worked completely. I then followed it up with an autoremove and a
Code:
sudo apt-get update
. I cant find any trace of wine on my PC, either via the Terminal or the Software Manager.



Thanks a lot fellas. Not only is my problem solved, I also learned more about apt commands.
 
Old 08-30-2020, 07:42 AM   #10
wunderfitz
LQ Newbie
 
Registered: Aug 2020
Distribution: Ubuntu 20.04
Posts: 17

Rep: Reputation: Disabled
I had the same problem as described above, the difference is, that running sudo apt remove wine gave the result:

Quote:
Package 'wine-stable' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
As I had this already before, and then installing wine again, met the same problems:

Quote:
The following packages have unmet dependencies:

winehq-devel : Depends: wine-devel (= 5.15~focal)
E: Unable to correct problems, you have held broken packages
Now, checking the package manager, I still get this (see attached screenshot), where one entry, where a latest version was indicated, is already missing. On removing, however, not all was removed, so that I am afraid, to get the same result as before, when I completely uninstalled and then re-installed only to arrive at the same end (s.a.).
According to the wine specialists I need wine 5.15 (devel) to run the application, I need to run
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-08-30 13-13-29.jpg
Views:	19
Size:	227.7 KB
ID:	33988  
 
Old 08-30-2020, 12:39 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,409

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
This is really a package manager problem more than a wine issue. If you're just trying to save space, remember $HOME/.wine can exist in all user's homedirs, and it has the bulk of the storage in it. As ~/.wine isn't created until the user runs wine, it can be removed with 'rm -rf'
 
Old 08-30-2020, 01:00 PM   #12
wunderfitz
LQ Newbie
 
Registered: Aug 2020
Distribution: Ubuntu 20.04
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
This is really a package manager problem more than a wine issue. If you're just trying to save space, remember $HOME/.wine can exist in all user's homedirs, and it has the bulk of the storage in it. As ~/.wine isn't created until the user runs wine, it can be removed with 'rm -rf'
Thank you. I am not trying to save space, I have more than enough, I just want to avoid making endless attempts to install wine, which all end in:

Quote:
The following packages have unmet dependencies:

winehq-devel : Depends: wine-devel (= 5.15~focal)
E: Unable to correct problems, you have held broken packages
when I re-install wine after having removed it completely:

Quote:
Package 'wine-devel' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Just in case, I wasn't concise enough: I need wine 5.15 installed to run an app I need for work. If I want to remove it completely now, it is for the only reason to be able to install it completely and not get the error:

Quote:
The following packages have unmet dependencies:

winehq-devel : Depends: wine-devel (= 5.15~focal)
E: Unable to correct problems, you have held broken packages
 
Old 08-31-2020, 05:04 AM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,409

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
Ah. You need the libraries lesson.

Distros are either 32 or 64 bit with accompanying 32 or 64 bit libs. Wine works by translating windows system calls to Posix ones. Most windows programs are still 32 bit, so wine needs 32bit libs (like /lib/ld-linux.so). If you have a 64bit system, that's a big deal, because /lib/ld-linux.so has to be 64 bit to run the system. Package managers are very careful they don't let you gore yourself in the privates, hence the errors. This usually happens on 64 bit systems.

Distros like Slackware (& Fedora IIRC) use /lib & /usr/lib for 32bit libs, and /lib64 & /usr/lib64 for 64bit ones. Then on Slackware you can install Alien Bob's Multilib packages, which allow you build 32bit stuff, & run 32 bit stuff. Instead of distributing a 32 or 64 bit wine, there's a very clever wine build that detects what's going on and runs wine32 or wine64. So the one program I run regularly under wine on slackware64 is a 32bit thing. I can even run multiple instances of it, which is more than I ever managed in windows.
 
Old 08-31-2020, 05:20 AM   #14
wunderfitz
LQ Newbie
 
Registered: Aug 2020
Distribution: Ubuntu 20.04
Posts: 17

Rep: Reputation: Disabled
Well, that was obvious from the user name and category (newbie). Thanks so far. I already knew, however, that windows is mostly 32 bit, so I installed both prefixes, as nobody, not even the culprits for this app could (or wanted to) give details about it. That I needed the 32 bit version, I have already learned the hard way, so, maybe you could soften the further way? Which wine build would that be, if it's not asked too much. One of the guys at wine told me, I would need wine-devel, wine 5.15, and that the app would run under this version. The problem for me now is, either how to install wine 5.15 w/o re-installing ubuntu or which build to install instead. Thanks in advance
 
Old 09-01-2020, 05:00 AM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,409

Rep: Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832Reputation: 1832
These days wine is pretty good. I have wine-4.17 and it suits my needs.
If you have a spare partition or drive, you could install a 32bit OS, which solves your problems. You could also install it as a vm under virtualbox, or ressurect a 32bit machine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Struggling to uninstall Serviio daveuk88 Linux - Newbie 3 05-29-2015 02:12 PM
new debian user struggling with ide-cd and gnome install zbrox Debian 8 07-08-2004 12:02 PM
Struggling with Samba CUPS win printer issue VBAHole22 Linux - Newbie 13 06-18-2004 09:47 PM
Struggling Add/Remove Packages gibbylinks Red Hat 8 12-07-2003 03:16 PM
after struggling with kernel compile doublefailure Linux - General 5 07-12-2002 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration