0

This question already has an answer here:

I'm a new user of ubuntu and have messed up my system because of lack of information.

Few days back i tried to install WINE WINDOWS PROGRAM LOADER v1.8 on my laptop but during the download my pc got shut down and after that any command releated to wine gives me an error.

Now all i want to do is to completely uninstall it and everthing releated to wine.

I'm using ubuntu 16.04 LTS

marked as duplicate by Panther, David Foerster, Eric Carvalho, TheWanderer, Charles Green Jan 10 '17 at 16:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

The usual remove command would leave you their file associations that remain untouched by remove operation (for example .wine directory).

This situation would leave you wondering what went wrong. If you want a complete uninstall, execute the following commands in Terminal one-by-one:

sudo apt remove wine
rm -r "$HOME/.wine"
rm $HOME/.config/menus/applications-merged/wine*
rm -r "$HOME/.local/share/applications/wine"
rm $HOME/.local/share/desktop-directories/wine*
rm $HOME/.local/share/icons/????_*.xpm

Followed by purge command:

sudo apt remove --purge wine

Again run the following commands to correct any installation error.

sudo apt update
sudo apt autoclean
sudo apt clean
sudo apt autoremove

Source:

Completely remove wine linux Ubuntu systems

https://askubuntu.com/a/126745/253251

0

Try the following:

  1. Open Terminal (ctrl+alt+t)
  2. Enter the command sudo apt remove wine --purge

If the command from step 2 doesn't work use two dashes before 'purge'

  • Will purging do any harm? – Saksham Jan 10 '17 at 7:27
  • no, purge just means it gets rid of all files pertaining to the selected package, in this case wine – cheesits456 Jan 10 '17 at 7:48
  • none of tge command worked error: unable to locate package wine-purge – Saksham Jan 10 '17 at 7:52
  • @user109256, copy and paste the command into the terminal. – Chai T. Rex Jan 10 '17 at 8:07
  • @ChaiT.Rex package 'wine' is not installed so not removed. – Saksham Jan 10 '17 at 8:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.