无法删除 Wine:没有要删除的软件包

无法删除 Wine:没有要删除的软件包

我正在尝试使用 Ubuntu 软件商店卸载 wine,但它一直提示“无法删除 Wine:没有要删除的软件包”

编辑:命令:

swastik@Swas-PC-Ubuntu:~$ sudo apt install winehq-stable
[sudo] password for swastik: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 7.0.0.0~hirsute-1)
E: Unable to correct problems, you have held broken packages.
swastik@Swas-PC-Ubuntu:~$ sudo apt install wine-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine-stable : Depends: libc6 (>= 2.33) but 2.31-0ubuntu9.7 is to be installed
               Depends: wine-stable-i386 (= 7.0.0.0~hirsute-1)
               Depends: wine-stable-amd64 (= 7.0.0.0~hirsute-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
swastik@Swas-PC-Ubuntu:~$ sudo apt install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6 is already the newest version (2.31-0ubuntu9.7).
The following package was automatically installed and is no longer required:
  libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
swastik@Swas-PC-Ubuntu:~$ sudo apt install wine-stable-i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine-stable-i386:i386 : Depends: libc6:i386 (>= 2.33) but 2.31-0ubuntu9.7 is to be installed
                         Recommends: libcups2:i386 but it is not going to be installed
                         Recommends: libglu1-mesa:i386 but it is not going to be installed or
                                     libglu1:i386
                         Recommends: libodbc1:i386 but it is not going to be installed
                         Recommends: libosmesa6:i386 but it is not going to be installed
                         Recommends: libsdl2-2.0-0:i386 but it is not going to be installed
                         Recommends: libv4l-0:i386 but it is not going to be installed
                         Recommends: libxcomposite1:i386 but it is not going to be installed
                         Recommends: libxcursor1:i386 but it is not going to be installed
                         Recommends: libxfixes3:i386 but it is not going to be installed
                         Recommends: libxi6:i386 but it is not going to be installed
                         Recommends: libxinerama1:i386 but it is not going to be installed
                         Recommends: libxrandr2:i386 but it is not going to be installed
                         Recommends: libxrender1:i386 but it is not going to be installed
                         Recommends: libxxf86vm1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
swastik@Swas-PC-Ubuntu:~$ sudo apt install wine-stable-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine-stable-amd64 : Depends: libc6 (>= 2.33) but 2.31-0ubuntu9.7 is to be installed
                     Recommends: libodbc1 but it is not going to be installed
                     Recommends: libosmesa6 but it is not going to be installed
                     Recommends: libsdl2-2.0-0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
swastik@Swas-PC-Ubuntu:~$ 

答案1

使用以下命令搜索包含单词“wine”的已安装软件包:

dpkg -l | grep wine

为了更准确,你可以搜索以单词 wine 开头的包:

dpkg -l | grep "ii  wine"

要卸载软件包,可以使用命令apt purge。例如,如果要卸载软件包wine64,请使用以下命令:

sudo apt purge wine64

最后,要删除您的 wine 前缀,请运行以下命令:

cd
rm -r .wine

或者

cd
rm -r .wine*

相关内容