Install Flatpak On Antix Linux

   

 

Install Flatpak On Antix Linux

Installing flatpak in Antix is usually a simple task. You just run the following command in terminal:

sudo apt install flatpak

And, then add flatpak repository using the command:

 flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

But, if you get unlucky like me while installing flatpak and come across an error like this:

"libavahi-glib1 ...error"

"unable to correct problem, you have held broken packages"



Here is how we fix the issue:

The error occurs mostly because of broken repository. Open Synaptic package manager.


Go to the repositories from setting menu.
Head over to This Link and copy a repository mirror link closer to your location and add it to repositories from synaptic.

For me, this mirror worked fine:

deb http://mirrors.piconets.webwerks.in/mx-mirror/packages/antix/bullseye/ bullseye main nosystemd nonfree

Now, unselect the broken bullseye mirror and save the changes. Synaptic will reload the package list.

 

 Once, it reloads, close it and open terminal and run apt update then install flatpak:

sudo apt update

sudo apt install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Authorization error: The name org.freedesktop.PolicyKit1 was not provided


org.freedesktop.PolicyKit1

If you get policykit error while adding flatpak repository, run the following command in terminal:

sudo apt install policykit-1

Now add flatpak repository.

Comments