"snapd" is not installed

Bug #1897972 reported by Bob Ross
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux-signed-hwe-5.4 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Connection to Snap Store failed

Your system does not have a connection to the Snap Store. For the best upgrade experience make sure that your system can connect to api.snapcraft.io. Do you still want to continue with the upgrade?

I got the error snap snapd is not installed and tried to apt get snapd, which said it was already installed. So I ignored, typed systemctl restart snapd and tried again but upgrade still failed.

$ snap refresh snapd
snap "snapd" is not installed

$ sudo apt install snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
snapd is already the newest version (2.46.1+18.04).
The following packages were automatically installed and are no longer required:
  linux-hwe-5.4-headers-5.4.0-42 linux-hwe-5.4-headers-5.4.0-45
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-5.4.0-48-generic 5.4.0-48.52~18.04.1
ProcVersionSignature: Ubuntu 5.4.0-48.52~18.04.1-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 30 14:47:56 2020
InstallationDate: Installed on 2019-12-29 (276 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed-hwe-5.4
UpgradeStatus: Upgraded to bionic on 2020-09-30 (0 days ago)

Revision history for this message
Bob Ross (bross-2) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-signed-hwe-5.4 (Ubuntu):
status: New → Confirmed
Revision history for this message
Petar Vasilev (peter-v-vasilev) wrote :

Did you find a solution?

Revision history for this message
Gus Hoppes (g-style) wrote (last edit ):

This appears to be a proxy setting for snapd. You can try clearing the proxy setting for snapd or setting it to your proxy server. In my scenario, this bug popped up during an upgrade to ubuntu server v22.04 lts. Snapd was installed to the latest version, but it reported during the upgrade:

Connection to Snap Store failed
Your system does not have a connection to the Snap Store. For the
best upgrade experience make sure that your system can connect to
api.snapcraft.io.
Do you still want to continue with the upgrade?

I got around this by setting the proxy server for snap. Put your proxy url in between the quotes below of the following commands:
$ sudo snap set system proxy.http=""
$ sudo snap set system proxy.https=""

I tried doing a 'snap refresh snapd' after setting the proxy, but it still indicated snapd wasn't installed (when it was). I believe this is the actual bug.

Regardless of it saying it wasn't installed, after setting the proxy server for snapd (to my proxy settings), I was able to perform the upgrade and it connected to api.snapcraft.io without any problems. I would assume if you have no proxy and clear the proxy settings (just by entering in snap commands as they are with no proxy) it would work for you as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.