1

Pre-requisite:

  • Ubuntu 20.04 LTS (minimal installation) on a VirtualBox 6.1

I was trying to install VS Code through Snap:

$ snap install code --classic
error: cannot install "code": Post https://api.snapcraft.io/v2/snaps/refresh:
   x509: certificate signed by unknown authority

Then I tried PyCharm CE also, same error:

$ snap install pycharm-community --classic
error: cannot install "pycharm-community": Post
   https://api.snapcraft.io/v2/snaps/refresh: x509: certificate signed by
   unknown authority
Bijesh Mohan
  • 31
  • 2
  • 5

1 Answers1

1

Taken from: askubuntu.com/questions/1029117

Snap is probably still working on something in the background (or at least it thinks so). Open a terminal and run snap changes so see a list of ongoing changes.

$ snap changes

... 8 Doing 2018-04-28T10:40:11Z - Install "foo" snap ...

You can abort ongoing "Do" or "Doing" change(s):

sudo snap abort 8

Original answer by fnkr