Categories: How-to'sLinuxUbuntu

Cannot install wine-staging in Ubuntu

I had previously installed wine-stable, but for a particular program I wanted to run it was recommended that I run wine-staging. So I uninstalled wine-stable, and tried to install wine-staging as normal. 

When I run 

sudo apt install wine-staging

I get

 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 resolve the situation:

The following packages have unmet dependencies:
 wine-staging : Depends: wine-staging-amd64 (= 4.0~rc7~cosmic) but it is not going to be installed
                Depends: wine-staging-i386 (= 4.0~rc7~cosmic)
E: Unable to correct problems, you have held broken packages.

Solution as follows:

I had similar issue. I forgot to add the wine repository key.

$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -

then add the repository

$ sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'

and install your flavor of wine

$ sudo apt install winehq-staging

or $ sudo apt install winehq-stable

Checkout the new version

$ wine --version
wine-4.0

Note:

I had multiple sources for wine in my /etc/apt/sources.list.d/additional-repositories.list. Before you do the nuclear option, correct repo key and install what you need.

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

6 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

6 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

11 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

11 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

11 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

11 months ago