我正在使用 ubuntu 18.04。我已经安装wine
并playonlinux
使用了以下命令:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt update
sudo apt install --install-recommends winehq-stable
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_bionic.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt update
sudo apt install playonlinux
现在由于某种原因我不得不卸载wine
和playonlinux
. 为此,我运行以下命令:
sudo apt remove --purge wine*
sudo apt autoremove wine-*
然后我从/etc/apt/sources.list
.
我认为这足以删除wine
and playonlinux
。但是当我运行时,apt list wine*
我得到以下输出:
wine/xenial 1:1.6.2-0ubuntu14 amd64
wine-binfmt/bionic,bionic 3.0-1ubuntu1 all
wine-development/bionic,bionic 3.6-1 all
wine-stable/bionic,bionic 3.0-1ubuntu1 all
wine1.4/xenial 1:1.6.2-0ubuntu14 amd64
wine1.4-amd64/xenial 1:1.6.2-0ubuntu14 amd64
wine1.4-dbg/xenial 1:1.6.2-0ubuntu14 amd64
wine1.4-dev/xenial 1:1.6.2-0ubuntu14 amd64
wine1.4-i386/xenial 1:1.6.2-0ubuntu14 i386
wine1.6/bionic 1:1.8.4ubuntu1 amd64
wine1.6-amd64/bionic 1:1.8.4ubuntu1 amd64
wine1.6-dbg/xenial 1:1.6.2-0ubuntu14 amd64
wine1.6-dev/bionic 1:1.8.4ubuntu1 amd64
wine1.6-i386/bionic 1:1.8.4ubuntu1 i386
wine32/bionic 3.0-1ubuntu1 i386
wine32-development/bionic 3.6-1 i386
wine32-development-preloader/bionic 3.6-1 i386
wine32-development-tools/bionic 3.6-1 i386
wine32-preloader/bionic 3.0-1ubuntu1 i386
wine32-tools/bionic 3.0-1ubuntu1 i386
wine64/bionic 3.0-1ubuntu1 amd64
wine64-development/bionic 3.6-1 amd64
wine64-development-preloader/bionic 3.6-1 amd64
wine64-development-tools/bionic 3.6-1 amd64
wine64-preloader/bionic 3.0-1ubuntu1 amd64
wine64-tools/bionic 3.0-1ubuntu1 amd64
winefish/bionic,xenial 1.3.3-0dl1ubuntu2 amd64
winetricks/bionic,bionic 0.0+20180217-1 all
我怎样才能摆脱这些包裹?
apt list
在这种情况下没有做你认为它做的事情。根据我的手册页以及 apt list 本身的输出,apt list
这是一项正在进行的工作,具有不稳定的 CLI 界面。apt list --installed
将向您显示已安装的软件包。看起来apt list
正在提供可用软件包的列表。我建议使用以下编程方式删除 Wine:
其次是
另请注意,
apt list
默认情况下不会列出已安装的软件包,但有这样做的选项 - 请参阅man apt
本地或在线:因此您需要使用以下
--installed
命令明确指定选项:获得正确的输出。
在终端中逐字输入以下命令:
请注意您正在输入写入路径,否则您可能会删除重要文件。如果您
sudo
在每个命令前面遇到权限问题删除文件后运行命令:
执行以下操作以更正任何错误: