Announcement

Collapse
No announcement yet.

How to enable Flatpak in Kubuntu 22.04 LTS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to enable Flatpak in Kubuntu 22.04 LTS

    If you want to use Flatpaks complementary to or instead of Snaps you will have to manually enable Flatpak support in Kubuntu 22.04 LTS first.

    Here is a step-by-step tutorial:


    Warning:
    You have to enable both the Kubuntu Backports and the Kubuntu Backports Extra PPAs to get Plasma 5.27.x with plasma-discover-backend-flatpak version 5.27.x to make Flatpak management work in Discover ! (see e.g. KDE Plasma 5.27.10 available in Kubuntu Backports Extra)

    Otherwise Discover will crash when plasma-discover-backend-flatpak is installed !
    Managing Flatpaks in CLI works without problems in Plasma 5.24.x (e.g. with the Konsole terminal emulator).
    1. open the Konsole terminal emulator from the -> Application Launcher -> System
    2. enter
      a) sudo apt update && sudo apt install flatpak and your password
      b) and for Plasma 5.27.x additionally sudo apt install plasma-discover-backend-flatpak
      (this will install two things:
      a) the system's Flatpak support itself (which can be used in CLI, see flatpak --help and man flatpak) and
      b) for Plasma 5.27.x additionally the Discover support for Flatpak to find, install, update and remove Flatpaks with the Discover software center)
    3. to enable the Flathub repository​ for Flatpaks
      EITHER in Konsole enter
      flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
      OR for Plasma 5.27.x in the -> Application Launcher -> System ->​ Discover software center
      -> in the left part go to Settings -> click the button at the right side [Add Flathub]
      (both will enable the Flathub repository for Flatpaks, which is currently the largest one and is supported by e.g. KDE and GNOME - you can enable other Flatpak repositories like e.g. the one from Fedora or from individual developers later on if you wish to do so)
    4. restart your system or at least log out and in again
    5. For Plasma 5.24.x I suggest to additionally install the Flatseal Flatpak to be able to manage the permissions of individual Flatpaks.
      If you have upgraded to KDE Plasma 5.27.x with the Kubuntu Backports and Kubuntu Backports Extra PPAs, you can install the Flatpak Permissions Settings module for System Settings instead of the Flatseal Flatpak :
      In Konsole enter sudo apt install kde-config-flatpak and your password.​
    6. done - you can now
      · use Flatpaks and manage them in the Konsole terminal emulator (or in Plasma 5.27.x additionally with Discover ) and
      · manage their permissions in Plasma 5.24.x with the Flatseal Flatpak or in Plasma 5.27.x with the Flatpak Permissions Settings module in
      -> Application Launcher​ -> Settings -> System Settings -> Applications
      (or you can manage their permissions in Konsole too, of course)
    Please know that both Flatpaks and Snaps use up more space of your storage medium than programs "traditionally" installed by apt.​​
    Flatpaks have some advantages and disadvantages that Snaps don't have and vice versa.
    Last edited by Schwarzer Kater; Mar 23, 2024, 05:52 AM. Reason: rewritten
    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

    #2
    Rewritten because of this thread
    Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
    Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

    get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
    install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

    Comment


      #3
      Hi
      I tried the above and was able to get Flatpak installed and maybe more importantly I understood what I was doing.
      It works fine with Discovery with the following proviso, it is either or, if you want to list apps for Flatpak, make it the default source, same for Kubuntu stuff.
      If you get it wrong Discovery shuts down, it doesn't crash, just restart it and try again. The link to Flatpak repositories doesn't get saved so you need to save it somewhere else if you plan on visiting again. Once you've figured all that out it works consistently.
      I managed to Install Speech Note but because it is not in a "main" repository installation was a bit odd and I can't remember it well enough to repeat here. The AMD GPU add-on doesn't seem to do much more than take up space on my Ryzen 5 laptop. Again if you try with the wrong settings it doesn't crash, just shuts down. Vosk large (non GPU) was about the best but still pretty slow and not too accurate.
      Found a better solution by chance, when using Firefox I got a pop-up? asking me to try Google Chrome which I accepted.
      It installed and the 1st thing I noticed was that I had a microphone in the search window. I tried Google Docs/Speech Typing and it worked! Accurate and quite fast.
      I think the install method was by .deb because I got an update in that format. It did not use Discovery
      When I installed Chrome via Discovery, this feature did not work.
      Hope this helps somebody :-)

      Comment

      Working...
      X