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:
- Check with
flatpak remote-list
whether Flathub remote is configured globally (system
) or for the current user only (user
). It may be both. - Open
/var/lib/flatpak/repo/config
for system installations or~/.local/share/flatpak/repo/config
for user installation in a text editor. - Find
[remote “flathub”]
section. Changeurl
tohttps://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.