1

I am trying to uninstall wine using Ubuntu Software store but it keeps saying "Unable to remove Wine: no packages to remove"

Edit: Commands:

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 Answers1

1

Use the following command to search for installed packages that contain the word "wine":

dpkg -l | grep wine

To be more accurate, you can search for packages that begin with the word wine:

dpkg -l | grep "ii  wine"

To uninstall a package, you can use the apt purge command. For example, if you want to uninstall the package wine64, use the following command:

sudo apt purge wine64

Finally, to delete your wine prefix, run the following commands:

cd
rm -r .wine

or

cd
rm -r .wine*
mchid
  • 44,904
  • 8
  • 102
  • 162