How to install Wine in Trisquel 8?

39 replies [Last post]
GrevenGull
Offline
Joined: 12/18/2017

I received a lot of help in another thread, but there seems to be something strange happening when I try to install Wine in Trisquel 8.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

Try what Magic suggested here

https://trisquel.info/en/forum/writing-my-%E2%80%98common-distros%E2%80%99-us-2018#comment-129494

and if that doesn't work post a detailed description of what you've tried and what the problem is for people who weren't following the other thread. If you share long output, use pastebin

https://pastebin.com/

as fbit suggested in order to keep the thread readable.

GrevenGull
Offline
Joined: 12/18/2017

Okay.

So when I do "$ sudo apt install wine" I get this output: https://pastebin.com/BwKmjcFm

Magic Banana proposed to locate broken packages in synaptic package manager, but when I sort by broken, there is none.

If I do "$ sudo apt install wine1.6" I get this: https://pastebin.com/v6gD7Ymp

Now if I do "$ sudo apt install wine1.6-i386" I get this: https://pastebin.com/wgnFwDcC

And if I just start at the top of the depending packages and do "$ sudo apt install libasound2:i386" I get: https://pastebin.com/cUw4JHkg

If I then do "$ sudo apt install libc6:i386" I get: https://pastebin.com/wEmBkHNu

...aaand that just doesn't feel right to me. To remove 1700 ish essential packages.. Idk, should I?

grimlok
Offline
Joined: 04/16/2013

I installed the most recent stable version of wine on Trisquel 8 using the WineHQ website's instructions for Ubuntu.

You can find it here: https://wiki.winehq.org/Ubuntu

GrevenGull
Offline
Joined: 12/18/2017

In that instruction the first step is:

"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."

Are there an easy method of checking my packages?

Like "$ list packages" or something?

GrevenGull
Offline
Joined: 12/18/2017

When I am following that guide everything seems to work allright until the point where I do $ sudo apt update, which gives me this output: https://pastebin.com/zaVNK5ey

GrevenGull
Offline
Joined: 12/18/2017

And if I do $ sudo apt-get install --install-recommends winehq-stable I get: https://pastebin.com/c8tPtP51

And if I do $ sudo apt install wine-stable I get this: https://pastebin.com/mnWHpU3B

And when I did $ sudo apt install wine-stable-amd64 I got this: https://pastebin.com/3TTcc761

That got me kind of motivated so I continued with $ sudo apt install wine-stable-i386 and got this: https://pastebin.com/NX59f5S5

:/

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

> output: https://pastebin.com/zaVNK5ey

Copy/paste the contents of /etc/apt/sources.list again. It looks like the nonexistent 'ubuntu flidas' repo is still in there.

GrevenGull
Offline
Joined: 12/18/2017

When I do $ pluma /etc/apt/sources.list I get this output first:

Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "topmenu-gtk-module"

And then pluma opens: https://pastebin.com/vBwfGnqh

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

That looks OK. If there are package repositories to remove, they must be define in files in /etc/apt/sources.list.d

Notice that you can use as well a graphical interface to manage the software repositories: "Software & Updates" in the "System Settings" (well, that is for Trisquel 7 at least).

GrevenGull
Offline
Joined: 12/18/2017

Hi, thank you for tuning in M. B.

> If there are package repositories to remove, they must be define in files in /etc/apt/sources.list.d

My /etc/apt/sources.list.d-folder is completely empty now.

> Notice that you can use as well a graphical interface to manage the software repositories: "Software & Updates" in the "System Settings"

Like this (attachment)?

Screenshot at 2018-03-22 13:03:24.png
Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

Yes.

Your /etc/apt/sources.list "looked" OK but was not OK: "flidas" on the winehq line should be "xenial", as mason spotted.

GrevenGull
Offline
Joined: 12/18/2017

> Your /etc/apt/sources.list "looked" OK but was not OK: "flidas" on the winehq line should be "xenial", as mason spotted.

I think I have tried several methods with both of them.

But now I have removed all the wine associated packages and repositories.

Which method now is the legit one?

Mason said that
$ sudo apt-get install wine
works for him

But it does not work for me.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

> Which method now is the legit one?

Oridinarily you would want to use the version in your distro's repo unless you had a specific reason for needing a newer version. Unforunately, some dependencies of wine appear to be broken for you, though I am unsure of the reason. The next thing to try was getting the software from the developer. Unfortunately this did not work either, seemingly because some of the dependencies of the version shipped by the developer are broken in T8 for you, perhaps the same ones preventing you from installing t*'s version of wine. Can you see in Synaptic which packages are broken? If it is not that many we may be able to install them from deb files.

GrevenGull
Offline
Joined: 12/18/2017

Thank you for trying to help. There are no broken packages in Synaptic Package Manager

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

> It may just be that Wine is (for
> the moment?) not installable on Trisquel 8, which is still alpha.

That's what confuses me. Grevengull's experience is similar to what I've had when trying to install software that has not been packaged for T8, yet I am able to install wine on T8. He has run apt update, so I'm not sure what the problem is.

GrevenGull
Offline
Joined: 12/18/2017

Seems like you have replied to a deleted reply.

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

Weird indeed.

Aristophanes
Offline
Joined: 10/05/2017

I'm trying to install Wine in Trisquel 7 by following the WineHQ website's instructions. I reached the point where I have to update packages (by entering sudo apt-get update) and I get the following error when entering the aforementioned command:

"E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?"

What can I do to fix this error?

SuperTramp83

I am a translator!

Offline
Joined: 10/31/2014

>What can I do to fix this error?

By following what the bright and wise apt is telling you ->
sudo apt-get install apt-transport-https

Aristophanes
Offline
Joined: 10/05/2017

Clearly! ;)

Two comments:

1. The packages that needed installation (re: apt-transport-https) could not be authenticated, and in order to install them, I had to do so without verification. Is this normal?

2. After entering the sudo apt-get update command, I got the following output:

Hit http://fr.archive.trisquel.info belenos InRelease
Hit http://fr.archive.trisquel.info belenos-security InRelease
Hit http://fr.archive.trisquel.info belenos-updates InRelease
Hit http://fr.archive.trisquel.info belenos/main Sources
Hit http://fr.archive.trisquel.info belenos/main amd64 Packages
Hit http://fr.archive.trisquel.info belenos/main i386 Packages
Hit http://fr.archive.trisquel.info belenos/main Translation-en
Get:1 https://dl.winehq.org belenos InRelease
Ign https://dl.winehq.org belenos InRelease
Hit http://fr.archive.trisquel.info belenos-security/main Sources
Hit http://fr.archive.trisquel.info belenos-security/main amd64 Packages
Ign https://dl.winehq.org belenos Release.gpg
Hit http://fr.archive.trisquel.info belenos-security/main i386 Packages
Ign https://dl.winehq.org belenos Release
Hit http://fr.archive.trisquel.info belenos-updates/main Sources
Hit http://fr.archive.trisquel.info belenos-updates/main amd64 Packages
Hit http://fr.archive.trisquel.info belenos-updates/main i386 Packages
Ign http://fr.archive.trisquel.info belenos/main Translation-en_US
Ign http://fr.archive.trisquel.info belenos-security/main Translation-en_US
Ign http://fr.archive.trisquel.info belenos-security/main Translation-en
Ign http://fr.archive.trisquel.info belenos-updates/main Translation-en_US
Ign http://fr.archive.trisquel.info belenos-updates/main Translation-en
Err https://dl.winehq.org belenos/main amd64 Packages
HttpError404
Err https://dl.winehq.org belenos/main i386 Packages
HttpError404
Ign https://dl.winehq.org belenos/main Translation-en_US
Ign https://dl.winehq.org belenos/main Translation-en
W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/belenos/main/binary-amd64/Packages HttpError404

W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/belenos/main/binary-i386/Packages HttpError404

E: Some index files failed to download. They have been ignored, or old ones used instead.

Why am I getting these errors?

gnutastyc
Offline
Joined: 11/13/2017

I guess these errors suggest that Trisquel 7's apt does not have support for https, although I do not know if it can be enabled.

However, it looks like the same link http://dl.winehq.org/wine-builds/ubuntu/ works, so I would suggest you to find the link and remove the "s". You can do that with grep


grep -R -e https /etc/apt/sources.list*

It should tell you which file holds the https link. Then just simply remove the "s".

BTW, is there some special reason why you would like to use WineHQ ppa instead of the version that is available from Trisquel repositories?

GrevenGull
Offline
Joined: 12/18/2017

Ẅhen I do "$sudo apt update" I get: https://pastebin.com/dnH59qPj

Which seems kind of strange. I feel like it hasn't always been this way.

GrevenGull
Offline
Joined: 12/18/2017

Could the problems be connected to the fact that I am using a 64-bit version of Trisquel 8 and should've been using 32-bit?

I am using a 2008 iMac. When I was boot camping MacOS and Windows, Apple said that only 32-bit windows was supported for this model. Could it be the case here as well?

GrevenGull
Offline
Joined: 12/18/2017

Usually when I try to install wine I get the

"Depends wine1.6 but it is not going to be installed".

But when I followed Masons suggestion to use this guide https://wiki.winehq.org/Ubuntu and use the Linux Mint 18.x-line, I get this: https://pastebin.com/1r6Y48sn

..which is kind of uplifting because it is a different error message. But it doesn't help unfortunately.

Because when I then do $ sudo apt-get install wine-stable

I get: https://pastebin.com/s87EgGFB

:/ and as I have demonstrated earlier, trying to install those two packages leaves me with bizarre results.

GrevenGull
Offline
Joined: 12/18/2017

I sorted by "installed" in Synaptic Package Manager and searched for wine. The results was some 10 packages or something all called something along "libwin". I proceeded to check them all for complete removal.

The first one had to remove some other packages in order to be removed (some packages named "libfree"-something. I did that.

After that I did
$ pluma /etc/apt/sources.list
and removed all the wine associated lines.

So hopefully I am now on a fresh start.

I tried to run
$ sudo apt-get install wine
but it gives me the same "depends on wine1.6" as earlier.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

The lines you needed to remove were these.

deb https://dl.winehq.org/wine-builds/ubuntu/ flidas main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ flidas main

The correct line was

deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main

as for your question about 32/64-bit, you should certainly not be using the 64-bit version of Trisquel if you have a 32-bit machine. To check, run 'lscpu' in a terminal and see what it says under "Architecture".

GrevenGull
Offline
Joined: 12/18/2017

> The lines you needed to remove were these.

Well they're all gone now anyway. Just figured I'd start over.

> run 'lscpu' in a terminal and see what it says under "Architecture".

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

> Architecture: x86_64

You have a 64-bit machine, so using the 64-bit version of Trisquel is not the problem.

GrevenGull
Offline
Joined: 12/18/2017

If I do

$ sudo aptitude install wine

It gives me this: https://pastebin.com/b3rdbb3B

Which is kind of interesting.

First the terminal outputs "The following NEW packages will be installed:" followed be a list of packages.

Then "0 packages upgraded, 148 newly installed, 0 to remove and 0 not upgraded.
Need to get 100 MB of archives. After unpacking 632 MB will be used.
The following packages have unmet dependencies:" followed by a long list of various ubuntu packages (which by a fast glance looks like all of the "is installed".

Then "The following actions will resolve these dependencies:

Keep the following packages at their current version:" followed by a long list of packages.

Then "Leave the following dependencies unresolved:
139) wine1.6-amd64 recommends libosmesa6
140) libncurses5:i386 recommends libgpm2:i386
141) libopenal1:i386 recommends libasound2:i386 (>= 1.0.16)
142) wine1.6-i386:i386 recommends libfontconfig1:i386 | libfontconfig:i386"

"Accept this solution? [Y/n/q/?] Y"

And then it goes totally "nah, I'm not going to do that anyway brah":

"No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used."

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

What happens if you "accept this solution"?

GrevenGull
Offline
Joined: 12/18/2017

GrevenGull wrote:

"Accept this solution? [Y/n/q/?] Y"

And then it goes totally "nah, I'm not going to do that anyway brah":

"No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used."

GrevenGull
Offline
Joined: 12/18/2017

I would love to play WC3 in Wine, but as of now I am going to play in Windows.

GrevenGull
Offline
Joined: 12/18/2017

Success! ... kind of.

I wiped the disk and did a clean install of T8.

After it was installed I updated and upgraded.

Then after doing nothing else I tried:
sudo apt install wine
...and guess what: it worked!

So I am thinking maybe Wine is not compatible with the newest Kernel. Because now I am using the standard kernel that comes with the OS install, and before I was using the newest kernel. I can't think of any other differences.

GrevenGull
Offline
Joined: 12/18/2017

Well I have another theory as well.

The last time I installed T8 I followed this guide for turning off orce screen reader: https://askubuntu.com/questions/278693/how-do-i-stop-orca-screen-reader with:

sudo apt-get remove gnome-orca
and then:
killall orca

But now I only did the latter command.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

Neither the kernel nor screen reader should cause wine dependencies to appear as broken. A possible difference is if you used the new 3/20 ISO, but I'm not sure why that would matter either. Regardless of the reason, I'm glad everything's working now.

GrevenGull
Offline
Joined: 12/18/2017

May I ask why you think that could have been the reason?

Aren't updates supposed to do the same as downloading the latest iso?

gnutastyc
Offline
Joined: 11/13/2017

Apt being able to download a package or not does not have to be with the kernel, nor with orca. They just don't influence each other that way.

Anyway, I took the time to replicate your problem. I couldn't in my machine but happened in a chrooted environment. Also, I answered your issue. You can actually check it changing add for remove: https://trisquel.info/en/issues/11234. Probably change it to closed if it's not a problem anymore.

GrevenGull
Offline
Joined: 12/18/2017

Hi thank you for tuning in on this issue.

I have tried your suggestion among many other things unfortunately.

Jodiendo
Offline
Joined: 01/09/2013

How to install Wine in Trisquel 8?
DONT INSTALL IT, BUT
DRINK IT SLOWLY AND COLD! iT IS WINE!!
EITHER RED OR WHITE!