Facing a problem while installing Flathub

Asked by Md Hasanul Kabir

I am facing an issue while installing flathub. I used this command line. sudo apt install flathub
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package flathub

any solution? I am using Kubuntu 22.04

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You don't install flathub. Flathub is a source of packages. You can install applications (like Firefox for example) FROM the Flathub service.

You can enable this using:

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

This link explains it well. You can then search Flathub for packages.
https://www.rosehosting.com/blog/how-to-install-flatpak-on-ubuntu-22-04/

Flathub isn't an application you can install

Revision history for this message
Md Hasanul Kabir (hasanul-kabir) said :
#2

After enable flathub by using this command sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo I am unable to install any apps like brave. I use this command to install brave: flatpak install flathub com.brave.Browser Looking for matches…
F: An error was encountered searching remote ‘flathub’ for ‘com.brave.Browser’: Unable to load summary from remote flathub: GPG verification enabled, but no summary found (check that the configured URL in remote config is correct)

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Try running:

flatpak search brave

If you see the application, you can use:

flatpak search brave | awk {'print $3'}

to see the name to install.

Revision history for this message
Md Hasanul Kabir (hasanul-kabir) said (last edit ):
#5

Thanks Manfred Hampl, that second link solved my question.

Revision history for this message
Bernard Stafford (bernard010) said :
#6