Snap and Flatpak

Asked by RobertX

Just wondering: does Cubic save software installed by Flatpak or Snap, basically any program that doesn't include the Package Manager?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

Robert,

I haven't been able to figure this out..

I know that you need services running in order to install snap packages, but chroot doesn't run services.

One user pointed out that installation was as simple as...

    1. Copy the snap package into the /snap directory
    2. Copy the snap's *.desktop file into /usr/share/applications or into /etc/skel/.local/usr/share/applications

(See https://bugs.launchpad.net/cubic/+bug/1843257/comments/8).

However, I haven't tried this, and am not sure it would work.

Note that on Cubic's terminal page, you can copy files by `cd`-ing into the target directory and then dragging the file(s) onto the window .

(I suspect there must be an "official" way of deploying snap packages, perhaps by including them in the ISO's `pool` directory and adding a corresponding preseed configuration???)

Revision history for this message
Cubic PPA (cubic-wizard) said :
#2

Looks like snap does not work in a container like the one Cubic uses.

    https://bugs.launchpad.net/snappy/+bug/1609903

However, I was able to successfully install a flatpack apps in Cubic...

    $ apt install gnome-software-plugin-flatpak
    $ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
    $ flatpak install --assumeyes flathub org.glimpse_editor.Glimpse

I got the following message, but the application works fine after booting into the custom ISO:
    "Warning: While trying to apply extra data: apply_extra script failed, exit status 256"

Revision history for this message
RobertX (bobbyyu1) said :
#3

I do have a question: regarding the above commands, are they verbatim commands that actually do the downloading, or are they just templates?

Revision history for this message
Cubic PPA (cubic-wizard) said :
#4

The first two are verbatim.
The last one is an example which installs an image editor. Of course, you could replace "org.glimpse_editor.Glimpse" with another application.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#5

Please see the following Answer on how to install snap packages using Cubic:

https://answers.launchpad.net/cubic/+question/697883

Can you help with this problem?

Provide an answer of your own, or ask RobertX for more information if necessary.

To post a message you must log in.