Octave flatpak not lauching - Linux Mint 19.2

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Octave flatpak not lauching - Linux Mint 19.2

Eduardo Mapurunga
I've installed Octave through the Linux Mint's software Manager.

When I try to launch Octave from a terminal it returns an error:

$ flatpak run org.octave.Octave

ldconfig: Can't create temporary cache file
/run/ld-so-cache-dir/b5e9492c806c540a564b49a202dfca5af252935f7f736d47519d5c6968526faf~:
Permission denied
error: ldconfig failed, exit status 256

When I run with sudo

$ sudo flatpak run org.octave.Ocatve

error: app/org.octave.Ocatve/x86_64/master not installed


Octave Info:
Version 5.1.0
OS info:
OS: Linux Mint 19.2 (Tara)
Kernel: 4.15.0-66-generic



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Octave flatpak not lauching - Linux Mint 19.2

siko1056
On 10/31/19 10:07 AM, Eduardo Mapurunga wrote:

> I've installed Octave through the Linux Mint's software Manager.
>
> When I try to launch Octave from a terminal it returns an error:
>
> $ flatpak run org.octave.Octave
>
> ldconfig: Can't create temporary cache file
> /run/ld-so-cache-dir/b5e9492c806c540a564b49a202dfca5af252935f7f736d47519d5c6968526faf~:
> Permission denied
> error: ldconfig failed, exit status 256
>
> When I run with sudo
>
> $ sudo flatpak run org.octave.Ocatve
>
> error: app/org.octave.Ocatve/x86_64/master not installed
>
>
> Octave Info:
> Version 5.1.0
> OS info:
> OS: Linux Mint 19.2 (Tara)
> Kernel: 4.15.0-66-generic
>
>

Just a few questions from my side (I run that Flatpak on openSUSE 15.1,
too):

1. Does this happen for other flatpaks as well?
2. What is the output for "flatpak list"?
3. Did you try to remove and reinstall that flatpak?
   "flatpak remove org.octave.Octave"
4. Did you observe any abnormalities during the installation process?
5. What is your "flatpak --version"?

Maybe this might lead us closer to a solution.

HTH,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: Octave flatpak not lauching - Linux Mint 19.2

Eduardo Mapurunga

>Just a few questions from my side (I run that Flatpak on openSUSE 15.1,
>too):
>
>1. Does this happen for other flatpaks as well?

No, I have okular, zotero, and inkscape as flatpaks too. They are running
perfectly. Apparently, this is the only flatpak that does not launch at all.

>2. What is the output for "flatpak list"?

$ flatpak list
Ref                                                Options      
com.elsevier.MendeleyDesktop/x86_64/stable         system,current
org.gimp.GIMP/x86_64/stable                        system,current
org.inkscape.Inkscape/x86_64/stable                system,current
org.kde.okular/x86_64/stable                       system,current
org.octave.Octave/x86_64/stable                    system,current
org.signal.Signal/x86_64/stable                    system,current
org.zotero.Zotero/x86_64/stable                    system,current
org.freedesktop.Platform.GL.default/x86_64/19.08   system,runtime
org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08  system,runtime
org.freedesktop.Platform.VAAPI.Intel/x86_64/19.08  system,runtime
org.freedesktop.Platform.html5-codecs/x86_64/18.08 system,runtime
org.freedesktop.Platform/x86_64/18.08              system,runtime
org.freedesktop.Platform/x86_64/19.08              system,runtime
org.gnome.Platform/x86_64/3.32                     system,runtime
org.gnome.Platform/x86_64/3.34                     system,runtime
org.gtk.Gtk3theme.Mint-Y-Dark-Aqua/x86_64/3.22     system,runtime
org.gtk.Gtk3theme.Mint-Y/x86_64/3.22               system,runtime
org.kde.Platform/x86_64/5.12                       system,runtime
org.kde.Platform/x86_64/5.13                       system,runtime
org.kde.Sdk/x86_64/5.12                            system,runtime
org.kde.kigo.Locale/x86_64/stable                  system,runtime

>3. Did you try to remove and reinstall that flatpak?
>   "flatpak remove org.octave.Octave"

Yes, I did. But I will give a try another time to see if this work. I've
tried installing and uninstalling twice. One shot directly from the software
manager and the other from terminal.

>4. Did you observe any abnormalities during the installation process?

The terminal output for : $flatpak install flathub org.octave.Octave

Installing in system:
org.octave.Octave/x86_64/stable flathub 246709717fa2
  permissions: ipc, network, pulseaudio, wayland, x11, dri
  file access: host, xdg-config/kdeglobals:ro, xdg-run/dconf,
~/.config/dconf:ro
  dbus access: com.canonical.AppMenu.Registrar, org.freedesktop.Flatpak
Is this ok [y/n]: y
Installing: org.octave.Octave/x86_64/stable from flathub
[####################] 439 metadata, 5723 content objects fetched; 126114
KiB tr
Now at 246709717fa2.

>5. What is your "flatpak --version"?

Flatpak 1.0.8

>Maybe this might lead us closer to a solution.
>
>HTH,
>Kai

Thank you for your support.






--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Octave flatpak not lauching - Linux Mint 19.2

siko1056
On 10/31/19 11:11 AM, Eduardo Mapurunga wrote:
>
>> Just a few questions from my side (I run that Flatpak on openSUSE 15.1,
>> too):
>>
>> 1. Does this happen for other flatpaks as well?
>
> No, I have okular, zotero, and inkscape as flatpaks too. They are running
> perfectly. Apparently, this is the only flatpak that does not launch
at all.

>
>> 2. What is the output for "flatpak list"?
>
> $ flatpak list
> Ref                                                Options
> com.elsevier.MendeleyDesktop/x86_64/stable         system,current
> org.gimp.GIMP/x86_64/stable                        system,current
> org.inkscape.Inkscape/x86_64/stable                system,current
> org.kde.okular/x86_64/stable                       system,current
> org.octave.Octave/x86_64/stable                    system,current
> org.signal.Signal/x86_64/stable                    system,current
> org.zotero.Zotero/x86_64/stable                    system,current
> org.freedesktop.Platform.GL.default/x86_64/19.08   system,runtime
> org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08  system,runtime
> org.freedesktop.Platform.VAAPI.Intel/x86_64/19.08  system,runtime
> org.freedesktop.Platform.html5-codecs/x86_64/18.08 system,runtime
> org.freedesktop.Platform/x86_64/18.08              system,runtime
> org.freedesktop.Platform/x86_64/19.08              system,runtime
> org.gnome.Platform/x86_64/3.32                     system,runtime
> org.gnome.Platform/x86_64/3.34                     system,runtime
> org.gtk.Gtk3theme.Mint-Y-Dark-Aqua/x86_64/3.22     system,runtime
> org.gtk.Gtk3theme.Mint-Y/x86_64/3.22               system,runtime
> org.kde.Platform/x86_64/5.12                       system,runtime
> org.kde.Platform/x86_64/5.13                       system,runtime
> org.kde.Sdk/x86_64/5.12                            system,runtime
> org.kde.kigo.Locale/x86_64/stable                  system,runtime
>
>> 3. Did you try to remove and reinstall that flatpak?
>>   "flatpak remove org.octave.Octave"
>
> Yes, I did. But I will give a try another time to see if this work. I've
> tried installing and uninstalling twice. One shot directly from the
software

> manager and the other from terminal.
>
>> 4. Did you observe any abnormalities during the installation process?
>
> The terminal output for : $flatpak install flathub org.octave.Octave
>
> Installing in system:
> org.octave.Octave/x86_64/stable flathub 246709717fa2
>   permissions: ipc, network, pulseaudio, wayland, x11, dri
>   file access: host, xdg-config/kdeglobals:ro, xdg-run/dconf,
> ~/.config/dconf:ro
>   dbus access: com.canonical.AppMenu.Registrar, org.freedesktop.Flatpak
> Is this ok [y/n]: y
> Installing: org.octave.Octave/x86_64/stable from flathub
> [####################] 439 metadata, 5723 content objects fetched; 126114
> KiB tr
> Now at 246709717fa2.
>
>> 5. What is your "flatpak --version"?
>
> Flatpak 1.0.8
>
Thank you for your detailed answer.  I have a sneaking suspicion.  In
your previous mail you listed the error:

Eduardo Mapurunga wrote:
>> When I run with sudo
>>
>> $ sudo flatpak run org.octave.Ocatve
>>
>> error: app/org.octave.Ocatve/x86_64/master not installed

But you are installing:

>> org.octave.Octave/x86_64/stable from flathub

Maybe try "flatpak run --branch=stable org.octave.Octave"?

Otherwise, I also read about silent errors that make you seem to have
installed all correctly, but actually it is not:

  https://github.com/flatpak/flatpak/issues/2839

That issue involves installing using the "--noninteractive" flag, which
does not seem to be used by you.

Kai


Reply | Threaded
Open this post in threaded view
|

Re: Octave flatpak not lauching - Linux Mint 19.2

Eduardo Mapurunga

>Thank you for your detailed answer.  I have a sneaking suspicion.  In
>your previous mail you listed the error:

>Eduardo Mapurunga wrote:
>>> When I run with sudo
>>>
>>> $ sudo flatpak run org.octave.Ocatve
>>>
>>> error: app/org.octave.Ocatve/x86_64/master not installed

>But you are installing:

>>> org.octave.Octave/x86_64/stable from flathub

>Maybe try "flatpak run --branch=stable org.octave.Octave"?

This option only worked when summoned with sudo. However, it did not open
the graphical interface, only command line octave. When invoked without
sudo, the same error occured:

$flatpak run --branch=stable org.octave.Octave
ldconfig: Can't create temporary cache file
/run/ld-so-cache-dir/b5e9492c806c540a564b49a202dfca5af252935f7f736d47519d5c6968526faf~:
Permission denied
error: ldconfig failed, exit status 256

sudo flatpak run --branch=stable org.octave.Octave
[sudo] password for edumapurunga:      
GNU Octave, version 5.1.0
Copyright (C) 2019 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1>



>Otherwise, I also read about silent errors that make you seem to have
i>nstalled all correctly, but actually it is not:

>  https://github.com/flatpak/flatpak/issues/2839

>That issue involves installing using the "--noninteractive" flag, which
>does not seem to be used by you.

Well, do you think it is worth installing with -v option? so it could give
us more information. It's strange, but at least the command line it is
working now, which may be a good sign for a correct installation process. I
don't know, could you give me more directions about this?







--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Octave flatpak not lauching - Linux Mint 19.2

Eduardo Mapurunga
Additionally, when I tried to run the app directly from the shortcut menu. A
small dialog entitled : "Octave critical error " appeared. The following is
the text from this dialog:

"
The settings file
/home/edumapurunga/.config/octave/qt-settings
does not exist and can not be created.
Make sure you have read and write permissions to
/home/edumapurunga/.config/octave

Octave GUI must be closed now
"

As a result, I tried to give read and write permissions for the
./config/octave directory through:

$sudo flatpak override org.octave.Octave
--filesystem=/home/edumapurunga/.config/octave:rw

Then verified the permissions using:

$flatpak info --show-permissions org.octave.Octave/x86_64/stable
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;
devices=dri;
filesystems=xdg-config/kdeglobals:ro;xdg-run/dconf;host;/home/edumapurunga/.config/octave;/home/edumapurunga/octave;~/.config/dconf:ro;

[Session Bus Policy]
com.canonical.AppMenu.Registrar=talk
org.freedesktop.Flatpak=talk

[Environment]
PATH=/app/bin:/usr/bin:/app/jre/bin
CPPFLAGS=-I/app/include
LDFLAGS=-L/app/lib

The same problem continues and the dialog is still showing up every time I
try to run octave.



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Octave flatpak not lauching - Linux Mint 19.2

siko1056
On 10/31/19 2:29 PM, Eduardo Mapurunga wrote:

> Additionally, when I tried to run the app directly from the shortcut menu. A
> small dialog entitled : "Octave critical error " appeared. The following is
> the text from this dialog:
>
> "
> The settings file
> /home/edumapurunga/.config/octave/qt-settings
> does not exist and can not be created.
> Make sure you have read and write permissions to
> /home/edumapurunga/.config/octave
>
> Octave GUI must be closed now
> "
>
> As a result, I tried to give read and write permissions for the
> ./config/octave directory through:
>
> $sudo flatpak override org.octave.Octave
> --filesystem=/home/edumapurunga/.config/octave:rw
>
> Then verified the permissions using:
>
> $flatpak info --show-permissions org.octave.Octave/x86_64/stable
> [Context]
> shared=network;ipc;
> sockets=x11;wayland;pulseaudio;
> devices=dri;
> filesystems=xdg-config/kdeglobals:ro;xdg-run/dconf;host;/home/edumapurunga/.config/octave;/home/edumapurunga/octave;~/.config/dconf:ro;
>
> [Session Bus Policy]
> com.canonical.AppMenu.Registrar=talk
> org.freedesktop.Flatpak=talk
>
> [Environment]
> PATH=/app/bin:/usr/bin:/app/jre/bin
> CPPFLAGS=-I/app/include
> LDFLAGS=-L/app/lib
>
> The same problem continues and the dialog is still showing up every time I
> try to run octave.

Alright, but at least we have a partial success =)  The GUI then should
start by running:

  sudo flatpak run --branch=stable org.octave.Octave --gui

Now we are facing a bunch of problems related to the sudo starts, which
need to be addressed one by one in the given order:

1) Uninstall Octave flatpak
2) Remove the folder "/home/edumapurunga/.config/octave/", which now
probably belongs to root and should cleanly be recreated the next time.
3a) Remove any folders
"/run/ld-so-cache-dir/b5e9492c806c540a564b49a202dfca5af252935f7f736d47519d5c6968526faf"
which as normal user you do not have permission to
3b) Maybe consider a clean system reboot
4) Install Octave flatpak and start is WITHOUT SUDO privileges

HTH,
Kai


Reply | Threaded
Open this post in threaded view
|

Re: Octave flatpak not lauching - Linux Mint 19.2

Eduardo Mapurunga
It worked perfectly.

Thank you very much for your help!