• We did not send an email asking for donations - please read this post.

How to install Wine 7 on Ubuntu 22.04

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,921
Reaction score
1,328
Credits
14,273
How to install WINE 7 on Ubuntu 22.04 or a Linux OS based on it

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.
If your system is 64 bit, enable 32 bit architecture (if you haven't already):
Code:
sudo dpkg --add-architecture i386
Download and add the repository key:
Code:
wget -nc https://dl.winehq.org/wine-builds/winehq.key
Code:
sudo mv winehq.key /usr/share/keyrings/winehq-archive.key
Add the repository:
Code:
wget -nc https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
Code:
sudo mv winehq-jammy.sources /etc/apt/sources.list.d/
Now run
Code:
sudo apt update
Code:
sudo apt install --install-recommends winehq-stable
after that is finished run
Code:
winecfg
To install Wine Gecko run
Code:
wine iexplore
you should get the popup telling you to install wine gecko
 


brad128

New Member
Joined
Oct 2, 2022
Messages
1
Reaction score
0
Credits
6
Hey, you've got the key saving to /usr/share/keyring and your [signed-by] in your winehq-jammy.sources is pointing to /etc/apt/keyring
 

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
833
Reaction score
333
Credits
7,108
i just did "sudo apt install wine", and i'm pretty sure that worked
 

bob466

Well-Known Member
Joined
Oct 22, 2020
Messages
655
Reaction score
466
Credits
4,801
i just did "sudo apt install wine", and i'm pretty sure that worked

Yeah me too and it does.
m100.gif

Then I run...
Code:
wine --version
 
OP
Lord Boltar

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,921
Reaction score
1,328
Credits
14,273
i just did "sudo apt install wine", and i'm pretty sure that worked
That only grabs the Wine from the repository and may not be the latest version and the command you run does not install the i386 dependencies - need to run
Code:
lspcu
first to check your cpu if it is 32bit/64bit then run
Code:
sudo apt install wine64
and
Code:
sudo apt install wine32
just running
Code:
sudo apt install wine
only grabs the 64 bit not the 32bit plus it will not get update from WineHQ
 
Last edited:
OP
Lord Boltar

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,921
Reaction score
1,328
Credits
14,273
Hey, you've got the key saving to /usr/share/keyring and your [signed-by] in your winehq-jammy.sources is pointing to /etc/apt/keyring
yes you have to move the keyring to the default location which is /usr/share/keyrings/winehq-archive.key
you also have to move the winehq-jammy.sources to /etc/apt/sources.list.d/

Ubuntu 22 / Debian 11 no longer read 3rd party from anywhere else
 

freshukulele

New Member
Joined
Oct 3, 2022
Messages
3
Reaction score
0
Credits
21
yes you have to move the keyring to the default location which is /usr/share/keyrings/winehq-archive.key
you also have to move the winehq-jammy.sources to /etc/apt/sources.list.d/

Ubuntu 22 / Debian 11 no longer read 3rd party from anywhere else
Hi, could you explain how to do it please ?
I´m pretty lost on it. It´s been more than a week I´m looking to a solution to get wine 7 on my Ubuntu 22 as I recently upgrade the OS from 20 to 22 version.
And today I found this thread I am sure you can help the novice I am
 
OP
Lord Boltar

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,921
Reaction score
1,328
Credits
14,273
Hi, could you explain how to do it please ?
I´m pretty lost on it. It´s been more than a week I´m looking to a solution to get wine 7 on my Ubuntu 22 as I recently upgrade the OS from 20 to 22 version.
And today I found this thread I am sure you can help the novice I am
just use post # 1 follow step by step
 

freshukulele

New Member
Joined
Oct 3, 2022
Messages
3
Reaction score
0
Credits
21
just use post # 1 follow step by step
thanks for respounding,
I have just clean it with sudo apt remove and followed each step but I get an error on this : sudo apt install --install-recommends winehq-stable
it says impossible to found it.
Do I need to delete .wine files too ? Or does it come from the fact there is no stable version for wine 7 on Ubuntu 22 (I saw it on the winehq website)

thank you
 

bob466

Well-Known Member
Joined
Oct 22, 2020
Messages
655
Reaction score
466
Credits
4,801
I right click the windwoes software to be installed...select "Open with" and "Other Application"...go to the bottom and in box type "wine" and click "Set as Default" and away I go.
m100.gif


On Mint Cinnamon 19.1 I have wine 4 and on 20.1 its wine 5...I don't think it matters much what version it is...software is either going to work or not...that's why I have a windwoes VM...but handy to know.
m1227.gif
 
Last edited:
OP
Lord Boltar

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,921
Reaction score
1,328
Credits
14,273
thanks for respounding,
I have just clean it with sudo apt remove and followed each step but I get an error on this : sudo apt install --install-recommends winehq-stable
it says impossible to found it.
Do I need to delete .wine files too ? Or does it come from the fact there is no stable version for wine 7 on Ubuntu 22 (I saw it on the winehq website)

thank you
you have to remove all old wine versions first - all of it not just some of it, it will cause dependencies issues if you do not

wine 7 is stable on Ubuntu 22 see here - https://wiki.winehq.org/Ubuntu

to remove wine completely here - https://wiki.winehq.org/FAQ#How_do_I_wipe_the_virtual_Windows_installation.3F

Personally I never upgrade the OS from one version to another I always do a clean install
- less headaches that way
 
Last edited:

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
833
Reaction score
333
Credits
7,108
you have to remove all old wine versions first - all of it not just some of it, it will cause dependencies issues if you do not

wine 7 is stable on Ubuntu 22 see here - https://wiki.winehq.org/Ubuntu

to remove wine completely here - https://wiki.winehq.org/FAQ#How_do_I_wipe_the_virtual_Windows_installation.3F

Personally I never upgrade the OS from one version to another I always do a clean install
- less headaches that way

I did exactly those things (even made a script for all those removals listed on the winehq page...) but unfortunately i got mostly errors from your instructions in OP, and i had to go back to using sudo apt install wine, that version of wine seems to work okay. I installed windows software with it, and it worked...
 
Last edited:
OP
Lord Boltar

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,921
Reaction score
1,328
Credits
14,273
Since when I posted this originally back in June a couple of things has changed - so I made a new guide with the changes

Install WINE 7 on Ubuntu 22.04 or a Linux OS based on it as of 21Nov2022

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

Install WINE 7 on Ubuntu 22.04 or a Linux OS based on it as of 21Nov2022

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

Code:
sudo dpkg --add-architecture i386

Add the repository: This is a change

Code:
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Now run - This is a change

Code:
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources

Now Run
Code:
sudo apt update

after that is finished run

Code:
sudo apt install --install-recommends winehq-stable

Code:
winecfg

to install Wine Gecko run
Code:
wine iexplore
you should get the popup telling you to install wine gecko

Also have a look here - https://wiki.winehq.org/Ubuntu
 

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
833
Reaction score
333
Credits
7,108
Since when I posted this originally back in June a couple of things has changed - so I made a new guide with the changes

Install WINE 7 on Ubuntu 22.04 or a Linux OS based on it as of 21Nov2022

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

Install WINE 7 on Ubuntu 22.04 or a Linux OS based on it as of 21Nov2022

If you have previously installed a Wine package from another repository, please remove it and any packages that depend on it (e.g., wine-mono, wine-gecko, winetricks) before attempting to install the WineHQ packages, as they may cause dependency conflicts.

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

Code:
sudo dpkg --add-architecture i386

Add the repository: This is a change

Code:
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

Now run - This is a change

Code:
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources

Now Run
Code:
sudo apt update

after that is finished run

Code:
sudo apt install --install-recommends winehq-stable

Code:
winecfg

to install Wine Gecko run
Code:
wine iexplore
you should get the popup telling you to install wine gecko

Also have a look here - https://wiki.winehq.org/Ubuntu
That seems to have worked, even though i was still getting this error message. Overall, thank you:

Code:
E: The repository 'https://ppa.launchpadcontent.net/micahflee/ppa/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://ppa.launchpadcontent.net/wine/wine-builds/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
 
OP
Lord Boltar

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
1,921
Reaction score
1,328
Credits
14,273
That seems to have worked, even though i was still getting this error message. Overall, thank you:

Code:
E: The repository 'https://ppa.launchpadcontent.net/micahflee/ppa/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://ppa.launchpadcontent.net/wine/wine-builds/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
You need to remove these from your repository list since they are dead most likely located here - /etc/apt/sources.list.d/ -
https://ppa.launchpadcontent.net/micahflee/ppa/ubuntu jammy Release
https://ppa.launchpadcontent.net/wine/wine-builds/ubuntu jammy Release'
once removed then run
Code:
sudo apt update
and see if those errors are gone
 

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
833
Reaction score
333
Credits
7,108
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Latest posts

Top