unable to connect snap store using ubuntu 20.04 , while i can see when run sudo snap version

Asked by KhanG

Hi there

I have installed ubuntu 20.04 tls on dell pwer edge r620 server. No when i try to install microk8s it give error like unable to connect snap store. While i can see snap version installed by run sudo snap version.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#1

https://snapcraft.io/microk8s
-or-
sudo snap install microk8s

Revision history for this message
KhanG (khan1230) said :
#2

I have installed snapd but don't see in version .

root@ubuntu-server:~# sudo apt install snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  zenity | kdialog
The following NEW packages will be installed:
  snapd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.6 MB of archives.
After this operation, 151 MB of additional disk space will be used.
Err:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 snapd amd64 2.55.5+20.04
  404 Not Found [IP: 10.24.221.169 911]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/snapd/snapd_2.55.5+20.04_amd64.deb 404 Not Found [IP: 10.24.221.169 911]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@ubuntu-server:~# sudo snap version
sudo: snap: command not found
root@ubuntu-server:~# snap version

Command 'snap' not found, but can be installed with:

apt install snapd

root@ubuntu-server:~# snap list

Command 'snap' not found, but can be installed with:

apt install snapd

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Current version in the repositories for Ubuntu focal is 2.57.5+20.04ubuntu0.1

It seems that your local package inventory is outdated.

Try the commands

sudo apt update
sudo apt install snapd
snap version

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Remark: There is (or at least was) a problem that during the session where you install snapd for the first time you cannot access the snap store. You have to reboot (or logoff?) first. Not sure whether this is still valid.

Can you help with this problem?

Provide an answer of your own, or ask KhanG for more information if necessary.

To post a message you must log in.