Install Wine error message

Questions about applications and software
Forum rules
Before you post please read how to get help
NewMints
Level 1
Level 1
Posts: 49
Joined: Sat Apr 04, 2020 10:19 am

Install Wine error message

Post by NewMints »

Hello,
I am a new Mint Cinnamon user and I am not yet familiar with the operating system. I switched from Windows7 after support ceased. Now I'm trying to get some applications for Windows that don't run on Linux by default on Linux. That's why I want to install Wine. However, the experiment stops at this point:
sudo apt install --install-recommends winehq-stable

I get the following error message:

Some packages could not be installed. That can mean that
You have requested an impossible situation or if you have the
Unstable distribution use some packages that are still required
have not been created or have not yet left incoming.
The following information may help you resolve the situation:

The following packages have unfulfilled dependencies:
winehq-stable: depends on: wine-stable (= 5.0.0 ~ disco)
E: Problems cannot be corrected, you have defective packages withheld.

I followed these instructions for the terminal:
https://www.linuxbabe.com/linux-mint/in ... t-19-1/amp

Laptop: Toshiba Sattelite 64bit

An idea?

(Google Translate)
pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Install Wine error massage

Post by pbear »

Alas, those instructions are incorrect. Per the Release Notes, what you should have run is apt install --install-recommends wine-installer.

First, you need to undo the first attempt. This should do it: apt purge wine*. Then try the correct command.

If that doesn't work, you'll need to roll back with Timeshift, but purge should be enough in your case.
NewMints
Level 1
Level 1
Posts: 49
Joined: Sat Apr 04, 2020 10:19 am

Re: Install Wine error massage

Post by NewMints »

pbear wrote:
Sat Apr 04, 2020 2:39 pm
Alas, those instructions are incorrect. Per the Release Notes, what you should have run is apt install --install-recommends wine-installer.

First, you need to undo the first attempt. This should do it: apt purge wine*. Then try the correct command.

If that doesn't work, you'll need to roll back with Timeshift, but purge should be enough in your case.
The result with: apt purge wine*

GoogleTranslate:

xxxyyy @ xxxyyy-SATELLITE-C660: ~ $ apt purge wine *
[sudo] Password for xxxyyy:
Reading package lists ... Done
Dependency tree is built.
Status information is read in .... Done
E: Package winehq.key cannot be found.
E: No package could be found using the pattern »winehq.key«.
E: No package could be found using the regular expression "winehq.key".

After timeshift, try it again with your posted instructions and post the result
pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Install Wine error massage

Post by pbear »

Uh oh, I didn't notice the second set of installation instructions at that link. If you did direct download from WineHQ, you're probably going to need Timeshift, but that should work. There's a problem with the WineHQ instructions and they know it, but refuse to fix on principle.

By the way, you can save yourself a Google step if you prefix commands with LC_ALL=C. Forces output in English.
NewMints
Level 1
Level 1
Posts: 49
Joined: Sat Apr 04, 2020 10:19 am

Re: Install Wine error massage

Post by NewMints »

pbear wrote:
Sat Apr 04, 2020 5:29 pm
Uh oh, I didn't notice the second set of installation instructions at that link. If you did direct download from WineHQ, you're probably going to need Timeshift, but that should work. There's a problem with the WineHQ instructions and they know it, but refuse to fix on principle.

By the way, you can save yourself a Google step if you prefix commands with LC_ALL=C. Forces output in English.
I reset the system with Timeshift

Can I get the latest version 5.0 with these installation instructions? There is something with 4.0 > https://linuxmint.com/rel_tricia_cinnamon.php

I did not understand where to enter this command for the english translation.
User avatar
Flemur
Level 18
Level 18
Posts: 8486
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Install Wine error massage

Post by Flemur »

NewMints wrote:
Sat Apr 04, 2020 4:46 pm
xxxyyy @ xxxyyy-SATELLITE-C660: ~ $ apt purge wine *
Did you actually enter that?

It should remove wine, and also remove * = every package, because there's a space between wine and the *.
Can I get the latest version 5.0 with these installation instructions? There is something with 4.0 > https://linuxmint.com/rel_tricia_cinnamon.php
That installs 4.0 - do you have some special need for wine 5.?
I did not understand where to enter this command for the english translation.
You enter commands in a terminal.
(this command = LC_ALL=C? All on one line:

Code: Select all

LC_ALL=C apt install --install-recommends wine-installer
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Install Wine error massage

Post by pbear »

NewMints wrote:
Sat Apr 04, 2020 6:02 pm
Can I get the latest version 5.0 with these installation instructions?
As Flemur says, there's probably no advantage. Understand how Linux works. Two years ago, Ubuntu put together a distribution where all the parts work together. From there, everything stays pretty much the same (except the browser), receiving only security updates. That's stable release. The other form of distro is rolling release. Software being updated as much as possible, but much more risk of not working together. If you want always to have the latest software, you should be using a distro like Manjaro. On the other hand, Manjaro assumes you know how to fix the system if something goes wrong. If you don't have those skills, and they aren't going to do a lot of hand-holding, rolling distribution will be very frustrating.

So, that's why it's so difficult to install Wine 5.0 on Mint 19.x. The package base is two years old and Wine 5.0 wants packages more recent than that. It can be done, I've done it. but it's painful and not supported. You're allowed to do it, but no one promises it will work.

ETA: This is about as bad as the lag for stable release gets. A new LTS version of Ubuntu (long term support) should be out by the end of the month. That will have Wine 5.0, as will LM20 which should come out about two months later. Then we restart the stability vs. latest version clock from zero.
Flemur wrote:
Sat Apr 04, 2020 6:25 pm
Did you actually enter that?
Good eye, I missed that.
Last edited by pbear on Sat Apr 04, 2020 9:28 pm, edited 1 time in total.
User avatar
Flemur
Level 18
Level 18
Posts: 8486
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Install Wine error massage

Post by Flemur »

pbear wrote:
Sat Apr 04, 2020 7:29 pm
Flemur wrote:
Sat Apr 04, 2020 6:25 pm
Did you actually enter that?
Good eye, I missed that.
Heh - google translate from Spanish to English adds the space!
apt purge wine* to
apt purge wine *

https://translate.google.com/#view=home ... rge%20wine*
Edit: make sure you include the * at the end of the URL ^^^ - the forum software wants to remove it...sigh.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
NewMints
Level 1
Level 1
Posts: 49
Joined: Sat Apr 04, 2020 10:19 am

Re: Install Wine error massage

Post by NewMints »

Flemur wrote:
Sat Apr 04, 2020 6:25 pm
NewMints wrote:
Sat Apr 04, 2020 4:46 pm
xxxyyy @ xxxyyy-SATELLITE-C660: ~ $ apt purge wine *
Did you actually enter that?

It should remove wine, and also remove * = every package, because there's a space between wine and the *.
Can I get the latest version 5.0 with these installation instructions? There is something with 4.0 > https://linuxmint.com/rel_tricia_cinnamon.php
That installs 4.0 - do you have some special need for wine 5.?
I did not understand where to enter this command for the english translation.
You enter commands in a terminal.
(this command = LC_ALL=C? All on one line:

Code: Select all

LC_ALL=C apt install --install-recommends wine-installer
I reset my computer with timeshift. Can I expect to no longer need this command?

I just assumed that the latest version can't hurt. In the end, I only do the whole thing because I want to try to be able to use some programs that I used under windows now also via linux. It remains to be seen whether that will work.
NewMints
Level 1
Level 1
Posts: 49
Joined: Sat Apr 04, 2020 10:19 am

Re: Install Wine error massage

Post by NewMints »

Flemur wrote:
Sat Apr 04, 2020 6:25 pm
NewMints wrote:
Sat Apr 04, 2020 4:46 pm
xxxyyy @ xxxyyy-SATELLITE-C660: ~ $ apt purge wine *
Did you actually enter that?

It should remove wine, and also remove * = every package, because there's a space between wine and the *.
Can I get the latest version 5.0 with these installation instructions? There is something with 4.0 > https://linuxmint.com/rel_tricia_cinnamon.php
That installs 4.0 - do you have some special need for wine 5.?
I did not understand where to enter this command for the english translation.
You enter commands in a terminal.
(this command = LC_ALL=C? All on one line:

Code: Select all

LC_ALL=C apt install --install-recommends wine-installer
Report:

xxxyyy@xxxyyy-SATELLITE-C660:~$ LC_ALL=C dpkg --list wine* | grep "^ii"
dpkg-query: no packages found matching winehq.key
xxxyyy@xxxyyy-SATELLITE-C660:~$

Wine gecko installation
Wine could not find the gecko package. It is required by programs with embedded HTML for them to work properly. Wine can download and install the package for you.

Note: It is recommended to use the package of your distribution. Further information can be found at https://wiki.winegh.org
User avatar
karlchen
Level 21
Level 21
Posts: 12832
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Install Wine error message

Post by karlchen »

Hi, NewMints.

As your post in your German thread reveals, something is still wrong. There might be traces of previous attempts at installing Wine and/or the WineHQ repo entry might still be present in your Software Sources.
NewMints wrote:
Sun Apr 05, 2020 6:24 am
karlchen wrote:
Sun Apr 05, 2020 6:10 am
Zum anderen kannst du stattdessen auch das folgende Kommando benutzen: dpkg --list wine* | grep "^ii"
[...]

Zum dritten kannst du aber auch einfach das [Menu] öffnen und darin das Untermenu "Wine".
Wenn das Untermenü "Wine" existiert und nicht leer ist, dann sollte Wine installiert sein.
Bekomme folgende Meldung:
(Receiving the following message:)

Code: Select all

xxxyyy@xxxyyy-SATELLITE-C660:~$ dpkg --list wine* | grep "^ii"
dpkg-query: Kein Paket gefunden, das auf winehq.key passt
xxxyyy@xxxyyy-SATELLITE-C660:~$ 
Wine-Gecko-Installation

Code: Select all

Wine konnte das Gecko-Paket nicht finden. Es wird von Programmen mit eingebettetem HTML benötigt, damit diese richtig funktionieren. Wine kann das Paket für Sie herunterladen und installieren.
Hinweis: Es wird empfohlen, das Paket ihrer Distribution zu verwenden. Weitere Hinweise finden Sie unter https://wiki.winegh.org(Gecko
(Wine could not find the Gecko package. It will be needed by applications with embedded HTML in order to function properly. Wine can download and install the package for you.
Note: It is recommende to use the package provided by your distribution. More details under https://wiki.winegh.org(Gecko)
(Translations from German to English by me.)

Karl
Image
Linux Mint 19.3 64-bit Cinnamon, Total Commander 9.51 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)
User avatar
karlchen
Level 21
Level 21
Posts: 12832
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Install Wine error message

Post by karlchen »

Hi, NewMints.

Could you try to run the same command from a different directory, please: dpkg --list wine* | grep "^ii"

In the terminal first execute: cd Downloads
Second execute the command again: dpkg --list wine* | grep "^ii"

What is the screen output now?

Karl
Image
Linux Mint 19.3 64-bit Cinnamon, Total Commander 9.51 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)
User avatar
Flemur
Level 18
Level 18
Posts: 8486
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Install Wine error massage

Post by Flemur »

NewMints wrote:
Sun Apr 05, 2020 4:48 am
[xxxyyy@xxxyyy-SATELLITE-C660:~$ LC_ALL=C dpkg --list wine* | grep "^ii"
dpkg-query: no packages found matching winehq.key
You have a subtle bash/shell thing going on...

Try it this way, with quotes:

Code: Select all

LC_ALL=C dpkg --list "wine*" | grep "^ii"
Without the quotes around "wine*", bash (the shell) expands wine* to refer to the files in the directory you're running from before it sends the string to the dpkg command, namely the file "winehq.key" is there, so that's what it looks for; it'd be like entering dpkg --list winehq-key ...

Run ls wine* is that directory, I bet it shows the file winehq.key (unless you removed it)

If you don't have any wine* files in the directory, dpkg works without the quotes. But always use quotes to make sure.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Flemur
Level 18
Level 18
Posts: 8486
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Install Wine error message

Post by Flemur »

karlchen wrote:
Sun Apr 05, 2020 6:46 am
Could you try to run the same command from a different directory, please: dpkg --list wine* | grep "^ii"
He should use quotes! dpkg --list "wine*"

Code: Select all

$ touch wine1 wine2
$ dpkg -l wine*
dpkg-query: no packages found matching wine1
dpkg-query: no packages found matching wine2
$
$ dpkg -l  "wine*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
..etc... normal output and it lists the wine packages...
Last edited by Flemur on Sun Apr 05, 2020 11:09 am, edited 1 time in total.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Install Wine error message

Post by pbear »

NewMints, I'm sure this is frustrating. I know this sort of thing frustrated me in the beginning. What has happened to you is what I call a "handshake" problem, where two things which are supposed to work together don't quite. If it's any consolation, the article you used worked fine when written. It was only when Wine upgraded to 5.0 that the instructions became obsolete.

I'm going to let karlchen and Flemur guide you through this, as too many cooks spoil the broth. I will contribute one suggestion, though. Run this command in terminal, to confirm whether you still have WineHQ in your Software Sources. No need to translate either direction.

Code: Select all

cat /etc/apt/sources.list.d/additional-repositories.list
If returns No such file or directory, that means WineHQ isn't in your Software Sources.
User avatar
karlchen
Level 21
Level 21
Posts: 12832
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Install Wine error message

Post by karlchen »

Thank you, Flemur, for correcting my commandline. Yes, indeed double quotes will make sure the shell will not expand "wine*" before passing it on to dpkg.
Flemur wrote:
Sun Apr 05, 2020 8:59 am
He should use quotes! dpkg --list "wine*"
What else can I say? :oops: :oops: :oops:
Image
Linux Mint 19.3 64-bit Cinnamon, Total Commander 9.51 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)
User avatar
Flemur
Level 18
Level 18
Posts: 8486
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Install Wine error message

Post by Flemur »

pbear wrote:
Sun Apr 05, 2020 11:06 am

Code: Select all

cat /etc/apt/sources.list.d/additional-repositories.list
If returns No such file or directory, that means WineHQ isn't in your Software Sources.
Uh....on Ubuntu* 18.04 where I've installed wine 5.:

Code: Select all

$ inxi -r | grep wine
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
$
$ cat /etc/apt/sources.list.d/additional-repositories.list
cat: /etc/apt/sources.list.d/additional-repositories.list: No such file or directory
Best to use inxi -r | grep wine to check; my wine repo is defined in /etc/apt/sources.list

Code: Select all

$ grep wine /etc/apt/sources.list
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main

*IIRC the instructions for wine 5.0 are the same for Ubuntu and Mint.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
Flemur
Level 18
Level 18
Posts: 8486
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Install Wine error message

Post by Flemur »

NewMints wrote:
Sat Apr 04, 2020 10:45 am
I am a new Mint Cinnamon user and I am not yet familiar with the operating system
I'm afraid we scared you off.

You can do everything discussed above with synaptic, a GUI program, so you don't have to worry about commands.

Start "Synaptic package manager" from the system main menu. You'll have to enter your own password for it to start.

1 -
See if you have wine packages installed, and if so, remove them.
Click the "Search" button on the main GUI and search for wine
To put installed programs at the top of the list, click the GUI where the cursor is in this picture, to the left of Package:
synaptic1.gif
If you see any wine packages, like I show in the picture, REMOVE THEM!

To remove:
Hold Ctrl and left-click to high-light all of them, then right click -> Mark for complete removal.
Then hit Apply button on main GUI. It should go pretty quickly.

2 -
After that's done, remove any wine repositories you might have:
In Synaptic click Settings on the main menu-> Repositories ... a new window will open. Click the Other Software tab; look for any wine entries and click to un-check them (I have one wine repo in the picture; if you see that, un-check it):
synaptic2.gif
(You can also get to this GUI with "Software Sources" in the main system menu).

Back in Synaptic, click Reload. <-- This is important, but you won't see anything change.

Now you should be able to install wine-installer; you can do it with the command line as in the release notes for your Mint version, or search for it in Synaptic, like above,
click to hilight, rt-click-> "Mark for installation", then hit "Apply".

That will probably take a few minutes to complete since it has to download several large .deb files.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Install Wine error message

Post by pbear »

Flemur wrote:
Sun Apr 05, 2020 6:08 pm
I'm afraid we scared you off.
Not sure what can be done. It's a damn gnarly problem to have on Day One, when none of this stuff makes sense yet.

Just redid the Wine 5.0 installation I posted a month ago. Wonder whether easier just to give 'em those instructions. If one doesn't need to understand where they come from or why they work, it's just three lines which look pretty innocuous. Then the WineHQ instructions work fine.

By the way, like you, I rarely post anything I didn't test beforehand. After the re-install of 5.0 just mentioned:

Code: Select all

pbear@vbox-cinnamon-19-3:~$ inxi -r | grep wine
           1: deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
pbear@vbox-cinnamon-19-3:~$ cat /etc/apt/sources.list.d/additional-repositories.list
deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
pbear@vbox-cinnamon-19-3:~$ wine --version
wine-5.0
NewMints
Level 1
Level 1
Posts: 49
Joined: Sat Apr 04, 2020 10:19 am

Re: Install Wine error massage

Post by NewMints »

Flemur wrote:
Sun Apr 05, 2020 8:56 am
NewMints wrote:
Sun Apr 05, 2020 4:48 am
[xxxyyy@xxxyyy-SATELLITE-C660:~$ LC_ALL=C dpkg --list wine* | grep "^ii"
dpkg-query: no packages found matching winehq.key
You have a subtle bash/shell thing going on...

Try it this way, with quotes:

Code: Select all

LC_ALL=C dpkg --list "wine*" | grep "^ii"
Without the quotes around "wine*", bash (the shell) expands wine* to refer to the files in the directory you're running from before it sends the string to the dpkg command, namely the file "winehq.key" is there, so that's what it looks for; it'd be like entering dpkg --list winehq-key ...

Run ls wine* is that directory, I bet it shows the file winehq.key (unless you removed it)

If you don't have any wine* files in the directory, dpkg works without the quotes. But always use quotes to make sure.
Report:

Code: Select all

xxxyyy@xxxyyy-SATELLITE-C660:~$ LC_ALL=C dpkg --list "wine*" | grep "^ii"
ii  wine-desktop-files    4.0.5        all          Microsoft Windows Compatibility Layer
ii  wine-installer        4.0.5        all          Microsoft Windows Compatibility Layer
ii  wine-stable           4.0~bionic   amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-amd64     4.0~bionic   amd64        WINE Is Not An Emulator - runs MS Windows programs
ii  wine-stable-i386:i386 4.0~bionic   i386         WINE Is Not An Emulator - runs MS Windows programs
ii  winehq-stable         4.0~bionic   amd64        WINE Is Not An Emulator - runs MS Windows programs
xxxyyy@xxxyyy-SATELLITE-C660:~$ LC_ALL=C dpkg --list winehq-key ...
dpkg-query: no packages found matching winehq-key
dpkg-query: no packages found matching ...
xxxyyy@xxxyyy-SATELLITE-C660:~$ 
Last edited by NewMints on Mon Apr 06, 2020 4:04 am, edited 2 times in total.
Post Reply

Return to “Software & Applications”