Issue when installing Wine

Questions about Wine on Linux
Locked
lavadisco
Newbie
Newbie
Posts: 3
Joined: Fri Mar 26, 2021 12:44 am

Issue when installing Wine

Post by lavadisco »

So I'm going through the instructions on the winehq.org/Ubuntu page, and I get to this step which gives me weird errors. What is going on?

Code: Select all

~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' 
Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease                      
Hit:3 https://updates.signal.org/desktop/apt xenial InRelease                  
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease                   
Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]     
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]      
Hit:7 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic InRelease    
Ign:8 http://dl.google.com/linux/earth/deb stable InRelease                    
Hit:9 http://dl.google.com/linux/earth/deb stable Release                      
Get:10 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]  
Hit:11 http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic InRelease  
Hit:13 http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic InRelease
Ign:14 https://kx.studio/repo stable InRelease
Ign:15 https://kx.studio/repo gcc5 InRelease                             
Hit:16 http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic InRelease
Hit:17 https://kx.studio/repo stable Release      
Hit:18 https://kx.studio/repo gcc5 Release                               
Hit:20 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic InRelease
Ign:22 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal InRelease
Err:23 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal Release
  404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ubuntu-wine/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.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Issue when installing Wine

Post by jkfloris »

...
Hit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease
...
Hit:3 https://updates.signal.org/desktop/apt xenial InRelease
...
Hit:7 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic InRelease
...
Maybe it will work, but it is not recommended to mix different versions.
Remove this repository from /etc/apt/sources.list
lavadisco
Newbie
Newbie
Posts: 3
Joined: Fri Mar 26, 2021 12:44 am

Re: Issue when installing Wine

Post by lavadisco »

I was literally copying and pasting what's on the Winehq instructions. Why would it mix versions like that?
And don't I need the Ubuntu focal release version as I'm on Ubuntu? (sorry if this is a dumb question)
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: Issue when installing Wine

Post by dimesio »

Which version of Ubuntu are you on? Your /etc/apt/sources.list has repositories for xenial, bionic, and focal.
In addition, even if you are on focal, the repository that is throwing the error is not the WineHQ repository:

Code: Select all

E: The repository 'http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu focal Release' does not have a Release file.'
These repositories weren't added by the commands you copied from our wiki; you must have added them separately, perhaps some time ago, and you forgot. They have nothing to do with our packages.

You should only have repositories for the version of Ubuntu you are currently using; the mismatch can prevent packages from installing. You also need to remove the PPA that is causing the errors, unless, of course you want to install their packages instead of the WineHQ ones. If that is the case, ask for help from the maintainers of that PPA; it has nothing to do with our packages.
Locked