Can't install wine on Ubuntu 20.04

Questions about Wine on Linux
Locked
paul123321
Newbie
Newbie
Posts: 1
Joined: Tue Mar 01, 2022 6:19 am

Can't install wine on Ubuntu 20.04

Post by paul123321 »

I'm trying to install winehq on Ubuntu 20.04, following the provided guide, but I am stuck and don't know how to proceed. I have ran the command:

Code: Select all

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
And this is what I get as output:

Code: Select all

Get:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-3-local  InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local  Release [564 B]
Hit:5 http://it.archive.ubuntu.com/ubuntu focal InRelease                              
Ign:6 http://archive.canonical.com precise InRelease                                   
Get:7 http://archive.canonical.com precise Release [8.180 B]                           
Hit:8 http://it.archive.ubuntu.com/ubuntu focal-updates InRelease                      
Hit:9 https://download.docker.com/linux/ubuntu focal InRelease                         
Ign:10 http://ppa.launchpad.net/dolphin-emu/ppa/ubuntu focal InRelease                 
Hit:11 http://it.archive.ubuntu.com/ubuntu focal-backports InRelease                   
Hit:12 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                        
Get:13 http://archive.canonical.com precise Release.gpg [181 B]                        
Get:14 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]             
Err:15 http://ppa.launchpad.net/dolphin-emu/ppa/ubuntu focal Release                   
  404  Not Found [IP: 91.189.95.85 80]
Ign:13 http://archive.canonical.com precise Release.gpg                                
Get:16 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40,6 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66,3 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2.464 B]
Hit:4 https://ctan.mirror.garr.it/mirrors/ctan/systems/win32/miktex/setup/deb bionic InRelease
Hit:19 https://packages.microsoft.com/repos/ms-teams stable InRelease                  
Reading package lists... Done                                                          
E: The repository 'http://ppa.launchpad.net/dolphin-emu/ppa/ubuntu focal 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.
W: GPG error: http://archive.canonical.com precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5
E: The repository 'http://archive.canonical.com precise Release' is not signed.
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.
N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu bionic InRelease' doesn't support architecture 'i386'
I have no clue what this could mean, and there are errors related to things like dolphin and miktex which I assume have nothing to do with wine. Does anybody know why this may be happening and how can I fix it?
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Re: Can't install wine on Ubuntu 20.04

Post by johnaaronrose »

Try 'sudo apt update' followed by 'sudo apt upgrade' followed by 'sudo apt install wine64 winetricks' to install 64 bit Wine (you will only need 32 bit Wine if you intend to install 32 bit apps) but see my PS below.
PS The above gave me Wine v5.0.3 from standard Ubuntu repositories which runs Ok for me. I didn't use the repository you used . I would advise you to delete that repository first by using the Software & Updates app supplied by Ubuntu followed by clicking the Other Software tab.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't install wine on Ubuntu 20.04

Post by jkfloris »

you will only need 32 bit Wine if you intend to install 32 bit apps
Keep in mind that there is a lot of 32-bit software out there. (Almost all Windows setup.exe and install.exe installation files are 32-bit) So you probably want to have the 32-bit packages as well. Pure 64-bit isn't supported.

@paul123321

Code: Select all

Err:15 http://ppa.launchpad.net/dolphin-emu/ppa/ubuntu focal Release                   
  404  Not Found [IP: 91.189.95.85 80]
...
GPG error: http://archive.canonical.com precise
The error messages come from repositories that are not maintained by WineHQ.
I expect the first one to be a temporary error.
But why you also have the archives of Ubuntu 12.04 (precise) enabled is beyond me.
You can remove these lines from your sources.list.
Locked