command "Flatpak" not found, is an error that indicates that something's not right with your flatpak installation on your system.
Why does this error happen?
This depends on your setup.
For example, this error happens when you don't have flatpak installed on your machine, and you try to run a flatpak command.
This error also happens, when you have flatpak installed on your machine, but you don't have it added on your PATH, which means when you run flatpak
on your terminal, system doesn't know where flatpak binary is, and it's not able to run, and you get the error command "Flatpak" not found
In this tutorial you will learn how to fix the error "command "Flatpak" not found" on Linux.
Step 1 - Update your system
Before fixing this error, make sure to update your packages on your system.
sudo apt update
Step 2 - Install flatpak
Next, install flatpak.
In this tutorial, we are using Ubuntu 22.04. Flatpak can be easily installed on this version of Ubuntu, by running the command below.
sudo apt install flatpak
Once installed, proceed to install software flatpak plugin.
This plugin allows you to install flatpak apps from the flathub repository website.
sudo apt install gnome-software-plugin-flatpak
Next, add Flathub repository on your system, so that you can download apps from the flathub repository.
To add flathub repository on your system, run the command below.
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Step 3 - Check if error is fixed
The error "command "Flatpak" not found", should be fixed now. To verify that the error is fixed, you can try to run flatpak, and maybe install a flatpak app to see if it works.
If you don't want to install an app, you can simply check flatpak version, with
flatpak --version
Conclusion
In this tutorial, you learned how to fix the error "Command "Flatpak" not found" on Ubuntu.
We used Ubuntu 22.04 for this tutorial. However, this tutorial should apply also to other linux distros that are showing similar error.