I'm trying to install wine and I have to run the command sudo apt install --install-recommends winehq-staging. When I try to I get this output from the terminal:
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-staging : Depends: wine-staging (= 6.13~groovy-1)
E: Unable to correct problems, you have held broken packages.
Any help would be greatly appreciated
Trying to install wine and I get this error
-
- Level 1
- Posts: 5
- Joined: Sat Sep 11, 2021 12:31 pm
Re: Trying to install wine and I get this error
Try to manually find out which package is blocking Wine's installation. Probably the following command will give you more information:
Please note that Ubuntu 20.10 Groovy Gorilla is no longer supported.
Code: Select all
sudo apt install --install-recommends wine-staging-amd64
-
- Level 1
- Posts: 5
- Joined: Sat Sep 11, 2021 12:31 pm
Re: Trying to install wine and I get this error
So i'm a newbie to linux and don't think I can fully solve this problem on my own
This is the output I get from the terminal after entering the command that @jkfloris sent me:
The following packages have unmet dependencies:
wine-staging-amd64 : Depends: libc6 (>= 2.32) but 2.31-0ubuntu9.2 is to be installed
Recommends: libcapi20-3 but it is not going to be installed
Recommends: libodbc1 but it is not going to be installed
Recommends: libosmesa6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
This is the output I get from the terminal after entering the command that @jkfloris sent me:
The following packages have unmet dependencies:
wine-staging-amd64 : Depends: libc6 (>= 2.32) but 2.31-0ubuntu9.2 is to be installed
Recommends: libcapi20-3 but it is not going to be installed
Recommends: libodbc1 but it is not going to be installed
Recommends: libosmesa6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Re: Trying to install wine and I get this error
Most likely you are mixing different Ubuntu versions.
libc6 2.31-0ubuntu9.2 is from Ubuntu Focal
and you're trying to install Wine for Ubuntu Groovy.
What is the output of:
libc6 2.31-0ubuntu9.2 is from Ubuntu Focal
and you're trying to install Wine for Ubuntu Groovy.
What is the output of:
Code: Select all
grep -R ^deb /etc/apt/sources.list*
-
- Level 1
- Posts: 5
- Joined: Sat Sep 11, 2021 12:31 pm
Re: Trying to install wine and I get this error
The output for that is this:
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-focal.list.save:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-focal.list:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-focal.list.save:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-focal.list:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal main
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list.save:deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list.save:deb http://security.ubuntu.com/ubuntu focal-security multiverse
Re: Trying to install wine and I get this error
You added the wrong Wine repository. You are using Ubuntu Focal and have added the Wine repository for Ubuntu Groovy.
You can fix this with the following commands:
After this, you should be able to install Wine.
You can fix this with the following commands:
Code: Select all
sudo sed -i 's/groovy/focal/g' /etc/apt/sources.list
sudo apt update