0

How to solve this flatpak error?:

error: No remote refs found similar to ‘flathub’

Steps taken so far:

  • Install flatpak: sudo install flatpak
  • Trying to install an app: flatpak install flathub dev.lapce.lapce

Expected at this point: the app is installed.

Actually, the error above is shown.

VasyaNovikov
  • 3,366
  • 3
  • 25
  • 33
  • Note: there is a similarly looking question asked here: https://superuser.com/questions/1755709/getting-this-error-when-trying-to-use-flatpak-no-remote-refs-found-similar-to However, that one is different because it's about the user/root mismatch, whereas this issue is about the most general and standard setup. – VasyaNovikov Jun 15 '23 at 11:33

1 Answers1

0

It seems that flatpak (the package manager) does not tie itself to flathub (the repository) too much. If you want to use the "default" repository, however, you can add it with:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
VasyaNovikov
  • 3,366
  • 3
  • 25
  • 33