I installed flatpak via the command lines on their website and then proceeded to add the remote repository as instructed, but when I try to install something it says to specify a remote. I was trying to install inkscape from flathub.
Here are the command lines I used:
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
I also tried without sudo
To download the ref file:
wget https://www.flathub.org/apps/details/org.videolan.VLC
To install:
flatpak install org.videolan.VLC
Error Message:
error: REMOTE and REF must be specified
So to fix the "No remote refs found similar to 'flathub'" error, you need to add flathub repo URL using below flatpak remote-add command. You can check 21 Popular Flatpak command examples on Linux to understand the usage of flatpak utility.
DESCRIPTION. Flatpak stores information about configured remotes for an installation location in $installation/repo/config. For example, the remotes for the default system-wide installation are in $prefix/var/lib/flatpak/repo/config, and the remotes for the per-user installation are in $HOME/.
Try:
flatpak install flathub org.videolan.VLC
"flathub" is the name of the missing REMOTE you added in your first step.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With