Test mirror for users from China

Due to Fastly CDN being blocked in China, I have configured two servers in Oracle Cloud’s Seoul region that are on a CN2 optimized route.

As Flathub enforces the remote URL for historical reasons, switching to a different address requires performing some manual changes from the terminal:

  1. Check with flatpak remote-list whether Flathub remote is configured globally (system) or for the current user only (user). It may be both.
  2. Open /var/lib/flatpak/repo/config for system installations or ~/.local/share/flatpak/repo/config for user installation in a text editor.
  3. Find [remote “flathub”] section. Change url to https://sel.flathub.org/repo/. Add new line below with following content: url-is-set=true

The entire section should look similar to:

[remote “flathub”]
url=https://sel.flathub.org/repo/
url-is-set=true
xa.title=Flathub
gpg-verify=true
gpg-verify-summary=true
xa.comment=Central repository of Flatpak applications
xa.description=Central repository of Flatpak applications
xa.icon=https://dl.flathub.org/repo/logo.svg
xa.homepage=https://flathub.org/

If you are located in China, please give it a try and leave feedback in related GitHub issue. We’ll keep it running and mention in the setup instructions if it works well.

3 Likes

Thank you @barthalion so much for this.

Here is a translation of these instructions https://blog.outv.im/2020/tr-flatpak-china-mirror