Looking for matches error no remote refs found similar to flathub

No remote ref found similar to xyz is a common issue with Flatpak. Here's why you see this error and the steps you can take to fix this issue.

So, I just installed Fedora. Installing my favorite applications was on the list of things to do after installing Fedora.

I tried installing VLC in Flatpak form, but it gave me an error:

error: No remote refs found similar to ‘flathub’

flatpak remote ref not found error

No remote refs found error displayed with Flatpak

Fixing “no remote refs found similar to flathub” error

The fix is rather simple. Add the Flathub repository in the following way:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

It will ask for your password, or you could use the above command with sudo.

Now, if you try to install a Fltapak package from Fltahub, it should work as expected.

flatpak no remote ref problem fixed

Adding the Flathub repoistory fixes the issue

Reason why you see this error and how it was fixed

Now that you have fixed the error, it would be a good idea also to learn why you saw this error in the first place and how it was fixed.

Like most other package managers in Linux, Flatpak also works on the concept of repositories. In simpler words, you can imagine package repositories as a warehouse where packages are stored.

But to retrieve a package from this warehouse, you need to know the warehouse’s address first.

That’s what happens here. You are trying to download (and install) a package from a certain repository (Flathub in this case). But your system doesn’t know about this “flathub”.

In order to solve this issue, you added the Flathub repository. When you do that, your Linux system can look for the package you are trying to install in this repository.

You may see all the remote Flatpak repositories added to your system.

flatpak list repositories

List Flatpak repositories added to your system

Let’s have a deeper look at the command which was used for adding the repository:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  • flatpak: this is the flatpak CLI tool.
  • remote-add: this option indicates that you are adding a new remote repository.
  • –if-not-exists: this ensures that the remote repository is only added if not already added.
  • flathub: this is a short reference for the actual repository’s complete URL. You may name it something else but the convention is to use the one provided by the developer.
  • https://flathub.org/repo/flathub.flatpakrepo: The actual repository address.

The bottom line is that when you see Flatpak complaining about ‘no remote refs found similar to xyz’, verify that the said repository is not added and if that’s the case, figure out its URL and add it to the system.

I hope this quick tip helps you with this Flatpak issue.

In this article, we will see how to solve «No remote refs found similar to ‘flathub’» error. Last night when I was trying to install an application from flathub repository using flatpak utility, I noticed this error on the output and then I decided to write a post about this while fixing this error so that it will help you folks as well in case if you are also facing the same error. But before that let’s understand few key things first in case you are not already aware of.

What is Flatpak

Flatpak is a software deployment and package management utility that allows user to deploy and run their application in a sandboxed or an isolated environment. It was written in C language with an aim to provide a runtime environment for applications which works in isolation with the host system.

What is Flathub

Flathub is an app store very much similar to snap store, which contains hundreds of apps that can be installed on any Linux environment using flatpak utility. You can check more about this on official website.

Solved "No remote refs found similar to ‘flathub’" error

Also Read: How to Install Flameshot Screenshot Tool on Ubuntu 20.04 LTS (Focal Fossa)

So I was trying to install Komikku manga reader application on my Ubuntu 20.04 LTS system from flathub repository using flatpak utility then I noticed "No remote refs found similar to ‘flathub’" error on the output as shown below.

NOTE:

Please note that here I am using root user to run all the below commands. You can use any user with sudo access to run all these commands. For more information Please check Step by Step: How to Add User to Sudoers to provide sudo access to the User.

root@cyberithub:~# flatpak install flathub info.febvre.Komikku
Looking for matches…
error: No remote refs found similar to ‘flathub’

While the above error could occur due to any reasons but in most of the cases it is because flathub repo remote URL is not added. Since flatpak search and download all the applications from flathub repo so without the repo URL added it won’t able to find any reference to flathub where it can search the application. This you can also verify by running below flatpak remotes command. It will show you blank output.

root@cyberithub:~# flatpak remotes

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.

root@cyberithub:~# flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Now again if you check the remote flathub repo using flatpak remotes command, you will see it added as below .

root@cyberithub:~# flatpak remotes
Name    Options
flathub system

This should fix the error. To verify you can try to install the application again by using same flatpak install flathub info.febvre.Komikku command as shown below. You can notice that this time it works as expected and it is now able to proceed with the installation.

root@cyberithub:~# flatpak install flathub info.febvre.Komikku
Looking for matches…
Required runtime for info.febvre.Komikku/x86_64/stable (runtime/org.gnome.Platform/x86_64/41) found in remote flathub
Do you want to install it? [Y/n]: Y

info.febvre.Komikku permissions:
ipc network fallback-x11 wayland x11 dri file access [1] dbus access [2]

[1] xdg-pictures
[2] org.freedesktop.Notifications, org.freedesktop.secrets, org.gnome.SettingsDaemon.Color


ID Branch Op Remote Download
1. [✓] info.febvre.Komikku.Locale stable i flathub 2.6 kB / 268.2 kB
2. [|] org.freedesktop.Platform.GL.default 21.08 i flathub 16.7 MB / 131.3 MB
3. [ ] org.freedesktop.Platform.openh264 2.0 i flathub < 1.5 MB
4. [ ] org.gnome.Platform.Locale 41 i flathub < 336.5 MB (partial)
5. [ ] org.gnome.Platform 41 i flathub < 291.0 MB
6. [ ] info.febvre.Komikku stable i flathub < 9.0 MB

Installing 2/6… ███▍ 17% 16.7 MB/s

Hope this will help you fixing your issue as well. Please let me know your feedback on comment box.

Содержание

  1. Fixing Flatpak Error: No remote refs found similar to ‘flathub’
  2. Fixing “no remote refs found similar to flathub” error
  3. Reason why you see this error and how it was fixed
  4. Fixing Flatpak Error: No remote refs found similar to ‘flathub’
  5. Fixing “no remote refs found similar to flathub” error
  6. Reason why you see this error and how it was fixed
  7. Fixing Flatpak Error: No remote refs found similar to ‘flathub’
  8. Fixing “no remote refs found similar to flathub” error
  9. Reason why you see this error and how it was fixed
  10. Solved «No remote refs found similar to ‘flathub’» error
  11. What is Flatpak
  12. What is Flathub
  13. Solved «No remote refs found similar to ‘flathub’» error
  14. System flatpak in broken state: Cannot add or delete remote due to gpg keyring error #2796
  15. Comments
  16. Linux distribution and version
  17. Flatpak version
  18. Description of the problem
  19. Steps to reproduce
  20. Workaround
  21. Footer

Fixing Flatpak Error: No remote refs found similar to ‘flathub’

So, I just installed Fedora. Installing my favorite applications was on the list of things to do after installing Fedora.

I tried installing VLC in Flatpak form, but it gave me an error:

error: No remote refs found similar to ‘flathub’

No remote refs found error displayed with Flatpak

Fixing “no remote refs found similar to flathub” error

The fix is rather simple. Add the Flathub repository in the following way:

It will ask for your password, or you could use the above command with sudo.

Now, if you try to install a Fltapak package from Fltahub, it should work as expected.

Adding the Flathub repoistory fixes the issue

Reason why you see this error and how it was fixed

Now that you have fixed the error, it would be a good idea also to learn why you saw this error in the first place and how it was fixed.

Like most other package managers in Linux, Flatpak also works on the concept of repositories. In simpler words, you can imagine package repositories as a warehouse where packages are stored.

But to retrieve a package from this warehouse, you need to know the warehouse’s address first.

That’s what happens here. You are trying to download (and install) a package from a certain repository (Flathub in this case). But your system doesn’t know about this “flathub”.

In order to solve this issue, you added the Flathub repository. When you do that, your Linux system can look for the package you are trying to install in this repository.

You may see all the remote Flatpak repositories added to your system.

List Flatpak repositories added to your system

Let’s have a deeper look at the command which was used for adding the repository:

  • flatpak: this is the flatpak CLI tool.
  • remote-add: this option indicates that you are adding a new remote repository.
  • –if-not-exists: this ensures that the remote repository is only added if not already added.
  • flathub: this is a short reference for the actual repository’s complete URL. You may name it something else but the convention is to use the one provided by the developer.
  • https://flathub.org/repo/flathub.flatpakrepo: The actual repository address.

The bottom line is that when you see Flatpak complaining about ‘no remote refs found similar to xyz’, verify that the said repository is not added and if that’s the case, figure out its URL and add it to the system.

I hope this quick tip helps you with this Flatpak issue.

Источник

Fixing Flatpak Error: No remote refs found similar to ‘flathub’

So, I just installed Fedora. Installing my favorite applications was among the list of things to do after installing Fedora.

I tried installing VLC in Flatpak form, but it gave me an error:

error: No remote refs found similar to ‘flathub’

No remote refs found error displayed with Flatpak

Fixing “no remote refs found similar to flathub” error

The fix is rather simple. Add the Flathub repository in the following way:

It will ask for your password, or you could use the above command with sudo.

Now, if you try to install a Fltapak package from Fltahub, it should work as expected.

Adding the Flathub repoistory fixes the issue

Reason why you see this error and how it was fixed

Now that have fixed the error, it would be a good idea to also learn why you saw this error in the first place and how it was fixed.

Like most other package managers in Linux, Flatpak also works on the concept of repositories. In simpler words, you can imagine package repositories as a warehouse where packages are stored.

But in order to retrieve a package from this warehouse, you need to know the address of the warehouse first.

That’s what happens here. You are trying to download (and install) a package from a certain repository (Flathub in this case). But your system doesn’t know about this “flathub”.

In order to solve this issue, you added the Flathub repository. When you do that, your Linux system can look for the package you are trying to install in this repository.

You may see all the remote Flatpak repository added to your system.

List Flatpak repositories added to your system

Let’s have a deeper look at the command which was used for adding the repository:

  • flatpak: this is the flatpak CLI tool.
  • remote-add: this option indicates that you are adding a new remote repository.
  • –if-not-exists: this ensures that the remote repository is only added if it is not added already.
  • flathub: this is short reference for the complete URL of the actual repository. You may name it something else but the convention is to use the one provided by the developer.
  • https://flathub.org/repo/flathub.flatpakrepo: The actual repository address.

So, the bottom line is that when you see Flatpak complaining about ‘no remote refs found similar to xyz’, verify that the said repository is not added and if that’s the case, figure out its URL and add it to the system.

I hope this quick tip help you with this Flatpak issue.

Источник

Fixing Flatpak Error: No remote refs found similar to ‘flathub’

So, I just installed Fedora. Installing my favorite applications was among the list of things to do after installing Fedora.

I tried installing VLC in Flatpak form, but it gave me an error:

error: No remote refs found similar to ‘flathub’

No remote refs found error displayed with Flatpak

Fixing “no remote refs found similar to flathub” error

The fix is rather simple. Add the Flathub repository in the following way:

It will ask for your password, or you could use the above command with sudo.

Now, if you try to install a Fltapak package from Fltahub, it should work as expected.

Adding the Flathub repoistory fixes the issue

Reason why you see this error and how it was fixed

Now that have fixed the error, it would be a good idea to also learn why you saw this error in the first place and how it was fixed.

Like most other package managers in Linux, Flatpak also works on the concept of repositories. In simpler words, you can imagine package repositories as a warehouse where packages are stored.

But in order to retrieve a package from this warehouse, you need to know the address of the warehouse first.

That’s what happens here. You are trying to download (and install) a package from a certain repository (Flathub in this case). But your system doesn’t know about this “flathub”.

In order to solve this issue, you added the Flathub repository. When you do that, your Linux system can look for the package you are trying to install in this repository.

You may see all the remote Flatpak repository added to your system.

List Flatpak repositories added to your system

Let’s have a deeper look at the command which was used for adding the repository:

  • flatpak: this is the flatpak CLI tool.
  • remote-add: this option indicates that you are adding a new remote repository.
  • –if-not-exists: this ensures that the remote repository is only added if it is not added already.
  • flathub: this is short reference for the complete URL of the actual repository. You may name it something else but the convention is to use the one provided by the developer.
  • https://flathub.org/repo/flathub.flatpakrepo: The actual repository address.

So, the bottom line is that when you see Flatpak complaining about ‘no remote refs found similar to xyz’, verify that the said repository is not added and if that’s the case, figure out its URL and add it to the system.

I hope this quick tip help you with this Flatpak issue.

Источник

Solved «No remote refs found similar to ‘flathub’» error

In this article, we will see how to solve «No remote refs found similar to ‘flathub’» error. Last night when I was trying to install an application from flathub repository using flatpak utility, I noticed this error on the output and then I decided to write a post about this while fixing this error so that it will help you folks as well in case if you are also facing the same error. But before that let’s understand few key things first in case you are not already aware of.

What is Flatpak

Flatpak is a software deployment and package management utility that allows user to deploy and run their application in a sandboxed or an isolated environment. It was written in C language with an aim to provide a runtime environment for applications which works in isolation with the host system.

What is Flathub

Flathub is an app store very much similar to snap store, which contains hundreds of apps that can be installed on any Linux environment using flatpak utility. You can check more about this on official website.

Solved «No remote refs found similar to ‘flathub’» error

So I was trying to install Komikku manga reader application on my Ubuntu 20.04 LTS system from flathub repository using flatpak utility then I noticed «No remote refs found similar to ‘flathub’» error on the output as shown below.

While the above error could occur due to any reasons but in most of the cases it is because flathub repo remote URL is not added. Since flatpak search and download all the applications from flathub repo so without the repo URL added it won’t able to find any reference to flathub where it can search the application. This you can also verify by running below flatpak remotes command. It will show you blank output.

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.

Now again if you check the remote flathub repo using flatpak remotes command, you will see it added as below .

This should fix the error. To verify you can try to install the application again by using same flatpak install flathub info.febvre.Komikku command as shown below. You can notice that this time it works as expected and it is now able to proceed with the installation.

Hope this will help you fixing your issue as well. Please let me know your feedback on comment box.

Источник

System flatpak in broken state: Cannot add or delete remote due to gpg keyring error #2796

Linux distribution and version

Flatpak version

Description of the problem

Which is– per sé – okay…

(the uninstall fails)

Note, however, it listed more installed runtimes and things when I first executed the command, so I could uninstall some. It only fails for this particular runtime.

Likewise, if I want to install anything:

Only my system installation is broken, —user stuff works.

Steps to reproduce

I have no idea how I caused this.

Workaround

Okay, I could not work around it by installing it like this, which seems to have added the flathub remote with a different name though 😆 :

The text was updated successfully, but these errors were encountered:

Possibly related to a different error: In GNOME Software, I see that I have two remotes or so, one points to dl.flathub.org and one to flathub.org .

Okay no, that also fails, but I guess that’s a different issue. Reported as flathub/io.atom.Atom#45

You could try running sudo rm /var/lib/flatpak/repo/tmp/cache/summaries/* and then try again

Okay, I’ll try that…

Did so. Deleting the remote still does not work (same error).

Post the output of ls -l /var/lib/flatpak/repo/ ? It’s possible you added the remote incorrectly and the GPG keyring isn’t there.

By the way this is sort of a duplicate of #1450 but if it’s consistently reproducible and not transient for you maybe it’s worth leaving this issue open and investigating separately.

Did so. Deleting the remote still does not work (same error).

It would be good to specify the commands you used. Whether or not you added back the remote using the flatpakrepo file is important.

Post the output of ls -l /var/lib/flatpak/repo/?

It would be good to specify the commands you used.

Always just doing it as per the OP in «Description of the problem»:
flatpak —system remote-add flathub https://flathub.org/repo/flathub.flatpakrepo and flatpak —system remote-delete flathub . Neither of it works.

Whether or not you added back the remote using the flatpakrepo file is important.

If I cannot delete it, I cannot add it back… aka «Remote flathub already exists».

-rw-r—r—. 1 root root 2888 1. Apr 21:29 flathub-1.trustedkeys.gpg
-rw-r—r—. 1 root root 1225 16. Jun 2017 flathub.trustedkeys.gpg

Pretty strange that these two keyrings which should be identical are different sizes. For me flathub.trustedkeys.gpg is 2852 bytes so I’m guessing for you flathub-1.trustedkeys.gpg is the correct one. You could try sudo cp /var/lib/flatpak/repo/flathub-1.trustedkeys.gpg /var/lib/flatpak/repo/flathub.trustedkeys.gpg or if you want to stick to the CLI use remote-delete —force to delete the remote and then re-add it?

Both files are binary. (but totally different) Yes, flathub-1 is correct.

So it seems to be an old, expired key…

And yes, after replacing the key, it does work. Thanks… (If you want the key, however, I have a backup.)

So it seems the problem here was use of an outdated key, which doesn’t seem to be in circulation any more.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

So, I just installed Fedora. Installing my favorite applications was among the list of things to do after installing Fedora.

I tried installing VLC in Flatpak form, but it gave me an error:

error: No remote refs found similar to ‘flathub’

flatpak remote ref not found error

No remote refs found error displayed with Flatpak

The fix is rather simple. Add the Flathub repository in the following way:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

It will ask for your password, or you could use the above command with sudo.

Now, if you try to install a Fltapak package from Fltahub, it should work as expected.

flatpak no remote ref problem fixed

Adding the Flathub repoistory fixes the issue

Reason why you see this error and how it was fixed

Now that have fixed the error, it would be a good idea to also learn why you saw this error in the first place and how it was fixed.

Like most other package managers in Linux, Flatpak also works on the concept of repositories. In simpler words, you can imagine package repositories as a warehouse where packages are stored.

But in order to retrieve a package from this warehouse, you need to know the address of the warehouse first.

That’s what happens here. You are trying to download (and install) a package from a certain repository (Flathub in this case). But your system doesn’t know about this “flathub”.

In order to solve this issue, you added the Flathub repository. When you do that, your Linux system can look for the package you are trying to install in this repository.

You may see all the remote Flatpak repository added to your system.

flatpak list repositories

List Flatpak repositories added to your system

Let’s have a deeper look at the command which was used for adding the repository:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  • flatpak: this is the flatpak CLI tool.
  • remote-add: this option indicates that you are adding a new remote repository.
  • –if-not-exists: this ensures that the remote repository is only added if it is not added already.
  • flathub: this is short reference for the complete URL of the actual repository. You may name it something else but the convention is to use the one provided by the developer.
  • https://flathub.org/repo/flathub.flatpakrepo: The actual repository address.

So, the bottom line is that when you see Flatpak complaining about ‘no remote refs found similar to xyz’, verify that the said repository is not added and if that’s the case, figure out its URL and add it to the system.

I hope this quick tip help you with this Flatpak issue.

Original Article

Summary

Trying to install a flatpak for the first time, if I install it for user only, it doesn’t work. It prints a dumb error and if I run the reported command, it works fine in the shell…

Issue Type

Bug Report

Component Name

flatpak

Ansible Version

ansible [core 2.13.5rc1]
  executable location = /bin/ansible
  python version = 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]
  jinja version = 3.0.3
  libyaml = True

Configuration

# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t all
DEFAULT_HOST_LIST(/home/me/Documents/Ansible/playbooks/LOCAL/ansib>
DEFAULT_ROLES_PATH(/home/me/Documents/Ansible/playbooks/LOCAL/ansi>
DEFAULT_STDOUT_CALLBACK(/home/me/Documents/Ansible/playbooks/LOCAL>
DEFAULT_VAULT_PASSWORD_FILE(/home/me/Documents/Ansible/playbooks/L>
DIFF_ALWAYS(/home/me/Documents/Ansible/playbooks/LOCAL/ansible.cfg>
RETRY_FILES_ENABLED(/home/me/Documents/Ansible/playbooks/LOCAL/ans>

OS / Environment

PopOS 22.04

Steps to Reproduce

    - name: Install Krita as Flatpak (because bugs in .deb) for user
      community.general.flatpak:
        name: org.kde.krita
        state: present
        method: user
        #remote: flathub

With or without the #remote, with or without this:

    - name: Add the flathub remote for the whole system
      community.general.flatpak_remote:
        name: flathub
        state: present
        method: user

it’s always the same result

Expected Results

It should install.

Note that I have both remotes (I installed system only because of that ansible bug, I already had —user):

flatpak remotes
Name    Options
flathub system
flathub user

I already have krita installed as user manually though.

/usr/bin/flatpak install --user --noninteractive flathub org.kde.krita
Skipping: org.kde.krita/x86_64/stable is already installed

Actual Results

TASK [Install Krita as Flatpak (because bugs in .deb) for user] ****************
fatal: [localhost]: FAILED! => {
    "changed": false,
    "cmd": "/usr/bin/flatpak install --user --noninteractive flathub org.kde.krita",
    "rc": 1
}

STDERR:

error: No remote refs found similar to ‘flathub’



MSG:

error: No remote refs found similar to ‘flathub’


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct

Понравилась статья? Поделить с друзьями:
  • Lolzteam error 404
  • Lolminer unrecoverable memory error by gpu
  • Lol произошла непредвиденная ошибка авторизации
  • Lol ошибка инициализации графического устройства
  • Lol код ошибки ou