flatpak command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
flatpak: command not found
or when using sudo you get the following error message
sudo: flatpak: command not found
Solutions to flatpak: command not found
How To Fix flatpak: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu flatpak is provided by flatpak package.
flatpak is:
Flatpak installs, manages and runs sandboxed desktop application bundles. Application bundles run partially isolated from the wider system, using containerization techniques such as namespaces to prevent direct access to system resources. Resources from outside the sandbox can be accessed via “portal” services, which are responsible for access control; for example, the Documents portal displays an “Open” dialog outside the sandbox, then allows the application to access only the selected file.
Each application uses a specified “runtime”, or set of libraries, which is available as /usr inside its sandbox. This can be used to run application bundles with multiple, potentially incompatible sets of dependencies within the same desktop environment.
This package contains the services and executables needed to install and launch sandboxed applications, and the portal services needed to provide limited access to resources outside the sandbox.
To fix this problem, we can install more using the command below.
sudo apt-get -y install flatpak
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install flatpak.
sudo apt -y install flatpak
Or if you have aptitude installed you can use the following command.
sudo aptitude install flatpak
Summary
In this tutorial we learn how to fix flatpak command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.