After upgrading a machine from 17.10 to 18.04LTS, the previously happy installation of Wine appears to be borked. Given the many issues reported (and the interesting comments from Clem on Linux Mint discoveries), I thought I would just blow away the old Wine, and reinstall from scratch following the "canonical" instructions here on Askubuntu.
Unfortunately, I don't get very far. In response to
sudo apt purge wine*
I get the error message:
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package winehq.key
E: Couldn't find any package by glob 'winehq.key'
E: Couldn't find any package by regex 'winehq.key'
Yet, for which wine
I get /usr/bin/wine
, and dpkg
gives me this:
$ dpkg -l | grep wine
ii fonts-wine 3.0-1ubuntu1 all Windows API implementation - fonts
ii libwine:amd64 3.0-1ubuntu1 amd64 Windows API implementation - library
ii wine-stable 3.0-1ubuntu1 all Windows API implementation - standard suite
ii wine-stable-amd64 4.0.1~bionic amd64 WINE Is Not An Emulator - runs MS Windows programs
ii wine64 3.0-1ubuntu1 amd64 Windows API implementation - 64-bit binary loader
ii winetricks 0.0+20180217-1all package manager for Wine to install software easily
I really don't know what to do next. I've done all the searching I can think of on my error messages, but am none the wiser. And I don't feel I should proceed with a fresh Wine installation until I've obliterated the current (borked!) one.
How can I get rid of this Wine, then? If there are any other diagnostics I should/could run, please let me know and I'll update this question.
winehq.key
present in the current directory? Try escaping or quoting the asterisk character withsudo apt purge 'wine*'
– user000001 Jun 02 '19 at 21:48