Ошибка 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

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.3k26 gold badges63 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

7021 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

2681 silver badge9 bronze badges

answered Apr 23, 2020 at 17:27

ashin78's user avatar

ashin78ashin78

511 silver badge2 bronze badges

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

271 silver badge9 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

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

Опять таки долго не уводила машину в ребут, а когда передернула обнаружила 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

Убрать все
snapа также
snapdфайлы. Это работает для меня, и я пробовал много методов.

      sudo apt purge snap
rm -rf ~/snap
sudo rm -rf /snap
sudo rm -rf /var/snap
sudo rm -rf /var/lib/snapd
sudo rm -rf /var/tmp/snapd.swn
sudo rm -rf /var/tmp/snapd.swk
sudo rm -rf /var/tmp/snapd.swl
sudo rm -rf /var/tmp/snapd.swm
sudo rm -rf /var/tmp/snapd.swn
sudo rm -rf /var/tmp/snapd.swo
sudo rm -rf /var/tmp/snapd.swp
sudo rm -rf /etc/systemd/system/snapd.service.d
sudo apt install snapd
sudo snap install hello-world

Я надеюсь, что это принесет вам пользу. :)

  • Ошибка u3fff mitsubishi colt
  • Ошибка u3110 ваз 2114
  • Ошибка u3110 ваз 2107 инжектор
  • Ошибка u3008 форд фокус 3
  • Ошибка u3006 ford s max