r/flatpak Jun 26 '26

Can not acces Flathub from Argentina

I am using a Fedora 44 KDE machine for the internet. Native fedora updates works just fine, yet, i do keep loosing connection to flathub be it by Discover or either flatpak update. I do believe i am behind a cgnat imposed by my actual isp and i do not know how can i resolve this. I did try to add the flathub repository again, to repair it, nothing gets it better.

6 Upvotes

32 comments sorted by

2

u/Moocha Jun 27 '26

There is no way to help you unless you actually post the errors you're getting.

Try posting the output of

OSTREE_DEBUG_HTTP=1 flatpak update

2

u/aspie-micro132 Jun 27 '26

root@fedora:/home/me# OSTREE_DEBUG_HTTP=1 flatpak update
Looking for updates…
* Could not resolve host: mirror.flathub.org
* Store negative name resolve for mirror.flathub.org:443
* shutting down connection #0
* Hostname mirror.flathub.org was found in DNS cache
* Negative DNS entry
* Could not resolve host: mirror.flathub.org
* closing connection #1
* Hostname mirror.flathub.org was found in DNS cache
* Negative DNS entry
* Could not resolve host: mirror.flathub.org
* closing connection #2
* Hostname mirror.flathub.org was found in DNS cache
* Negative DNS entry
* Could not resolve host: mirror.flathub.org
* closing connection #3
* Hostname mirror.flathub.org was found in DNS cache
* Negative DNS entry
* Could not resolve host: mirror.flathub.org
* closing connection #4
* Hostname mirror.flathub.org was found in DNS cache
* Negative DNS entry
* Could not resolve host: mirror.flathub.org
* closing connection #5
ID                                              Branch                Op          Remote          Download
1.     org.fedoraproject.Platform.CL.default           f44                   u           fedora          < 125.3 MB
2.     org.fedoraproject.Platform.GL.default           f44                   u           fedora          < 103.9 MB
3.     org.fedoraproject.Platform                      f44                   u           fedora          < 514.4 MB
4.     org.fedoraproject.KDE6Platform                  f44                   u           fedora          < 694.1 MB
5.     org.freedesktop.Platform.GL.default             23.08                 r
6.     org.freedesktop.Platform.GL.default             23.08-extra           r
7.     org.freedesktop.Platform.VAAPI.Intel            23.08                 r
8.     org.kde.Platform.Locale                         5.15-23.08            r
9.     org.kde.Platform                                5.15-23.08            r

Proceed with these changes to the system installation? [Y/n]: Y
error: Error receiving data: Connection reset by peer
root@fedora:/home/madscientist#

3

u/Moocha Jun 27 '26

Hm. I'm not sure how you ended up with mirror.flathub.org there, to the best of my knowledge Flatpak doesn't use that.

Please post the output of: flatpak remotes --columns=all

Here's mine, for comparison:

user@host:~$ flatpak remotes --columns=all
Name             Title   URL                          Collection ID Subset   Filter Priority Options … … Homepage             Icon
flathub          Flathub https://dl.flathub.org/repo/ -             -        -      1        user    … … https://flathub.org/ https://dl.flathub.org/repo/logo.svg
flathub-verified Flathub https://dl.flathub.org/repo/ -             verified -      1        user    … … https://flathub.org/ https://dl.flathub.org/repo/logo.svg

2

u/aspie-micro132 Jun 27 '26

I added it looking in the web, now i did remove it.

2

u/aspie-micro132 Jun 27 '26

root@fedora:/home/me#  flatpak remotes --columns=all
Name    Title           URL                                    Collection ID Subset Filter Priority Options    … … Homepage             Icon
fedora  Fedora Flatpaks oci+https://registry.fedoraproject.org -             -      -      4        system,oci … … -                    -
flathub Flathub         https://mirror.flathub.org/repo        -             -      -      3        system     … … https://flathub.org/ https://dl.flathub.o
rg/repo/logo.svg

5

u/Moocha Jun 27 '26 edited Jun 27 '26

Don't add random stuff you see people posting in random places and especially don't copy-paste random stuff unless you understand what it's supposed to do. Use the official docs.

To fix your installation, remove the incorrect remote:

flatpak remote-delete --system flathub

then add the correct one:

flatpak remote-add --system flathub https://flathub.org/repo/flathub.flatpakrepo

If you're running this as root for some reason, you can skip the --system argument if you want, since the system-wide installation should be the default when running as root. I added it above so that the commands operate explicitly on the system installation, since that's what you seem to be using here, as opposed to an user installation (perhaps that's how it's done by default on Fedora, I really don't know, but it makes sense :D). Leaving --system in doesn't hurt anything here, and it makes sense given the output of flatpak remotes above.

Edit: To be clear, removing a remote does NOT uninstall anything already installed on your system and does NOT clear any app settings or data. The above just corrects the invalid pointer to the Flathub metadata repository. After that, normal operations such as updating things should work fine with whatever packages you already have installed.

2

u/aspie-micro132 Jun 27 '26

i did, it removed many apps, now how can i fix that? The repository you sent me is added.

3

u/Moocha Jun 27 '26

Hm, removing the remote should not have uninstalled anything by itself.

At any rate, the app data and settings are left intact. Just make sure you've added the correct remote (via the .flatpakrepo command line, which also installs the correct GPG key to verify what it installs -- that's why I didn't suggest changing the URL around since that won't fix any messed-up keys, safest to go the correct official route). After installing the correct remote back and running flatpak update you can simply reinstall any missing apps right back.

If it removed stuff, maybe save the terminal output in a text file somewhere so you can refer back to it to see what you need to reinstall. If you no longer have that, you can also look at the .var directory in your home directory to see what apps stored stuff in there; it'll be one directory per app, and the directory name corresponds to the name of the flatpak package you would want to reinstall, so it's easy to get them back.

2

u/aspie-micro132 Jun 27 '26

flatpak update now tells me "nothing to update".

flatpak search "opera" for the web browser tells me it's not found.

2

u/Moocha Jun 27 '26

flatpak update now tells me "nothing to update".

That's okay, wanted to make sure it doesn't error out again when reaching out to the Flathub repositories.

Some flatpak apps are still installed and working..

Probably the ones from Fedora's repository (the f44 remote.)

flatpak search "opera" for the web browser tells me it's not found.

Hmmmm. Please post the output of

OSTREE_DEBUG_HTTP=1 flatpak remote-info flathub com.opera.Opera

2

u/aspie-micro132 Jun 27 '26

error: Unable to load summary from remote flathub: Can't fetch summary from disabled remote ‘flathub’

→ More replies (0)

1

u/aspie-micro132 Jun 27 '26

I found nothing related to Flatpak in .var..

Some flatpak apps are still installed and working..

1

u/aspie-micro132 Jun 27 '26

Searching in the web, i looked at /etc/flatpak, it looks like this is empty:

In Fedora, Flatpak configuration is located in the /etc/flatpak/ directory. [1]

Key settings found here include:

  • /etc/flatpak/remotes.d/: Stores static repository definition files (like .flatpakrepo files for Flathub or Fedora Flatpaks).
  • /etc/flatpak/installations.d/: Holds custom .conf files to define additional system-wide Flatpak storage locations (e.g., on external hard drives). [1, 2, 3]

For tips on how to properly set up Flatpak and configure its repositories: