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