无法在 Ubuntu 18.04 中卸载 wine

无法在 Ubuntu 18.04 中卸载 wine

我正在使用 Ubuntu 18.04,最近我安装了 wine,但它找不到文件,.dll所以我运行命令,sudo apt-get remove winehq它显示 wine 已被卸载,但当我输入时,which wine我得到的输出/usr/bin/wine似乎它还没有完全卸载,当我尝试时,sudo apt-get purge wine*我收到以下错误

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'

输出apt list --installed | grep wine

WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 
wine-devel/bionic,now 4.0~rc3~bionic amd64 [installed,automatic] 
wine-devel-amd64/bionic,now 4.0~rc3~bionic amd64 [installed,automatic] 
wine-devel-i386/bionic,now 4.0~rc3~bionic i386 [installed,automatic] 
winehq-devel/bionic,now 4.0~rc3~bionic amd64 [installed] winetricks/bionic,bionic,now 0.0+20180217-1 all [installed]

我做错了什么以及如何完全删除与 wine 相关的所有内容并正确安装它

答案1

您可以卸载所有相关的依赖项wine

sudo apt-get remove --autoremove wine-*

答案2

您似乎安装了 wine 的开发版本(又称 beta 版),有时可能不稳定。要删除 wine,请运行:

sudo apt autoremove wine-devel wine-devel-amd64 wine-devel-i386 winehq-devel winetricks

我建议你安装 wine-stable 来获得 bug 最少的 wine。要安装它,请运行:

sudo apt install wine-stable

相关内容