Upgrading wine on Ubuntu 16.04

Questions about Wine on Linux
Post Reply
jimapplecore
Level 1
Level 1
Posts: 5
Joined: Fri Apr 17, 2020 9:59 am
Location: East Coast U.S

Upgrading wine on Ubuntu 16.04

Post by jimapplecore » Sun Feb 14, 2021 9:53 pm

Ubuntu 16.04 (Xenial)
wine --version = wine-1.6.2
Linux x86_64 GNU/Linux 4.15.0-133-generic #137~16.04.1-Ubuntu
Repository has only wine-1.6.2 (boy that's old)

I am trying to upgrade to the latest (6.0)
Searching the forum didn't bear fruit.
I have followed the wiki tutorial:

sudo dpkg --add-architecture i386
sudo apt-get update
wget -O- -q https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
sudo apt-get update
sudo apt install --install-recommends winehq-stable

OUTPUT ******************************
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: wine-stable-i386 (= 6.0.0~focal-1)
Depends: wine-stable-amd64 (= 6.0.0~focal-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
*******************************************
Trying to individually install dependencies reports the same error...
"E: Unable to correct problems, you have held broken packages."

what exactly does this mean? "held broken packages." ?

Is this behavior typical for this distribution and version? Is ubuntu -16.04 doomed to wine-1.6 ?

I received a suggestion that I must completely obliterate any previous versions of wine but...
trying to uninstall using Synaptic Package Manager gives me scary error messages and RED WARNINGS.

Any advice before I brick my wine bottles?

Once successful, I will post a tutorial for this specific task.

jkfloris
Level 9
Level 9
Posts: 1376
Joined: Thu Aug 14, 2014 10:10 am

Re: Upgrading wine on Ubuntu 16.04

Post by jkfloris » Mon Feb 15, 2021 7:04 am

The latest version for Xenial is Wine 5.19
Ubuntu 16.04 (Xenial)
...
wine-stable : Depends: wine-stable-i386 (= 6.0.0~focal-1)
...
Probably you have the wrong repo somewhere in your /etc/apt/sources.list(.d/*)

What is the output of:

Code: Select all

grep -R ^deb /etc/apt/sources.list*

jkfloris
Level 9
Level 9
Posts: 1376
Joined: Thu Aug 14, 2014 10:10 am

Re: Upgrading wine on Ubuntu 16.04

Post by jkfloris » Mon Feb 15, 2021 10:49 am

Since there will be no new versions for Xenial anyway, it might be easier to download the deb files and install them with sudo dpkg -i
A complete Wine installation has four packages. Download all four packages into an empty directory and install them with:

Code: Select all

cd <directory/with/the/deb/files>
# Install the Wine packages
sudp dpkg -i *.deb

# Fix the dependencies
sudo apt-get -f install
- wine staging 5.19
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... l_i386.deb

- wine stable 5.0.3
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... l_i386.deb

- wine devel 5.19
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... l_i386.deb

jimapplecore
Level 1
Level 1
Posts: 5
Joined: Fri Apr 17, 2020 9:59 am
Location: East Coast U.S

Re: Upgrading wine on Ubuntu 16.04

Post by jimapplecore » Mon Feb 15, 2021 1:10 pm

The output to
-- grep -R ^deb /etc/apt/sources.list* --
is quite long. I install and test lots of software.
I am reluctant to post that as it may expose a security risk.

I will try installing the four debs you suggest.
Thank you. if this works I will post results and a tutorial.

jimapplecore
Level 1
Level 1
Posts: 5
Joined: Fri Apr 17, 2020 9:59 am
Location: East Coast U.S

Re: Upgrading wine on Ubuntu 16.04

Post by jimapplecore » Tue Feb 16, 2021 6:58 pm

jkfloris is correct.
installing the four debs works on Ubuntu-16.04.1 Linux 4.15.0-133-generic

I made backup copies of my wine bottles first.
Good thing, because this destroyed them all, and the new winetricks (20210206) uses a different location for the new prefixes...
Old prefix location = ~/.wine/
New prefix location ~/.local/share/wineprefixes/


**** quoted from above, these are the 4 debs I installed following jkfloris instructions ****
- wine stable 5.0.3
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... _amd64.deb
https://dl.winehq.org/wine-builds/ubunt ... l_i386.deb

I did have some trouble uninstalling wine-1.6 through "Synaptic package manager"...
I had to uninstall all wine packages one at a time or it would refuse.
(sometimes it had to be in a specific order, I used trial and error)
Then Synaptic insisted on installing wine-1.9 ...ok... I did that.
After installing wine-1.9, I was able to uninstall wine-1.9 one package at a time, again through Synaptic.

Then I installed the four debs. (SUCCESS!!)

NOW
$ wine --version
wine-5.0.3

I dropped in the latest version of winetricks from winehq
"/usr/bin/winetricks"
chmod +x winetricks

$ winetricks --version
20210206-next - sha256sum: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I installed and tested "Zillions of Games" on a 32 bit XP configuration after installing corefonts.
(SUCCESS!!)

The next task is to delete or edit all of my menu and launcher .configs
On my system, located here:
~/.config/menus/applications-merged/xxx.menu
~/.local/share/applications/wine/Programs/xxx/xxx.desktop

Post Reply