Error when trying to install Wine in Linux Mint 19

Questions about Wine on Linux
Locked
Tootler
Level 2
Level 2
Posts: 23
Joined: Tue May 12, 2009 7:32 am

Error when trying to install Wine in Linux Mint 19

Post by Tootler »

I've just tried to install Wine in Linux Mint 19 64 bit following the instructions on the WineHQ page.

Code: Select all

sudo dpkg --add-architecture i386
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
#sudo apt-key add Release.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
I get an error message. Here is the full output from the terminal

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Hit:1 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]    
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]    
Hit:6 http://archive.canonical.com/ubuntu bionic InRelease                     
Ign:7 http://packages.linuxmint.com tara InRelease                       
Hit:8 http://packages.linuxmint.com tara Release  
Fetched 158 kB in 1s (118 kB/s)
Reading package lists... Done
--2018-12-15 16:22:03--  https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2620:113:80c0:8::13
Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1089 (1.1K)
Saving to: ‘Release.key’

Release.key         100%[===================>]   1.06K  --.-KB/s    in 0s      

2018-12-15 16:22:03 (76.8 MB/s) - ‘Release.key’ saved [1089/1089]

E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Error when trying to install Wine in Linux Mint 19

Post by jkfloris »

There is an error in:

Code: Select all

/etc/apt/sources.list.d/additional-repositories.list
Could you post the content of that file?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Error when trying to install Wine in Linux Mint 19

Post by dimesio »

Code: Select all

wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
#sudo apt-key add Release.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/bionic main'
According to this, you downloaded the Release.key for the OBS repository for cosmic, but then added the repository on dl.winehq.org for bionic (and did that incorrectly, too).

Since Mint 19 is based on bionic, you need to delete the OBS release key and download and add the one from dl.winehq.org. You also need to delete deb https://dl.winehq.org/wine-builds/ubuntu/bionic main from your /etc/apt/sources.list.d/additional-repositories.list and add it correctly:

Code: Select all

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
(note bionic is not part of the URL).
Tootler
Level 2
Level 2
Posts: 23
Joined: Tue May 12, 2009 7:32 am

Re: Error when trying to install Wine in Linux Mint 19

Post by Tootler »

Thx.

I'll have another look. I simply copied and pasted from the WinHQ download page.
Tootler
Level 2
Level 2
Posts: 23
Joined: Tue May 12, 2009 7:32 am

Re: Error when trying to install Wine in Linux Mint 19

Post by Tootler »

Right, I had another go, copying the commands from https://wiki.winehq.org/Ubuntu

Code: Select all

wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
sudo apt-key add Release.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
This time I get a different error message; repository is unsigned.

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Hit:1 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:3 http://archive.canonical.com/ubuntu bionic InRelease                     
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]      
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]    
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]    
Ign:7 http://packages.linuxmint.com tara InRelease                             
Hit:8 http://packages.linuxmint.com tara Release                               
Fetched 247 kB in 1s (184 kB/s)                                
Reading package lists... Done
--2018-12-16 11:23:25--  https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2620:113:80c0:8::13
Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1089 (1.1K)
Saving to: ‘Release.key’

Release.key         100%[===================>]   1.06K  --.-KB/s    in 0s      

2018-12-16 11:23:26 (69.0 MB/s) - ‘Release.key’ saved [1089/1089]

OK
Hit:1 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:3 http://archive.canonical.com/ubuntu bionic InRelease                     
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]      
Get:5 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [4,701 B]      
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]    
Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]    
Ign:8 http://packages.linuxmint.com tara InRelease                             
Hit:9 http://packages.linuxmint.com tara Release                               
Err:5 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' 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.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package winehq-stable
Linux Mint 19 was a clean install - replacing Mint 17, so no previous version of Wine as Mint 17 was deleted.
Jijil
Level 2
Level 2
Posts: 14
Joined: Wed May 17, 2017 6:37 am

Re: Error when trying to install Wine in Linux Mint 19

Post by Jijil »

In Mint, you have the "software sources" graphical application to get an easier overlook on what's in the list on your pc (repositories, PPAs, keys, ...).
Most can be edited from there (ie: you can delete wrong keys).
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Error when trying to install Wine in Linux Mint 19

Post by dimesio »

Tootler wrote:Right, I had another go, copying the commands from https://wiki.winehq.org/Ubuntu

Code: Select all

wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Ubuntu_18.10_standard/Release.key
You just repeated the mistake I pointed out to you earlier, which is downloading the wrong Release.key. The key you downloaded again is only for the Ubuntu 18.10 repository on the OBS. Mint 19 is not based on Ubuntu 18.10 and you should not be following those instructions.

Follow the instructions under "For Ubuntu versions prior to 18.10:"
Tootler
Level 2
Level 2
Posts: 23
Joined: Tue May 12, 2009 7:32 am

Re: Error when trying to install Wine in Linux Mint 19

Post by Tootler »

As I'm using Mint, I don't keep track of Ubuntu versions, so maybe you need to make that clearer on the download page. I was assuming the most recent version of Mint was based on the most recent version of Ubuntu. A not unreasonable assumption, I suggest.
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Error when trying to install Wine in Linux Mint 19

Post by dimesio »

The notes for Mint 19 users are clearly in the section for Ubuntu versions prior to 18.10.
pathfinder027
Newbie
Newbie
Posts: 1
Joined: Wed Dec 19, 2018 5:50 pm

Re: Error when trying to install Wine in Linux Mint 19

Post by pathfinder027 »

I too have been unable to install wine on my Linux Mint 19 PC. I have tried using both Release.key and winehq.key, with the same resulting error message. Can you help me? Here is the sequence of commands and responses I have gotten in my attempts to install. it never lets me get to the point of actually installing wine-stable.

pathfinder@Al:~$ sudo nano /etc/apt/sources.list

GNU nano 2.9.3 /etc/apt/sources.list

#deb cdrom:[Linux Mint 19 _Tara_ - Release amd64 20180717]/ bionic contrib main$

pathfinder@Al:~$ wget https://dl.winehq.org/wine-builds/Release.key
--2018-12-19 12:40:13-- https://dl.winehq.org/wine-builds/Release.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.250.217
Connecting to dl.winehq.org (dl.winehq.org)|151.101.250.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3122 (3.0K) [application/pgp-keys]
Saving to: ‘Release.key.2’

Release.key.2 100%[===================>] 3.05K --.-KB/s in 0s

2018-12-19 12:40:15 (11.4 MB/s) - ‘Release.key.2’ saved [3122/3122]

pathfinder@Al:~$ sudo apt-key add Release.key
OK
pathfinder@Al:~$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu bionic main'
pathfinder@Al:~$ sudo apt-get update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.

(NOTE: I also tried the above sequence, using winehq.key instead of Release.key, with the same results.)
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Error when trying to install Wine in Linux Mint 19

Post by dimesio »

Release.key is the wrong one; winehq.key is the correct one. However, I think you probably added that successfully, or you'd be getting an error message about the repository not having a key.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
That's your problem. Edit /etc/apt/sources.list.d/additional-repositories.list and correct or delete whatever the malformed entry is.
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Error when trying to install Wine in Linux Mint 19

Post by dimesio »

pathfinder@Al:~$ sudo apt-get update
The other thing to note is that users are now advised to use apt rather than apt-get. (But you still need to fix the malformed entry.)
Tootler
Level 2
Level 2
Posts: 23
Joined: Tue May 12, 2009 7:32 am

Re: Error when trying to install Wine in Linux Mint 19

Post by Tootler »

Sorry for the delay replying. I left it alone for a while and attended to other things but the other day, I decided to try again. I cleared everything out, and started again. I made a careful check to make sure all the steps in the download page were correct first. The instructions are much clearer now, btw.

The install went fine this time and I've been able to install wine OK.
Locked