How to set up Flatpak in Chrome OS

The Linux environment within Chrome OS has become a blessing in disguise for enthusiasts and power users looking to migrate their workflow to Chrome OS. This has become possible without the hassle of having to install Crouton on the side like the job that you hate and can’t rid yourself of cause it makes you money.
We had previously covered our suggestion for the top alternative app stores for Chrome OS that will enable you to explore the desktop-grade apps that have become available to you via the Debian-powered Linux container. The recommendations we made in that article, however, are limited to the traditionally-packaged Debian Linux apps with no option for Flatpak. It’s for this reason that we’ve decided to create a tutorial on how to set up Flatpak.
What is Flatpak?
Flatpak is a superior package management system that is literally second to none as it’s distribution-agnostic with a set of robust functionalities to boot.
This is such that the package management system does not require apps to be recompiled for every single Linux distribution with a difference in its core base. It’s essentially a one-fits-all solution.
Moreover, It is also such that Flatpak enables apps to be bundled with the required dependencies needed for them to be run efficiently on all platform.
Furthermore, Flatpak offers a centralized repository called Flathub for all distributions including the Chrome operating system.
Additionally, Flatpak offers the advantage of forward-compatibility and quite frankly, backward compatibility as well. This is particularly advantageous for the Chrome operating system as you can be
Lastly, Flatpak boasts consistency in performance across platforms which is necessary for troubleshooting.
Caveats
- Installing
Flatpaks will almost always require you to use the Linux terminal. - There are only around a measly 350 apps available via Flathub
Installation Procedure
Running the following commands as root in your Linux terminal will enable you to install Flatpak itself and the necessary dependencies.
sudo apt install flatpak
Install the Gnome software center plugin. You can refer to this tutorial on how to install the software center. Chances are the plugin won’t work for you
sudo apt install gnome-software-plugin-flatpak
The following command below will add the Flathub repository.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Once you’re done adding the repo, restart your system and proceed to the terminal to install any app you might need using the commands below. It’s also important that you look up the app you intend on installing on Flathub to be sure of its availability in the repo.
flatpak install flathub [package name as seen on the app page on flathub]
To run the app, use the command below or search in the app launcher.
flatpak run [package name]
Have you had any luck setting Flatpak up? Let us know in the comments!
Hello, so I’m trying to install flathub repository, but it’s not working…. Its saying ” ERROR: NAME must be specified” I don’t know what this means. I even downloaded the link and it doesn’t help.
Hi Peter! Can you tell me how you’ve gone about the process so we can better diagnose the problem you encountered? In order to install an application from the Flathub repository, you must specify the package name … can you verify that you’ve done this?
So thanks for helping!! I did steps 1 and 2 and they work but when I go on step 3 I do that command and it says “Name not specified.” then I downloaded the link and redo step 3 and says the same. Doing the command to get the Flathub repository doesn’t work. Any Help?
Could you possibly share a screenshot of your terminal?
So I can try to recreate the issue you’re experiencing. I don’t suppose Flathub will list a package with non-working repo … I’ll be sure to try it out on my PB once I’m back home
ahh thanks for helping I didn’t do the full command, my bad but its all good now
You can find the specific command to execute in your Linux terminal on the specific package page. For example, “flatpak install flathub com.spotify.Client” from: https://flathub.org/apps/details/com.spotify.Client will install the spotify client onto your Chromebook while “flatpak run com.spotify.Client” will run the application after which you can pin it to your shelf for easier and quicker access. You will need to invoke “sudo” as necessary. That is, “sudo flatpak install flathub com.spotify.Client” and “sudo flatpak run com.spotify.Client” respectively. Take caution when invoking sudo cause it gives you root privileges. Once you’re done installing, you can exit root shell with “CTRL + D”… Read more »
Hey there!
Ive been trying to get the flatpak thing to work on my chromebook book. But i cant seem to get it working. I was having the same issue NSH was having and i still cant get it to work. Ive followed the exact steps as listed on top. Any idea what im doing wrong? Using a google pixel Slate.
Hi Eddie! Have you tried power cycling your Pixel Slate and going through the process again?
No. I will try that next.
Do you think it can be because im running the BETA version of Chrome os?
i don’t suppose that’s the case, Eddie! Granted, the beta and dev channel do come with more bugs than usual and that may be the reason why you had run into issues with your installation. Typically, a quick restart will (temporarily) fix minor bugs. Let me know how it goes!
Hey there. So before i do the reset i want to show you how im typing it in the command line. Maybe im going something wrong. This is the error message ive been getting.
Bruuuhhhhh! i didnt put ‘Sudo’………..-_-
it works….
Happens to the best of us, fam! Good thing you figured it out! Enjoy!
Thanks playa!
Literally the exact same situation….
My pleasure, mate!
Hello there! Hello there!
Hope you’re doing awesome. I need a little help with AppImage files. Im trying to Run one on my Pixel Slate. But i have no idea how to do this. Can you help?
Im running Chrome OS Beta 75
and all ive done was move the downloaded AppImage file on to the Linux file section on the ‘files’ app.
Hi, Eddie! I’ll be sure to create an article on the subject and subsequently update you with a link sometime soon. Hang in there!
Thank you!!!? Lol
Error strating the virtual machine (linux beta on Cloudready)
Cloudready is an entirely different platform from the traditional Chrome OS experience. I didn’t account for it while writing this article. I’ll, however, look into it once I get the chance to…
im trying to install flatpak in a chromebook ive just purchased but when installing the repository the terminal is coming up with a password requirement i do not know what the password is its not my chromebook password anyone any ideas what the password would be? theres no mention of a password requirement in the instructions above