Software center do not show flathub option

As I mention on topic, in software center flathub option doesn't show. There are snap and zorin os options but flathub not showing. Eventhough installed flathub packages still seem but otion doesnt show still when I click on them. Furthermore, flatpak and other necessary packages installed when I chech from terminal.

My suspicion is, When I got Failed to update error for secure boot dbx, I looked on Forum and someone say delete fwupd and instead install snap version. I do that, yes it solve that problem but now flatpak not seen. I try to remove snap one and reinstall all related packages but couldn't solve.

Please someone can help me? I have a lot installation eventhough I have some timeshift backups there are still huge data differences. There are so much work for restoring or formatting. Please help me.

Open a terminal (Ctrl-Alt-T) and type apt list gnome-software-plugin-flatpak. It should return the name of the package that adds flatpak support to the store, and version and status information, like this:

gnome-software-plugin-flatpak/jammy,now 45.3-2ubuntu1+zorin1 amd64 [installed,automatic]

If yours doesn't show "installed" in brackets at the end, that's probably your problem. You can install it with sudo apt install gnome-software-plugin-flatpak.

If it already shows as installed, copy and paste your output from the list command here so we can see if anything is fishy with it.

My terminal input like this

emrecan@emrecan:~$ apt list gnome-software-plugin-flatpak
Listeleme... Bitti
gnome-software-plugin-flatpak/jammy,now 45.3-2ubuntu1+zorin1 amd64 [kurulu]
N: Fazladan 2 sürüm daha var. Bu sürümleri görmek için '-a' anahtarını kullanın.
emrecan@emrecan:~$ apt list gnome-software-plugin-flatpak -a
Listeleme... Bitti
gnome-software-plugin-flatpak/jammy,now 45.3-2ubuntu1+zorin1 amd64 [kurulu]
gnome-software-plugin-flatpak/jammy-updates 41.5-2ubuntu2 amd64
gnome-software-plugin-flatpak/jammy 41.5-2 amd64

Hei ja tervetuloa. Itse vältän sekä Snapia että Flatpakia, koska ne vievät sinulta järjestelmän hallinnan, vähän kuin GNU/Linux-versio tuosta toisesta käyttöjärjestelmästä.

Hi and Welcome. Personally I avoid both Snap and Flatpak as it takes away your control of the system, a bit like a GNU/Linux version of that other OS.

You can install it now by entering
"sudo apt install gnome-software-plugin-flatpak"

What do you mean its already installed.

gnome-software-plugin-flatpak/jammy,now 45.3-2ubuntu1+zorin1 amd64 [kurulu]

[kurulu] means [installed] if it confuse you

1 Like

I discovered this while searching.

emrecan@emrecan:~$ flatpak remotes
Name    Options
flathub system
zorinos system

emrecan@emrecan:~$ flatpak update --appstream
Updating appstream data for remote flathub
Error updating: While pulling appstream2/x86_64 from remote flathub: No such metadata object 0cd20ee9e382873cfa7e496dca1eec360e0b0b8e8268c7267683d189f3c34832.commit
Updating appstream data for remote zorinos

It seems like there's a problem when trying to update the appstream for Flathub, but no difficulty for Zorinos. That's probably why Zorin and Snap options are visible, but Flathub isn't. Interestingly, I can install new flatpak apps from the terminal without a problem.

You could try to switch to mainserver at Software&Updates and then update your system.

If this doesn't help you could try:

"killall gnome-software"

"rm -rf ~/.cache/gnome-software"

For Zorin core:
"sudo apt install --reinstall gnome-software -y"
For Zorin lite:
"sudo apt install --reinstall gnome-software-plugin-flatpak -y"

"sudo flatpak update"

1 Like

Thanks for your help. I was able to fix the issue. The commands and changing the main server didn't work, but thanks to the extra info about adding the repo as a user, I tried this code:

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

And it works now. However, it caused a new problem. In the Software Center, my previously installed Flatpaks are now visible, but they aren't detected as installed. As you can see in the image, it says "kur" (install) and below it, it says "Flatseal is not installed, but still has data present." But for a Snap app, it says "uninstall," so it's detected as installed.

Also,

emrecan@emrecan:~$ flatpak update --appstream
Updating appstream data for remote flathub
Error updating: While pulling appstream2/x86_64 from remote flathub: No such metadata object 0cd20ee9e382873cfa7e496dca1eec360e0b0b8e8268c7267683d189f3c34832.commit
Updating appstream data for remote zorinos
Updating appstream data for user remote flathub


I deleted both the user and system entries based on AI advice, and then reinstalled. It also deleted all installed apps, but luckily it didn't delete the apps' configurations. So, when I reinstalled, both the problem was solved and the apps were fine.

sudo flatpak remote-delete --system flathub
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak update --appstream

Now, flatpak update --appstream no longer gives an error. However, it's still risky as it might delete app configurations if one isn't careful or lucky, but it works for me. Eventhough I say risky, I dont think there is another solution so maybe take backup of config files of apps before do that steps is better.

1 Like