Error unable to contact snap store

I installed Ubuntu 18.04 yesterday. Today I tried to install micro editor through snap, but it doesn't work. Any command like this sudo snap install hello-world freezes for a minute and I receive ...

I installed Ubuntu 18.04 yesterday. Today I tried to install micro editor through snap, but it doesn’t work. Any command like this sudo snap install hello-world freezes for a minute and I receive

error: unable to contact snap store

Is there some problem with the snap store or is it because I couldn’t connect to it from my network? How could I check that?

Kulfy's user avatar

Kulfy

17.1k26 gold badges62 silver badges102 bronze badges

asked May 9, 2018 at 13:43

Leonid Dubov's user avatar

4

Seems there might be a problem with the snap store this morning. Occasionally I get a successful return.

➜  ~ sudo snap find nextcloud
Name                Version           Developer     Notes  Summary
nextcloud-client    2.3.3+gitab40efe  nextcloud     -      Nextcloud Desktop Client
nextcloud-port8080  1.01              arcticslyfox  -      Nextcloud Server
nextcloud-nextant   11.0.0snap3       rmescandon    -      Nextcloud Server + search support
nextcloud           13.0.2snap1       nextcloud     -      Nextcloud Server - A safe home for all your data
cashbox-nextcloud   11.0.2snap2       cashbox       -      Nextcloud Server for www.cashBOX.plus
qownnotes           18.05.2           pbek          -      Plain-text file notepad with markdown support and ownCloud / Nextcloud integration
spreedme            0.29.5snap1       nextcloud     -      Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap
solr                0.1               rmescandon    -      Starts up solr as forking daemon
mdns-hostname       0.0.1             welike        -      mDNS mini-daemon to published hostname.local
➜  ~ sudo snap find nextcloud
error: unable to contact snap store
➜  ~ 

answered May 9, 2018 at 13:55

Eric Fossum's user avatar

Eric FossumEric Fossum

6921 gold badge6 silver badges14 bronze badges

1

I got the same error just now. A solution that worked for me was:

in terminal:

$ killall snap-store

Then the snap connection was back

answered Aug 2, 2020 at 16:10

Ulises's user avatar

UlisesUlises

1113 bronze badges

Snap store might simply be down. Too bad this stalls. Refreshing snapd is supposed to fix this (?) according to a solution I saw, but it does not work because the web API is down. I don’t know if the API spec changed, but it is currently the case that the host is not resolved. You have to wait until the store is back up. PS: There was probably a server change which takes time to propagate in my case.

$ sudo snap refresh snapd

error: cannot refresh "snapd": cannot refresh snap-declaration for "chromium":
       Get
       https://api.snapcraft.io/api/v1/snaps/assertions/snap-declaration/16/XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R?max-format=4:
       dial tcp: lookup api.snapcraft.io on 127.0.0.53:53: no such host
$ host api.snapcraft.io
;; connection timed out; no servers could be reached

answered Jun 20, 2020 at 16:10

exa's user avatar

You might get that error when you are trying to install something through snap behind proxy.

Configure the proxy with these commands:

sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>"
sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>"

Cadoiz's user avatar

Cadoiz

2541 silver badge8 bronze badges

answered Apr 23, 2020 at 17:27

ashin78's user avatar

ashin78ashin78

511 silver badge2 bronze badges

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [ubuntu] unable to contact snap store

  1. unable to contact snap store

    So I recently switch from Linux Mint 20 to Ubuntu 20.04 LTS because I receive the error (unable to contact snap store) whenever I wanted to install a software via snap. Fortunately snap store works fine on my laptop but not my desktop (I receive the same error) so I was wondering if you could provide any solution.

    Thanks in advance for your time.


  2. Re: unable to contact snap store

    It is not clear if you are unable to connect to the snap store in Ubuntu 20.04 or Linux Mint 20. Did you do a fresh install of Ubuntu 20.04? It is my understanding that the Linux Mint developers have deliberately made it impossible to install and run snap packaged apps in Linux Mint. You have to make some changes to remove what the Linux Mint developers have done.

    https://snapcraft.io/install/snap-store/mint

    Regards

    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. Re: unable to contact snap store

    Quote Originally Posted by grahammechanical
    View Post

    It is not clear if you are unable to connect to the snap store in Ubuntu 20.04 or Linux Mint 20. Did you do a fresh install of Ubuntu 20.04? It is my understanding that the Linux Mint developers have deliberately made it impossible to install and run snap packaged apps in Linux Mint. You have to make some changes to remove what the Linux Mint developers have done.

    https://snapcraft.io/install/snap-store/mint

    Regards

    I install a fresh Ubuntu 20.04 LTS. I was aware that change has to be made in Linux Mint in order to use snap.


  4. Re: unable to contact snap store

    Linux Mint doesn’t make it impossible to use snaps. They just don’t setup their system to force snap package use onto administrators/users. Basically, the snap subsystem has to be installed. I bet there is a .deb file for it.

    Code:

    sudo rm /etc/apt/preferences.d/nosnap.pref
    sudo apt update
    sudo apt install snapd

    Yep. A normal apt install. If you want a GUI … install that package too. Snaps are useful for many things and terrible for some systems.

    The «Snap Store» isn’t required to use snaps. They can be installed from a shell/CLI interface. The commands are very similar to those for apt.

    Code:

    sudo apt install {package name}
    sudo snap install {package name}
    sudo apt remove {package name}
    sudo snap remove {package name}
    sudo apt search {package name}
    sudo snap search {package name}

    Very similar.


  5. Re: unable to contact snap store

    Quote Originally Posted by TheFu
    View Post

    Linux Mint doesn’t make it impossible to use snaps. They just don’t setup their system to force snap package use onto administrators/users. Basically, the snap subsystem has to be installed. I bet there is a .deb file for it.

    Code:

    sudo rm /etc/apt/preferences.d/nosnap.pref
    sudo apt update
    sudo apt install snapd

    Yep. A normal apt install. If you want a GUI … install that package too. Snaps are useful for many things and terrible for some systems.

    The «Snap Store» isn’t required to use snaps. They can be installed from a shell/CLI interface. The commands are very similar to those for apt.

    Code:

    sudo apt install {package name}
    sudo snap install {package name}
    sudo apt remove {package name}
    sudo snap remove {package name}
    sudo apt search {package name}
    sudo snap search {package name}

    Very similar.

    Oh thanks. I was aware of these commands. My problem is that I receive an error (unable to contact snap store) whenever I try to install or search a package.


  6. Re: unable to contact snap store

    Quote Originally Posted by davoudi
    View Post

    Oh thanks. I was aware of these commands. My problem is that I receive an error (unable to contact snap store) whenever I try to install or search a package.

    • What URL is being used?
    • Can you go there with a normal browser?
    • Can you ping the server by name?
    • Ping by IP?
    • It could be that the server is down or that your part of the world can’t reach it. Use one of the «down for me?» websites to see what other parts of the world see from their location.


  7. Re: unable to contact snap store

    Quote Originally Posted by TheFu
    View Post

    • What URL is being used?

    I don’t use any URL. I simply run the command sudo snap install package-name.

    Quote Originally Posted by TheFu
    View Post

    • Can you go there with a normal browser?

    Do you mean api.snapcraft.io? I can go there and I get «snapcraft.io store API service — Copyright 2018-2019 Canonical.«.

    Quote Originally Posted by TheFu
    View Post

    • Can you ping the server by name?

    Yes.

    Quote Originally Posted by TheFu
    View Post

    • Ping by IP?

    Yes.

    Quote Originally Posted by TheFu
    View Post

    • It could be that the server is down or that your part of the world can’t reach it. Use one of the «down for me?» websites to see what other parts of the world see from their location.

    I don’t think that the server is down. I can ping it so it means I can reach it from my country. I was able to install hello-world from my laptop but nothing from my desktop.


Bookmarks

Bookmarks


Posting Permissions

Здравствуйте!

Опять таки долго не уводила машину в ребут, а когда передернула обнаружила Snap Store вместо стандартного магазина.

Хоть это 20.04 версия, изначально там Snap’a не было, появился он именно сегодня + включила второй ноутбук (на него Ubuntu была установлена примерно в то же время, что и на основной рабочий) — Snap и там поселился.

И я как бы не против, бороться с прогрессом себе дороже + я не того уровня специалист, но:

helga@Hummer-E5-575G:~$ snap-store
/home/helga/snap/snap-store/common/.cache/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libgiognutls.so
/home/helga/snap/snap-store/common/.cache/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libdconfsettings.so
/home/helga/snap/snap-store/common/.cache/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libgiolibproxy.so
/home/helga/snap/snap-store/common/.cache/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libgiognomeproxy.so
17:44:59:0160 GLib-GIO Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
17:44:59:0179 Gs  enabled plugins: odrs, rewrite-resource, snap, icons, key-colors, key-colors-metadata
17:44:59:0179 Gs  disabled plugins: appstream, desktop-categories, desktop-menu-path, dpkg, dummy, epiphany, fedora-pkgdb-collections, generic-updates, hardcoded-blacklist, hardcoded-featured, hardcoded-popular, modalias, os-release, provenance, provenance-license, repos, shell-extensions
17:44:59:0768 Gs  failed to create an app for */*/*/*/system/*
17:44:59:0777 Gs  updates-shell: failed to get updates: no plugin could handle get-updates
17:44:59:0777 Gs  failed to create an app for */*/*/*/system/*
17:44:59:0777 Gs  failed to get system app
17:44:59:0777 Gs  Only 0 apps for recent list, hiding
17:44:59:0795 GsPluginSnap Failed to load snap icon: local snap has no icon
17:44:59:0972 Gs  hiding category graphics featured applications: found only 0 to show, need at least 9
17:45:00:0154 Gs  hiding category audio-video featured applications: found only 0 to show, need at least 9
17:45:00:0450 GsPluginSnap Failed to load snap icon: local snap has no icon
17:45:00:0908 GsPluginSnap Failed to load snap icon: local snap has no icon
17:45:01:0226 GLib-GIO Settings schema 'org.gnome.software' does not contain a key named 'show-folder-management'
Trace/breakpoint trap (core dumped)

При том:

1. На втором профиле (админе) он работает.
2. Снесла snap и установила снова — аналогично, на втором профиле ок, на основном — нет.
3. Конкретно по выхлопу нашла: https://forum.manjaro.org/t/spotify-suddenly-not-working/125237/14
И это не помогло.

Из под sudo:

mkdir: cannot create directory '/run/user/0': Permission denied
18:07:27:0243 GLib-GIO g_app_info_get_name: assertion 'G_IS_APP_INFO (appinfo)' failed
No protocol specified
Unable to init server: Could not connect: Connection refused
18:07:27:0248 Gtk cannot open display: :1

Включала репозитории партнеров (не закрытый код) и обновляла систему, пришло пару обновлений и не помогло.

Товарищи, спасайте. Почему так?

Доп.инфо:

Качала отсюда: https://ubuntu.com/download/desktop/thank-you?version=20.04&architecture=amd64


ТС не появлялся на Форуме более трех месяцев по состоянию на 19/03/2021 (последняя явка: 19/08/2020). Модератором раздела принято решение закрыть тему.
—zg_nico

Содержание

  1. Linux Mint Forums
  2. unable to connect to snap
  3. unable to connect to snap
  4. Re: unable to connect to snap
  5. Re: unable to connect to snap
  6. Как установить официальное приложение Snap Store в Linux
  7. Включить поддержку Snap
  8. Установка Snap Store
  9. Настройка Snap Store
  10. Установите программное обеспечение из Snap Store
  11. Удаление программного обеспечения из Snap Store
  12. Apparmor problem with snap-store? Ubuntu software not working properly 20.04
  13. 1 Answer 1

Linux Mint Forums

Welcome to the Linux Mint forums!

unable to connect to snap

unable to connect to snap

Post by bahman » Sat Mar 20, 2021 10:31 pm

I am trying to install a few software and I need snap for it. I install snap but I get an error «unable to contact snap store» when I want to install any software.

Any help is appreciated.

Re: unable to connect to snap

Post by Kadaitcha Man » Sat Mar 20, 2021 11:09 pm

That’s because snap is deliberately disabled in Linux Mint.

You can’t possibly have exhausted your search options because searching for ‘linux mint snap’ turns up a myriad of resources, such as:

That link is the top link and it explains why it is so from a journalist’s point of view.

That is the third link returned and it shows you a way to enable snap on LM.

Even before you do any of that, a read of the release notes for LM should always be performed because doing that almost always reveals important information, saving your time and ours.

Re: unable to connect to snap

Post by bahman » Sat Mar 20, 2021 11:47 pm

That’s because snap is deliberately disabled in Linux Mint.

You can’t possibly have exhausted your search options because searching for ‘linux mint snap’ turns up a myriad of resources, such as:

That link is the top link and it explains why it is so from a journalist’s point of view.

That is the third link returned and it shows you a way to enable snap on LM.

Even before you do any of that, a read of the release notes for LM should always be performed because doing that almost always reveals important information, saving your time and ours.

Источник

Как установить официальное приложение Snap Store в Linux

Canonical превратила свой официальный магазин приложений в удобную для установки витрину для установки приложений. Итак, если вам надоело использовать командную строку для поиска и установки ваших любимых приложений Snap, это приложение для вас! Мы покажем вам, как установить официальный магазин Snap Snap в Linux!

Примечание. Магазин Snap иногда не очень хорошо работает в средах рабочего стола, отличных от GTK. Итак, если вы планируете воспользоваться преимуществами Snap Store, обязательно установите Gnome, Mate, Cinnamon или другую среду рабочего стола Linux, в которой используется GTK.

Включить поддержку Snap

Snap Store можно установить через Snap Store, как вы уже догадались, как приложение snap. Итак, чтобы использовать магазин, вам необходимо пройти процесс установки фоновой службы Snapd, а также запустить файл Snapd.socket с помощью Systemd.

Установить фоновую службу Snap в Linux в наши дни очень просто, в основном из-за огромной поддержки сообщества вокруг проекта почти во всех основных дистрибутивах Linux, включая Ubuntu, Debian, Arch Linux, Fedora, OpenSUSE, Gentoo и другие. Для получения справки по установке и включению службы Snap в вашей системе Linux щелкните здесь.

Есть ли в используемом вами дистрибутиве Linux проблемы с запуском пакетов Snap? Рассмотрите возможность использования Debian, Arch Linux, Fedora, OpenSUSE, поскольку они имеют довольно хорошую поддержку для приложения Snap store. Или Ubuntu, так как приложение устанавливать не нужно!

Установка Snap Store

Хотя основная цель установки Snap Store — сделать так, чтобы загрузка и использование приложений были более простым процессом, чем работа с терминалом. Тем не менее, вам нужно покопаться в командной строке, чтобы все заработало.

Приложение Snap Store находится в магазине с пометкой «snap-store». Чтобы установить его на свой ПК с Linux, откройте окно терминала, нажав Ctrl + Alt + T или Ctrl + Shift + T на клавиатуре и набрав команду мгновенной установки ниже.

Приложение Snap Store не очень загружается, поэтому процесс начальной загрузки должен быть быстрым. Однако у вас не будет доступа к терминалу сразу, так как Snap Store должен подключаться к большому количеству плагинов. Сядь и наберись терпения. Если для завершения первоначальной настройки требуется время, выйдите из комнаты и вернитесь через пару минут! Когда закончите, попробуйте запустить его с помощью:

Настройка Snap Store

В некоторых операционных системах Linux для начала достаточно просто установить пакет «snap-store». Однако в других случаях требуется некоторая настройка, прежде чем что-либо сработает.

Для настройки Snap Store необходимо установить дополнительный пакет платформы Gnome и подключить его к Snap Store. Для этого перейдите в окно терминала и установите «gnome-3-28-1804».

Позвольте платформе Gnome установить Snap через окно терминала. Установка должна быть быстрой. Когда привязка Gnome будет установлена, вы можете использовать команду подключения, чтобы связать ее с приложением Snap Store.

Предполагая, что соединение установлено успешно, приложение Snap Store должно иметь возможность открываться с помощью приведенной ниже команды или щелкнув значок «Snapcraft» в меню приложения.

Установите программное обеспечение из Snap Store

Чтобы установить программное обеспечение из Snap Store в Linux, начните с запуска приложения. При первом запуске приложения может потребоваться некоторое время, чтобы оно стало отзывчивым и пригодным для использования. Когда приложение можно будет использовать, вы увидите витрину магазина Snap с несколькими категориями приложений, такими как «игры», «финансы», «коммунальные услуги», «производительность», «новости и погода» и т. Д. Выберите одну из категорий, и Snap Store представит вам различные приложения Snap на выбор. Также можно искать приложения напрямую, щелкнув поле поиска вверху.

Найдите в категории то, что вы хотите установить. Затем щелкните мышью значок, который будет перенесен на страницу описания приложения.

На странице описания найдите кнопку «Установить» и выберите ее, чтобы начать установку приложения Snap через магазин.

После нажатия кнопки «Установить» магазин Snap выйдет и установит все необходимое для запуска приложения Snap. Оттуда просмотрите меню приложения на рабочем столе Linux, чтобы запустить его!

Удаление программного обеспечения из Snap Store

Нужно удалить какое-то программное обеспечение из магазина Snap? Откройте приложение и нажмите кнопку «Установлено». Затем нажмите кнопку «Удалить», чтобы удалить любое приложение, которое вы хотите в списке. Также можно удалить любое приложение Snap, выполнив поиск приложения в поле поиска и нажав кнопку удаления на странице приложения, которое вы хотите удалить.

Источник

Apparmor problem with snap-store? Ubuntu software not working properly 20.04

I recently installed Ubuntu 20.04.
I attempted to install apps from the Ubuntu software center, but it isn’t working correctly.

No icons are displayed.

No screenshots or information about the applications are displayed.

1 Answer 1

This issue has existed for a long time. Ubuntu’s Snap store isn’t well-maintained and doesn’t perform properly. As a result, in Jammy 22.04, they’ve chosen to use Gnome software instead. Gnome software is working fine without any issues. You can install gnome-software using:

If you want to remove the Ubuntu software app:

Gnome software is way better than the default application centre. The user interface is nearly the same.

Note: Ubuntu Snap Store is a re-designed version of Gnome-Software but unfortunately with bugs.

You can launch gnome software using:

You can also launch it using the application overview.

Here is how it looks like:

Here is the UI of Gnome Software in Ubuntu 21.10:

You can install additional plugins for it too. For example, you can run the following command to enable the snap plugin in Gnome Software:

If you want to enable flatpak support then you can run:

Источник

Проблема с магазином снимков

Я установил Ubuntu 18.04 вчера. Сегодня я пытался установить микроредактор через оснастку, но он не работает. Любая подобная команда sudo snap install hello-world останавливается на минуту, и я получаю ошибку

: невозможно связаться с хранилищем моментальных снимков

Есть ли какая-то проблема с хранилищем моментальных снимков или это потому, что я не мог подключиться к нему из моей сети? Как я могу это проверить?

задан
9 May 2018 в 20:49

поделиться

4 ответа

Кажется, что могла бы быть проблема с поспешным хранилищем этим утром. Иногда я получаю успешный возврат.

➜  ~ sudo snap find nextcloud
Name                Version           Developer     Notes  Summary
nextcloud-client    2.3.3+gitab40efe  nextcloud     -      Nextcloud Desktop Client
nextcloud-port8080  1.01              arcticslyfox  -      Nextcloud Server
nextcloud-nextant   11.0.0snap3       rmescandon    -      Nextcloud Server + search support
nextcloud           13.0.2snap1       nextcloud     -      Nextcloud Server - A safe home for all your data
cashbox-nextcloud   11.0.2snap2       cashbox       -      Nextcloud Server for www.cashBOX.plus
qownnotes           18.05.2           pbek          -      Plain-text file notepad with markdown support and ownCloud / Nextcloud integration
spreedme            0.29.5snap1       nextcloud     -      Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap
solr                0.1               rmescandon    -      Starts up solr as forking daemon
mdns-hostname       0.0.1             welike        -      mDNS mini-daemon to published hostname.local
➜  ~ sudo snap find nextcloud
error: unable to contact snap store
➜  ~ 

ответ дан Eric Fossum
23 November 2019 в 03:07

поделиться

Вы можете получить эту ошибку, когда пытаетесь установить что-то через оснастку за прокси-сервером.

Настройте прокси с помощью следующих команд:

sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>"
sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>"

ответ дан ashin78
23 April 2020 в 17:27

поделиться

Магазин Snap может просто не работать. Жаль, что это останавливается. Обновление snapd должно исправить это (?) в соответствии с решением, которое я видел, но оно не работает, потому что веб-API не работает. Я не знаю, изменилась ли спецификация API, но в настоящее время хост не разрешен. Придется ждать, пока магазин восстановится. PS: Вероятно, произошло изменение сервера, для распространения которого в моем случае требуется время.

$ sudo snap refresh snapd

error: cannot refresh "snapd": cannot refresh snap-declaration for "chromium":
       Get
       https://api.snapcraft.io/api/v1/snaps/assertions/snap-declaration/16/XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R?max-format=4:
       dial tcp: lookup api.snapcraft.io on 127.0.0.53:53: no such host
$ host api.snapcraft.io
;; connection timed out; no servers could be reached

ответ дан Community
20 June 2020 в 16:10

поделиться

Я только что получил ту же ошибку. Решение, которое сработало для меня, было:

в терминале:

$ killall snap-store

Затем мгновенная связь вернулась

ответ дан Community
2 August 2020 в 16:10

поделиться

Другие вопросы по тегам:

Похожие вопросы:

Перейти к контенту

I installed Ubuntu 18.04 yesterday. Today I tried to install micro editor through snap, but it doesn’t work. Any command like this sudo snap install hello-world freezes for a minute and I receive

error: unable to contact snap store

Is there some problem with the snap store or is it because I couldn’t connect to it from my network? How could I check that?

Kulfy's user avatar

Kulfy

17.1k26 gold badges62 silver badges101 bronze badges

asked May 9, 2018 at 13:43

Leonid Dubov's user avatar

4

Seems there might be a problem with the snap store this morning. Occasionally I get a successful return.

➜  ~ sudo snap find nextcloud
Name                Version           Developer     Notes  Summary
nextcloud-client    2.3.3+gitab40efe  nextcloud     -      Nextcloud Desktop Client
nextcloud-port8080  1.01              arcticslyfox  -      Nextcloud Server
nextcloud-nextant   11.0.0snap3       rmescandon    -      Nextcloud Server + search support
nextcloud           13.0.2snap1       nextcloud     -      Nextcloud Server - A safe home for all your data
cashbox-nextcloud   11.0.2snap2       cashbox       -      Nextcloud Server for www.cashBOX.plus
qownnotes           18.05.2           pbek          -      Plain-text file notepad with markdown support and ownCloud / Nextcloud integration
spreedme            0.29.5snap1       nextcloud     -      Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap
solr                0.1               rmescandon    -      Starts up solr as forking daemon
mdns-hostname       0.0.1             welike        -      mDNS mini-daemon to published hostname.local
➜  ~ sudo snap find nextcloud
error: unable to contact snap store
➜  ~ 

answered May 9, 2018 at 13:55

Eric Fossum's user avatar

Eric FossumEric Fossum

6921 gold badge6 silver badges14 bronze badges

1

I got the same error just now. A solution that worked for me was:

in terminal:

$ killall snap-store

Then the snap connection was back

answered Aug 2, 2020 at 16:10

Ulises's user avatar

UlisesUlises

1113 bronze badges

Snap store might simply be down. Too bad this stalls. Refreshing snapd is supposed to fix this (?) according to a solution I saw, but it does not work because the web API is down. I don’t know if the API spec changed, but it is currently the case that the host is not resolved. You have to wait until the store is back up. PS: There was probably a server change which takes time to propagate in my case.

$ sudo snap refresh snapd

error: cannot refresh "snapd": cannot refresh snap-declaration for "chromium":
       Get
       https://api.snapcraft.io/api/v1/snaps/assertions/snap-declaration/16/XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R?max-format=4:
       dial tcp: lookup api.snapcraft.io on 127.0.0.53:53: no such host
$ host api.snapcraft.io
;; connection timed out; no servers could be reached

answered Jun 20, 2020 at 16:10

exa's user avatar

You might get that error when you are trying to install something through snap behind proxy.

Configure the proxy with these commands:

sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>"
sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>"

Cadoiz's user avatar

Cadoiz

2541 silver badge8 bronze badges

answered Apr 23, 2020 at 17:27

ashin78's user avatar

ashin78ashin78

511 silver badge2 bronze badges

Здравствуйте!

Опять таки долго не уводила машину в ребут, а когда передернула обнаружила Snap Store вместо стандартного магазина.

Хоть это 20.04 версия, изначально там Snap’a не было, появился он именно сегодня + включила второй ноутбук (на него Ubuntu была установлена примерно в то же время, что и на основной рабочий) — Snap и там поселился.

И я как бы не против, бороться с прогрессом себе дороже + я не того уровня специалист, но:

helga@Hummer-E5-575G:~$ snap-store
/home/helga/snap/snap-store/common/.cache/gio-modules/libgiognutls.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libgiognutls.so
/home/helga/snap/snap-store/common/.cache/gio-modules/libdconfsettings.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libdconfsettings.so
/home/helga/snap/snap-store/common/.cache/gio-modules/libgiolibproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libgiolibproxy.so
/home/helga/snap/snap-store/common/.cache/gio-modules/libgiognomeproxy.so: cannot open shared object file: No such file or directory
Failed to load module: /home/helga/snap/snap-store/common/.cache/gio-modules/libgiognomeproxy.so
17:44:59:0160 GLib-GIO Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
17:44:59:0179 Gs  enabled plugins: odrs, rewrite-resource, snap, icons, key-colors, key-colors-metadata
17:44:59:0179 Gs  disabled plugins: appstream, desktop-categories, desktop-menu-path, dpkg, dummy, epiphany, fedora-pkgdb-collections, generic-updates, hardcoded-blacklist, hardcoded-featured, hardcoded-popular, modalias, os-release, provenance, provenance-license, repos, shell-extensions
17:44:59:0768 Gs  failed to create an app for */*/*/*/system/*
17:44:59:0777 Gs  updates-shell: failed to get updates: no plugin could handle get-updates
17:44:59:0777 Gs  failed to create an app for */*/*/*/system/*
17:44:59:0777 Gs  failed to get system app
17:44:59:0777 Gs  Only 0 apps for recent list, hiding
17:44:59:0795 GsPluginSnap Failed to load snap icon: local snap has no icon
17:44:59:0972 Gs  hiding category graphics featured applications: found only 0 to show, need at least 9
17:45:00:0154 Gs  hiding category audio-video featured applications: found only 0 to show, need at least 9
17:45:00:0450 GsPluginSnap Failed to load snap icon: local snap has no icon
17:45:00:0908 GsPluginSnap Failed to load snap icon: local snap has no icon
17:45:01:0226 GLib-GIO Settings schema 'org.gnome.software' does not contain a key named 'show-folder-management'
Trace/breakpoint trap (core dumped)

При том:

1. На втором профиле (админе) он работает.
2. Снесла snap и установила снова — аналогично, на втором профиле ок, на основном — нет.
3. Конкретно по выхлопу нашла: https://forum.manjaro.org/t/spotify-suddenly-not-working/125237/14
И это не помогло.

Из под sudo:

mkdir: cannot create directory '/run/user/0': Permission denied
18:07:27:0243 GLib-GIO g_app_info_get_name: assertion 'G_IS_APP_INFO (appinfo)' failed
No protocol specified
Unable to init server: Could not connect: Connection refused
18:07:27:0248 Gtk cannot open display: :1

Включала репозитории партнеров (не закрытый код) и обновляла систему, пришло пару обновлений и не помогло.

Товарищи, спасайте. Почему так?

Доп.инфо:

Качала отсюда: https://ubuntu.com/download/desktop/thank-you?version=20.04&architecture=amd64


ТС не появлялся на Форуме более трех месяцев по состоянию на 19/03/2021 (последняя явка: 19/08/2020). Модератором раздела принято решение закрыть тему.
—zg_nico

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [ubuntu] unable to contact snap store

  1. So I recently switch from Linux Mint 20 to Ubuntu 20.04 LTS because I receive the error (unable to contact snap store) whenever I wanted to install a software via snap. Fortunately snap store works fine on my laptop but not my desktop (I receive the same error) so I was wondering if you could provide any solution.

    Thanks in advance for your time.


  2. Re: unable to contact snap store

    It is not clear if you are unable to connect to the snap store in Ubuntu 20.04 or Linux Mint 20. Did you do a fresh install of Ubuntu 20.04? It is my understanding that the Linux Mint developers have deliberately made it impossible to install and run snap packaged apps in Linux Mint. You have to make some changes to remove what the Linux Mint developers have done.

    https://snapcraft.io/install/snap-store/mint

    Regards

    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. Re: unable to contact snap store

    Quote Originally Posted by grahammechanical
    View Post

    It is not clear if you are unable to connect to the snap store in Ubuntu 20.04 or Linux Mint 20. Did you do a fresh install of Ubuntu 20.04? It is my understanding that the Linux Mint developers have deliberately made it impossible to install and run snap packaged apps in Linux Mint. You have to make some changes to remove what the Linux Mint developers have done.

    https://snapcraft.io/install/snap-store/mint

    Regards

    I install a fresh Ubuntu 20.04 LTS. I was aware that change has to be made in Linux Mint in order to use snap.


  4. Re: unable to contact snap store

    Linux Mint doesn’t make it impossible to use snaps. They just don’t setup their system to force snap package use onto administrators/users. Basically, the snap subsystem has to be installed. I bet there is a .deb file for it.

    Code:

    sudo rm /etc/apt/preferences.d/nosnap.pref
    sudo apt update
    sudo apt install snapd

    Yep. A normal apt install. If you want a GUI … install that package too. Snaps are useful for many things and terrible for some systems.

    The «Snap Store» isn’t required to use snaps. They can be installed from a shell/CLI interface. The commands are very similar to those for apt.

    Code:

    sudo apt install {package name}
    sudo snap install {package name}
    sudo apt remove {package name}
    sudo snap remove {package name}
    sudo apt search {package name}
    sudo snap search {package name}

    Very similar.


  5. Re: unable to contact snap store

    Quote Originally Posted by TheFu
    View Post

    Linux Mint doesn’t make it impossible to use snaps. They just don’t setup their system to force snap package use onto administrators/users. Basically, the snap subsystem has to be installed. I bet there is a .deb file for it.

    Code:

    sudo rm /etc/apt/preferences.d/nosnap.pref
    sudo apt update
    sudo apt install snapd

    Yep. A normal apt install. If you want a GUI … install that package too. Snaps are useful for many things and terrible for some systems.

    The «Snap Store» isn’t required to use snaps. They can be installed from a shell/CLI interface. The commands are very similar to those for apt.

    Code:

    sudo apt install {package name}
    sudo snap install {package name}
    sudo apt remove {package name}
    sudo snap remove {package name}
    sudo apt search {package name}
    sudo snap search {package name}

    Very similar.

    Oh thanks. I was aware of these commands. My problem is that I receive an error (unable to contact snap store) whenever I try to install or search a package.


  6. Re: unable to contact snap store

    Quote Originally Posted by davoudi
    View Post

    Oh thanks. I was aware of these commands. My problem is that I receive an error (unable to contact snap store) whenever I try to install or search a package.

    • What URL is being used?
    • Can you go there with a normal browser?
    • Can you ping the server by name?
    • Ping by IP?
    • It could be that the server is down or that your part of the world can’t reach it. Use one of the «down for me?» websites to see what other parts of the world see from their location.

  7. Re: unable to contact snap store

    Quote Originally Posted by TheFu
    View Post

    • What URL is being used?

    I don’t use any URL. I simply run the command sudo snap install package-name.

    Quote Originally Posted by TheFu
    View Post

    • Can you go there with a normal browser?

    Do you mean api.snapcraft.io? I can go there and I get «snapcraft.io store API service — Copyright 2018-2019 Canonical.«.

    Quote Originally Posted by TheFu
    View Post

    • Can you ping the server by name?

    Yes.

    Quote Originally Posted by TheFu
    View Post

    • Ping by IP?

    Yes.

    Quote Originally Posted by TheFu
    View Post

    • It could be that the server is down or that your part of the world can’t reach it. Use one of the «down for me?» websites to see what other parts of the world see from their location.

    I don’t think that the server is down. I can ping it so it means I can reach it from my country. I was able to install hello-world from my laptop but nothing from my desktop.


Bookmarks

Bookmarks


Posting Permissions

My Ubuntu 20.04 is connected to the Internet and I used update and upgrade commands on the machine and it’s up to date now. But when I type sudo snap install pycharm-community --classic to install PyCharm Community version, it returns back this error: error: unable to contact snap store.
What to do next, please?

I also searched for the program on Ubuntu Software, but it can’t find the app either!

asked Feb 15, 2021 at 16:33

opty's user avatar

It was possible and done very easily, after struggling too much with snap, Ubuntu software and facing failure on each, to download and install PyCharm Community using Toolbox App.

answered Feb 15, 2021 at 17:49

opty's user avatar

optyopty

278 bronze badges

Try updating the proxy settings with these commands:

sudo snap set system proxy.http=»http://<proxy_addr>:<proxy_port>»

sudo snap set system proxy.https=»http://<proxy_addr>:<proxy_port>»

answered Sep 12, 2022 at 12:09

Roney Juma's user avatar

Проблема с магазином снимков

Я установил Ubuntu 18.04 вчера. Сегодня я пытался установить микроредактор через оснастку, но он не работает. Любая подобная команда sudo snap install hello-world останавливается на минуту, и я получаю ошибку

: невозможно связаться с хранилищем моментальных снимков

Есть ли какая-то проблема с хранилищем моментальных снимков или это потому, что я не мог подключиться к нему из моей сети? Как я могу это проверить?

задан
9 May 2018 в 20:49

поделиться

4 ответа

Кажется, что могла бы быть проблема с поспешным хранилищем этим утром. Иногда я получаю успешный возврат.

➜  ~ sudo snap find nextcloud
Name                Version           Developer     Notes  Summary
nextcloud-client    2.3.3+gitab40efe  nextcloud     -      Nextcloud Desktop Client
nextcloud-port8080  1.01              arcticslyfox  -      Nextcloud Server
nextcloud-nextant   11.0.0snap3       rmescandon    -      Nextcloud Server + search support
nextcloud           13.0.2snap1       nextcloud     -      Nextcloud Server - A safe home for all your data
cashbox-nextcloud   11.0.2snap2       cashbox       -      Nextcloud Server for www.cashBOX.plus
qownnotes           18.05.2           pbek          -      Plain-text file notepad with markdown support and ownCloud / Nextcloud integration
spreedme            0.29.5snap1       nextcloud     -      Spreed.ME audio/video calls and conferences feature for the Nextcloud Snap
solr                0.1               rmescandon    -      Starts up solr as forking daemon
mdns-hostname       0.0.1             welike        -      mDNS mini-daemon to published hostname.local
➜  ~ sudo snap find nextcloud
error: unable to contact snap store
➜  ~ 

ответ дан Eric Fossum
23 November 2019 в 03:07

поделиться

Вы можете получить эту ошибку, когда пытаетесь установить что-то через оснастку за прокси-сервером.

Настройте прокси с помощью следующих команд:

sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>"
sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>"

ответ дан ashin78
23 April 2020 в 17:27

поделиться

Магазин Snap может просто не работать. Жаль, что это останавливается. Обновление snapd должно исправить это (?) в соответствии с решением, которое я видел, но оно не работает, потому что веб-API не работает. Я не знаю, изменилась ли спецификация API, но в настоящее время хост не разрешен. Придется ждать, пока магазин восстановится. PS: Вероятно, произошло изменение сервера, для распространения которого в моем случае требуется время.

$ sudo snap refresh snapd

error: cannot refresh "snapd": cannot refresh snap-declaration for "chromium":
       Get
       https://api.snapcraft.io/api/v1/snaps/assertions/snap-declaration/16/XKEcBqPM06H1Z7zGOdG5fbICuf8NWK5R?max-format=4:
       dial tcp: lookup api.snapcraft.io on 127.0.0.53:53: no such host
$ host api.snapcraft.io
;; connection timed out; no servers could be reached

ответ дан Community
20 June 2020 в 16:10

поделиться

Я только что получил ту же ошибку. Решение, которое сработало для меня, было:

в терминале:

$ killall snap-store

Затем мгновенная связь вернулась

ответ дан Community
2 August 2020 в 16:10

поделиться

Другие вопросы по тегам:

Похожие вопросы:

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

bahman

Level 1
Level 1
Posts: 7
Joined: Wed Jul 16, 2014 7:43 am

unable to connect to snap

Hi everybody,

I am trying to install a few software and I need snap for it. I install snap but I get an error «unable to contact snap store» when I want to install any software.

Any help is appreciated.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

bahman

Level 1
Level 1
Posts: 7
Joined: Wed Jul 16, 2014 7:43 am

Re: unable to connect to snap

Post

by bahman » Sat Mar 20, 2021 11:47 pm

Kadaitcha Man wrote: ↑

Sat Mar 20, 2021 11:09 pm

bahman wrote: ↑

Sat Mar 20, 2021 10:31 pm

I am trying to install a few software and I need snap for it. I install snap but I get an error «unable to contact snap store» when I want to install any software.

That’s because snap is deliberately disabled in Linux Mint.

You can’t possibly have exhausted your search options because searching for ‘linux mint snap’ turns up a myriad of resources, such as:

https://www.zdnet.com/article/linux-min … untu-snap/

That link is the top link and it explains why it is so from a journalist’s point of view.

https://snapcraft.io/docs/installing-snap-on-linux-mint

That is the third link returned and it shows you a way to enable snap on LM.

Even before you do any of that, a read of the release notes for LM should always be performed because doing that almost always reveals important information, saving your time and ours.

https://linuxmint-user-guide.readthedoc … /snap.html

Thanks for the information and links. So the problem is due to open source distribution. I already followed the instruction on how to install snap on Linux mint. Two of those links explain how to install snap which I already followed and install snap. So I don’t understand how I am not able to connect to snap store. I searched on the net and it seems that some people who use Linux mint are able to resolve the problem and use snap. I followed all of the solutions but no chance.

User avatar

Kadaitcha Man

Level 16
Level 16
Posts: 6102
Joined: Mon Aug 27, 2012 10:17 pm

Re: unable to connect to snap

Post

by Kadaitcha Man » Sat Mar 20, 2021 11:49 pm

bahman wrote: ↑

Sat Mar 20, 2021 11:47 pm

I already followed the instruction on how to install snap on Linux mint. Two of those links explain how to install snap which I already followed and install snap.

So now you decide to tell us that. Had you said so from the very beginning then someone’s free time, other than your own, could have been saved.

Good luck.

[*] All kadaitcha men are liars

bahman

Level 1
Level 1
Posts: 7
Joined: Wed Jul 16, 2014 7:43 am

Re: unable to connect to snap

Post

by bahman » Sat Mar 20, 2021 11:51 pm

Kadaitcha Man wrote: ↑

Sat Mar 20, 2021 11:49 pm

bahman wrote: ↑

Sat Mar 20, 2021 11:47 pm

I already followed the instruction on how to install snap on Linux mint. Two of those links explain how to install snap which I already followed and install snap.

So now you decide to tell us that. Had you said so from the very beginning then someone’s free time, other than your own, could have been saved.

Good luck.

I already mentioned in the OP that I installed snap. Thanks for your time anyway.

User avatar

Kadaitcha Man

Level 16
Level 16
Posts: 6102
Joined: Mon Aug 27, 2012 10:17 pm

Re: unable to connect to snap

Post

by Kadaitcha Man » Sat Mar 20, 2021 11:58 pm

bahman wrote: ↑

Sat Mar 20, 2021 11:51 pm

I already mentioned in the OP that I installed snap.

http://forums.linuxmint.com/viewtopic.php?f=17&t=83444

Saying ‘I installed snap’ does not imply that you followed any instructions whatsoever, nor does it imply that you followed some documented process, nor does it imply that you were aware that snap is disabled. Saying ‘I installed snap’ implies only that you ‘installed snap’, and absolutely nothing more.

[*] All kadaitcha men are liars

Понравилась статья? Поделить с друзьями:
  • Error unable to build the nvidia kernel module
  • Error unable to bind to the ldap server as the root ldap user
  • Error unable to backup due to error in vmdk backup
  • Error unable to allocate memory for the dll 5
  • Error unable to acquire lms api