Reply to topic

How to install Wine on Neon 18.04 Bionic

User avatar LapiXo
Registered Member
Posts
5
Karma
0
OS
This simple guide will help you to install wine32 on bionic release of KDE neon. The steps shown in this guide worked on to systems both running

Code: Select all
No LSB modules are available.
Distributor ID:   neon
Description:   KDE neon User Edition 5.13
Release:   18.04
Codename:   bionic


If you're having issues installing wine on Neon 18.04 it has to do with i386 versión of wine. First of all you have to allow i386 architecture
Code: Select all
sudo dpkg --add-architecture i386


Don't try to install wine still. First add wine repositories

Code: Select all
 
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ artful main'
sudo apt update


If you try to install at this point you'll still have dependencies issues, you have to downgrade libblkid1 to versión 2.31.1-0.4ubuntu3.1

Code: Select all
sudo apt install libblkid1=2.31.1-0.4ubuntu3.1


after that install i386 versión of the package

Code: Select all
sudo apt install libblkid1:i386


I marked the package to not be upgraded using the following command

Code: Select all
sudo apt-mark hold libblkid1


Now, you can install wine.

Code: Select all
sudo apt install wine-stable wine32


After the installation if you try to run wine, you'll get the error "Command wine not found". It's because wine binaries are located in /opt/wine-stable/bin/ but are being looked for in /usr/bin you can check that wine is actually installed by typing

Code: Select all
sudo find / -type f -name wine


To solve this you can create simlinks to to the binaries within /usr/bin for both wine and wine64

Code: Select all
sudo ln -s /opt/wine-stable/bin/wine /usr/bin/wine
sudo ln -s /opt/wine-stable/bin/wine64 /usr/bin/wine64


After this wine should work correctly. Hope it Helps
User avatar LapiXo
Registered Member
Posts
5
Karma
0
OS
Instead of using simlink you could also add the path /opt/wine-stable yo the PATH variable in /etc/enviroment
User avatar awi
Registered Member
Posts
1
Karma
0
OS
Hi LapiXo,

awesome knowledge contribution by you!!!
Thank you so much.

Just upgraded to Neon 18.04 and had issues getting MS Office 2010 via playonlinux to start.
No matter what installed wine 32 bit version in POL I tried to execute the Office programs with (1.x, 2.x, 3.x)

But then after a bit of asking google, I found your thread and:
- Replaced, like you recommended, libblkid1=2.32-0.1 with libblkid1=2.31.1-0.4ubuntu3.1 and marked it as to be held.
- But then simply installed the package wine32 (without adding the wine repository), which then installed and brought back alive all required :i386 lib dependencies in my system, which the Neon upgrade process previously eliminated (clean up).

Et voilà: Excel, Word and Powerpoint executes as desired via playonlinux again.
(Unfortunately I require Excel for my work, LibreOffice Calc is not that far and compatible yet)

Thanks again & thumps up!!!
User avatar LapiXo
Registered Member
Posts
5
Karma
0
OS
Glad it helped. In my case, i needed it to run a router management app from mikrotik ... WinBOX ... It took me a whole morning to figure out about that particular package DOWNGRADE.
gilbarbosa
Registered Member
Posts
2
Karma
0
Thanks! Thanks! Thanks!

You are my savior!! Thanks for sharing your knowledge with us!!

After struggling with wine install for an entire night, found your post. I worked like a breeze!! Now I`m going to hit bed, get some sleep...

Thanks again!
j8a
Registered Member
Posts
110
Karma
0
OS
Hi, I followed the posts you wrote and find a solution without any additional keys or repositories, which could be also a solution. I have more or less the same outputs when I tried to install wine after I get some clue about the problem.
First, I run the command
sudo dpkg --add-architecture i386

The second command was to downgrade and hold libblkid1
sudo apt install libblkid1:i386
sudo apt-mark hold libblkid1

At last I run aptitude instead of apt-get because aptitude has the ability to solve and fix missing dependencies
sudo aptitude install wine32

And that's all, now I could run my 32 bits programs without problem. I also run Mikrotik console under wine as LapiXo do.
`---.`` `` `.---.` OS: KDE neon 5.13
.--.` `` `-:-. Kernel: x86_64 Linux 4.15.0-34-generic
`:/: `.----//----.` :/- Uptime: 1h 49m
.:. `---` `--.` .:` Packages: 2129
.:` `--` .:- `:. Shell: bash 4.4.19
`/ `:. `.-::-.` -:` `/` Resolution: 1280x1024
/. /. `:++++++++:` .: .: DE: KDE 5.50.0 / Plasma 5.13.5
`/ .: `+++++++++++/ /` `+` WM: KWin
/+` -- .++++++++++++` :. .+: WM Theme: Breeze Colours
`/ .: `+++++++++++/ /` `+` GTK Theme: Breeze [GTK2/3]
/` /. `:++++++++:` .: .: Icon Theme: breeze
./ `:. `.:::-.` -:` `/` Font: Noto Sans Regular
.:` `--` .:- `:. CPU: Intel Pentium Dual E2200 @ 2x 2.203GHz
.:. `---` `--.` .:` GPU: Mesa DRI Intel(R) 965G
`:/: `.----//----.` :/- RAM: 1048MiB / 3245MiB
.-:.` `` `-:-.
`---.`` `` `.---.`
`..---+/---..`

Regards
wgrabski
Registered Member
Posts
1
Karma
0
OS
Hi Guys.
I just came here to thank you. I was having issues with wine since the update to 18.04.
Then I came here and, fortunatelly, found the original post from LapiXo. I followed all steps, and still couldn't run *.exe applications. Then I decided to reinstall wine32, but following the steps proposed by j8a, by running it with aptitude, which has solved my problem.
And in my case, I need to run MikroTik's Winbox too, just as LapiXo needed.
Thanks to both of you guys.

Best regards,
Wyllian.
User avatar marpar
Registered Member
Posts
13
Karma
0
Yes, following the first post of LapiXo solved my installation of Wine on KDE Neon 18.04.
But at this moment, when updating the system, I have some unmet dependencies:

Code: Select all
neon@neon-PC:~$ sudo pkcon refresh && sudo pkcon update
[sudo] password di neon:
Aggiornamento della cache     [=========================]         
Caricamento della cache       [=========================]         
Scaricamento dei pacchetti    [=========================]         
In esecuzione                 [=========================]         
Completato                    [=========================]         
 Abilitato                            http://archive.ubuntu.com/ubuntu bionic InRelease
 Abilitato                            http://archive.canonical.com/ubuntu bionic InRelease
 Abilitato                            http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
 Abilitato                            https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
 Abilitato                            https://dl.winehq.org/wine-builds/ubuntu artful InRelease
Recupero aggiornamenti        [=========================]         
Completato                    [=========================]         
Caricamento della cache       [=========================]         
Verifica delle modifiche      [=========================]         
Completato                    [=========================]         
Errore irreversibile: The following packages have unmet dependencies:
  libblkid1: Rompe: libblkid1 (!= 2.31.1-0.4ubuntu3.1) but 2.32-0.1+18.04+bionic+build4+18.04+bionic+build5 is to be installed
  libblkid1: Rompe: libblkid1 (!= 2.32-0.1+18.04+bionic+build4+18.04+bionic+build5) but 2.31.1-0.4ubuntu3.1 is to be installed

neon@neon-PC:~$


There is a way to solve this error?
Thanks for your help.
abarrero
Registered Member
Posts
4
Karma
0
OS
Hi again,


today apt showed me that there is an update to the libblkid1 package.

Code: Select all
alex@neon:~$ apt list  --upgradable
Listando... Hecho
docker-neon/bionic 0.0+p18.04+git20181002.1533-0 all [actualizable desde: 0.0+p18.04+git20180919.1448-0]
libblkid1/bionic 2.32-0.1+18.04+bionic+build4+18.04+bionic+build5 amd64 [actualizable desde: 2.31.1-0.4ubuntu3.1]


How do I know when will be posible to remove the mark to hold the package and update it safely without broke wine?
j8a
Registered Member
Posts
110
Karma
0
OS
Hi, abarrero
Please, take a look at this post. viewtopic.php?f=309&t=153454#p404398
A KDE Developer and Senior member apachelogger wrote the problem was fixed.
Regards,
Alexandr0905
Registered Member
Posts
6
Karma
0
WINE
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/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
Stable branch
sudo apt-get install --install-recommends winehq-stable
Development branch
sudo apt-get install --install-recommends winehq-devel
Staging branch
sudo apt-get install --install-recommends winehq-staging
abarrero
Registered Member
Posts
4
Karma
0
OS
After the update on another system I have again the same problem with wine, but this time this how-to doesn't work

Code: Select all
alex@forvo-laptop:/etc/apt/sources.list.d
└─ $ sudo apt install libblkid1=2.31.1-0.4ubuntu3.1
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
E: No se encontró la versión «2.31.1-0.4ubuntu3.1» para «libblkid1»


Any suggestions?
j8a
Registered Member
Posts
110
Karma
0
OS
Hi, abarrero
You can install wine32 using aptitude instead of apt-get or apt command.
You must hold the libblkid1 package as it was explained in the post.
Regards,

 
Reply to topic

Bookmarks



Who is online

Registered users: avian, Baidu [Spider], Bing [Bot], Exabot [Bot], Google [Bot], larsgottlieb, Sogou [Bot]