Error installing wine on mint 19 tara cinnamon

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
garylwe

Error installing wine on mint 19 tara cinnamon

Post by garylwe »

I'm getting an error when installing winehq-stable on my HP 6830S laptop with 4Gb ram. I am following the instructions as outlined on the following webpage: https://wiki.winehq.org/Ubuntu

The error is:

Code: Select all

Errors were encountered while processing:
 /tmp/apt-dpkg-install-1mLFIQ/086-wine-stable-i386_3.0.2~bionic_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Some pc info:

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara

Code: Select all

$ uname -a
Linux lauren-HP-Compaq-6830s 4.15.0-24-generic #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Procedure I followed:

Code: Select all

$ sudo dpkg --add-architecture i386 

Code: Select all

$ wget -nc https://dl.winehq.org/wine-builds/Release.key
--2018-07-17 14:02:15--  https://dl.winehq.org/wine-builds/Release.key
Resolving dl.winehq.org (dl.winehq.org)... 151.101.32.69
Connecting to dl.winehq.org (dl.winehq.org)|151.101.32.69|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3122 (3.0K) [application/pgp-keys]
Saving to: ‘Release.key’

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

2018-07-17 14:02:15 (17.4 MB/s) - ‘Release.key’ saved [3122/3122]

$ sudo apt-key add Release.key
OK

$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

Code: Select all

$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/morphis/anbox-support/ubuntu bionic InRelease
Hit:2 http://archive.linux.duke.edu/ubuntu bionic InRelease
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]    
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:5 http://archive.linux.duke.edu/ubuntu bionic-updates InRelease            
Get:6 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [4,677 B]      
Ign:7 http://mirrors.advancedhosters.com/linuxmint/packages tara InRelease     
Hit:8 http://mirrors.advancedhosters.com/linuxmint/packages tara Release       
Hit:9 http://archive.linux.duke.edu/ubuntu bionic-backports InRelease          
Hit:10 http://linux.teamviewer.com/deb stable InRelease                        
Hit:11 http://linux.teamviewer.com/deb preview InRelease         
Get:12 https://dl.winehq.org/wine-builds/ubuntu bionic/main amd64 Packages [5,860 B]
Get:13 https://dl.winehq.org/wine-builds/ubuntu bionic/main i386 Packages [5,820 B]
Fetched 99.6 kB in 2s (41.2 kB/s)                               
Reading package lists... Done

Code: Select all

$ sudo apt-get install --install-recommends winehq-stable

See text file attachment for output:
sudo apt-get install.pdf

Code: Select all

$ sudo apt-get update
Ign:1 http://mirrors.advancedhosters.com/linuxmint/packages tara InRelease
Hit:2 http://archive.linux.duke.edu/ubuntu bionic InRelease                                                                                        
Hit:3 http://mirrors.advancedhosters.com/linuxmint/packages tara Release                                                                           
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]                                                                        
Hit:5 http://archive.canonical.com/ubuntu bionic InRelease                                                                                         
Hit:6 http://ppa.launchpad.net/morphis/anbox-support/ubuntu bionic InRelease                                                                            
Hit:7 http://archive.linux.duke.edu/ubuntu bionic-updates InRelease                                                                                     
Hit:8 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                                                                                                  
Hit:9 http://archive.linux.duke.edu/ubuntu bionic-backports InRelease                                                          
Hit:10 http://linux.teamviewer.com/deb stable InRelease                                
Hit:11 http://linux.teamviewer.com/deb preview InRelease          
Fetched 83.2 kB in 2s (35.9 kB/s)                  
Reading package lists... Done

Code: Select all

$ sudo apt-get install --install-recommends winehq-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
winehq-stable is already the newest version (3.0.2~bionic).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 wine-stable : Depends: wine-stable-i386 (= 3.0.2~bionic)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Code: Select all

$ apt --fix-broken install
apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

Code: Select all

$ sudo apt-get install wine-stable-i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  wine-stable-i386:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
153 not fully installed or removed.
Need to get 0 B/20.3 MB of archives.
After this operation, 184 MB of additional disk space will be used.
(Reading database ... 313970 files and directories currently installed.)
Preparing to unpack .../wine-stable-i386_3.0.2~bionic_i386.deb ...
Unpacking wine-stable-i386:i386 (3.0.2~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb (--unpack):
 unable to open '/opt/wine-stable/lib/wine/ieframe.dll.so.dpkg-new': Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Let me know if I can provide any other info to help resolve the issue.

Thx
Gary

p.s. Went to software manager and it shows Wine-stable, Wine-stable-amd64 and Winehq-stable as installed, but no menus appear for wine at all from the menu.
Also before attempting to install winehq-stable, sudo apt update and sudo apt upgrade had been run, so system was up to date...
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Error installing wine on mint 19 tara cinnamon

Post by Flemur »

garylwe wrote: Tue Jul 17, 2018 3:30 pm Try 'apt --fix-broken install' with no packages (or specify a solution).

$ apt --fix-broken install
apt
Usage: apt command [options]
apt help command [options]

Wine-stable-amd64 and Winehq-stable as installed, but no menus appear for wine at all from the menu.
Also before attempting to install winehq-stable, sudo apt update and sudo apt upgrade had been run, so system was up to date...
I think that error message is bad - try

Code: Select all

apt-get --fix-broken install
Lack of menus doesn't mean much, people have had issues with them (wine+Mint19). To see if you have wine, try in a terminal

Code: Select all

wine --version
wine someprogram.exe 
If it's broken, go back to the --fix-broken and work from there, but with apt-get rather than apt.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
garylwe

Re: Error installing wine on mint 19 tara cinnamon

Post by garylwe »

Code: Select all

$ sudo apt-get --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  wine-stable-i386:i386
The following NEW packages will be installed:
  wine-stable-i386:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/20.3 MB of archives.
After this operation, 184 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 313908 files and directories currently installed.)
Preparing to unpack .../wine-stable-i386_3.0.2~bionic_i386.deb ...
Unpacking wine-stable-i386:i386 (3.0.2~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb (--unpack):
 unable to open '/opt/wine-stable/lib/wine/ifsmgr.vxd.so.dpkg-new': Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Code: Select all

$ wine --version

Command 'wine' not found, but can be installed with:

sudo apt install wine-development
sudo apt install wine-stable
garylwe

Re: Error installing wine on mint 19 tara cinnamon

Post by garylwe »

I notice that when ever I run the install command "$ sudo apt-get -y install wine-stable-i386", the file it's trying to open changes. Bolded the statements......


Preparing to unpack .../wine-stable-i386_3.0.2~bionic_i386.deb ...
Unpacking wine-stable-i386:i386 (3.0.2~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb (--unpack):
unable to open '/opt/wine-stable/lib/wine/hh.exe.so.dpkg-new': Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Preparing to unpack .../71-wine-stable-i386_3.0.2~bionic_i386.deb ...
Unpacking wine-stable-i386:i386 (3.0.2~bionic) ...
dpkg: error processing archive /tmp/apt-dpkg-install-VaLdz3/71-wine-stable-i386_3.0.2~bionic_i386.deb (--unpack):
unable to open '/opt/wine-stable/lib/wine/kerberos.dll.so.dpkg-new': Operation not permitted
Errors were encountered while processing:
/tmp/apt-dpkg-install-VaLdz3/71-wine-stable-i386_3.0.2~bionic_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Preparing to unpack .../wine-stable-i386_3.0.2~bionic_i386.deb ...
Unpacking wine-stable-i386:i386 (3.0.2~bionic) over (3.0.2~bionic) ...
dpkg: error processing archive /var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb (--unpack):
unable to open '/opt/wine-stable/lib/wine/ksuser.dll.so.dpkg-new': Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
garylwe

Re: Error installing wine on mint 19 tara cinnamon

Post by garylwe »

Ran these commands and it seems to have installed wine, But I can't run it (confused):

$ sudo dpkg --force-all -i /var/cache/apt/archives/wine-stable-i386_3.0.2~bionic_i386.deb
(Reading database ... 313538 files and directories currently installed.)
Preparing to unpack .../wine-stable-i386_3.0.2~bionic_i386.deb ...
Unpacking wine-stable-i386:i386 (3.0.2~bionic) ...
Setting up wine-stable-i386:i386 (3.0.2~bionic) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

$ sudo apt-get install wine-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
wine-stable is already the newest version (3.0.2~bionic).
wine-stable set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up wine-stable (3.0.2~bionic) ...
Setting up winehq-stable (3.0.2~bionic) ...

$ sudo apt-get update
Ign:1 http://mirrors.advancedhosters.com/linuxmint/packages tara InRelease
Hit:2 http://mirrors.advancedhosters.com/linuxmint/packages tara Release
Hit:3 http://archive.linux.duke.edu/ubuntu bionic InRelease
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:6 http://ppa.launchpad.net/morphis/anbox-support/ubuntu bionic InRelease
Hit:7 http://archive.linux.duke.edu/ubuntu bionic-updates InRelease
Hit:8 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:10 http://archive.linux.duke.edu/ubuntu bionic-backports InRelease
Hit:11 http://linux.teamviewer.com/deb stable InRelease
Hit:12 http://linux.teamviewer.com/deb preview InRelease
Reading package lists... Done

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ wine --version
wine-3.0.2

$ wine YUMI-2.0.5.7
wine: could not exec wineserver
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Error installing wine on mint 19 tara cinnamon

Post by Flemur »

garylwe wrote: Wed Jul 18, 2018 2:08 pm $ wine --version
wine-3.0.2

$ wine YUMI-2.0.5.7
wine: could not exec wineserver
I just completely uninstalled wine and installed wine-stable; the installation puts a bunch of links in /usr/bin (IIRC), which pointed to /opt/wine-stable/bin

But! A previous install of wine-stable didn't make those links, so I had added /opt/wine-stable/bin to my path and everything was happy. Now I have the links, but delete them, and keep the /opt in my PATH.

Check:

Code: Select all

ls -F /opt/wine-stable/bin/wine*
(-F = show * on executable files).

Anyway, I get:

Code: Select all

$ which wineserver
/opt/wine-stable/bin/wineserver

$ wine YUMI-2.0.5.7
wine: cannot find L"C:\\windows\\system32\\YUMI-2.0.5.7"
If you have wineserver in opt/wine-stable/bin/, add that to your PATH.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
garylwe

Re: Error installing wine on mint 19 tara cinnamon

Post by garylwe »

You sir are a genius... I uninstalled everything wine related - added to the $PATH statement export PATH=$PATH:/opt/ and installed wine-stable from software manager. Thank you for your help and have a nice day.......

wine YUMI-2.0.5.7.exe


YUMI.png
picaza

Re: Error installing wine on mint 19 tara cinnamon

Post by picaza »

picaza@picaza-ThinkPad-T410 ~ $ apt-get --fix-broken install
E: No se pudo abrir el fichero de bloqueo «/var/lib/dpkg/lock» - open (13: Permiso denegado)
E: No se pudo bloquear el directorio de administración (/var/lib/dpkg/), ¿está como superusuario?
picaza@picaza-ThinkPad-T410 ~ $ sudo apt-get --fix-broken install
[sudo] contraseña para picaza:
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
Configurando espeakup (1:0.80-9) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Job for espeakup.service failed because the control process exited with error code.
See "systemctl status espeakup.service" and "journalctl -xe" for details.
invoke-rc.d: initscript espeakup, action "start" failed.
● espeakup.service - Software speech output for Speakup
Loaded: loaded (/lib/systemd/system/espeakup.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2018-10-17 20:29:47 -03; 9ms ago
Docs: man:espeakup(8)
Process: 4380 ExecStart=/usr/bin/espeakup -V ${VOICE} (code=exited, status=2)
dpkg: error al procesar el paquete espeakup (--configure):
instalado espeakup paquete post-installation guión el subproceso devolvió un error con estado de salida 1
Se encontraron errores al procesar:
espeakup
E: Sub-process /usr/bin/dpkg returned an error code (1)
picaza@picaza-ThinkPad-T410 ~ $
:evil: :twisted: :roll:
Locked

Return to “Software & Applications”