Sudo snap install core ошибка

I have the hello snap, notes and core installed on my computer and all of them work fine.

$ snap list
Name              Version           Rev  Developer         Notes
core              16.04.1           714  canonical         -
hello             2.10              20   canonical         -
notes             0.9.0~gitb6e3b34  4    notes-developers  -  

When the hello snap is installed, the core snap is installed along with it if core is not already installed. Try updating the core snap:

sudo snap refresh core  

If core is already installed the following message will be shown:

snap "core" has no updates available

Your results of running sudo snap refresh core were as follows:

sudo snap refresh core error: cannot refresh "core": cannot find snap "core"

So uninstall the core snap and then reinstall it.

sudo snap remove core hello  
sudo snap install hello # core will also be installed automatically

Hello is a terminal app that runs like this.

$ hello
Hello, world!

The installation of snaps goes perfectly well, but whenever I try to run a snap after the installation nothing happens (e.g. Notes won’t start from the dash). Also non-GUI snaps like hello don’t work:

$ hello
cannot locate the core snap: No such file or directory

How could I fix this problem?

Zanna's user avatar

Zanna

69k56 gold badges215 silver badges327 bronze badges

asked Jan 18, 2017 at 8:57

Sander Klootwijk's user avatar

I have the hello snap, notes and core installed on my computer and all of them work fine.

$ snap list
Name              Version           Rev  Developer         Notes
core              16.04.1           714  canonical         -
hello             2.10              20   canonical         -
notes             0.9.0~gitb6e3b34  4    notes-developers  -  

When the hello snap is installed, the core snap is installed along with it if core is not already installed. Try updating the core snap:

sudo snap refresh core  

If core is already installed the following message will be shown:

snap "core" has no updates available

Your results of running sudo snap refresh core were as follows:

sudo snap refresh core error: cannot refresh "core": cannot find snap "core"

So uninstall the core snap and then reinstall it.

sudo snap remove core hello  
sudo snap install hello # core will also be installed automatically

Hello is a terminal app that runs like this.

$ hello
Hello, world!

answered Jan 18, 2017 at 9:01

karel's user avatar

3

I did:

sudo snap install core

And that did the trick. Thanks for pointing me in the right direction!

answered Dec 4, 2018 at 16:34

Marcellus's user avatar

MarcellusMarcellus

4125 silver badges9 bronze badges

2

This indicates that you don’t have the core snap installed (or broken). You can first check if its installed by

snap list

If it already exists, you can refresh the snap.

snap refresh core

If you face an error like

snap "core" has no updates available

You can remove and again install it. Or, you can do a little trick

snap refresh core --edge

And then, when the problem is fixed, switch it back to stable branch

snap refresh core --stable

answered May 17 at 10:15

acid7's user avatar

acid7acid7

312 bronze badges

OS: Debian GNU/Linux 9.9 (stretch) x86_64
Kernal: 4.9.0-9-amd64


Hi.

I’m trying to install League of Legends via snap but get this error message:

$ sudo snap install leagueoflegends --edge
error: cannot perform the following tasks:
- Mount snap "leagueoflegends" (35) (cannot find required base "core18")

I cloned the core18 git, but can’t quite figure out how to install it.

I tried installing core18 via snap with this command:
$ sudo snap install core18

But I get this error message:
error: cannot install "core18": invalid snap type: "base"

I then tried to install snapcraft, but was unable to add the repository:
W: The repository 'http://ppa.launchpad.net/snappy-dev/tools/ubuntu eoan InRelease' is not signed.


Are there any easy way to install core18 ?

On a fresh Debian 10 install, I did :

sudo apt install snapd
sudo snap install notepad-plus-plus

but I received the message :

error: cannot perform the following tasks:

  • Mount snap «notepad-plus-plus» (260) (snap «notepad-plus-plus» assumes unsupported features: snapd2.43 (try to update snapd and refresh the core snap))

Then, a sudo snap refresh notepad-plus-plus says it is not installed.

but a sudo snap refresh --list returns :

snap list
Name                    Version                     Rev   Tracking  Publisher   Notes
core18                  20210309                    1997  stable    canonical✓  base
gnome-3-28-1804         3.28.0-19-g98f9e67.98f9e67  145   stable    canonical✓  -
gtk-common-themes       0.1-52-gb92ac40             1515  stable    canonical✓  -
wine-platform-5-stable  5.0.3                       16    stable    mmtrt       -
wine-platform-runtime   v1.0                        216   stable    mmtrt       -

All is looking ok,
and no apt-get update/upgrade or sudo snap refresh find anything to change.
What’s the problem ?

RiversideRocks

Posts: 16
Joined: Fri Dec 25, 2020 8:01 pm
Location: US

Can’t install Snap on Pi 4

I’m trying to install Snap on my raspberry Pi and I’m getting this error when I try to install Snap core.

Command run:

Code: Select all

sudo snap install core; sudo snap refresh core

Result:

Code: Select all

error: system does not fully support snapd: cannot mount squashfs image using
       "squashfs": mount: /tmp/sanity-mountpoint-967431678: unknown filesystem type
       'squashfs'.
error: system does not fully support snapd: cannot mount squashfs image using
       "squashfs": mount: /tmp/sanity-mountpoint-967431678: unknown filesystem type
       'squashfs'.

Any idea what this means and how I can fix it? Thanks!


User avatar

B.Goode

Posts: 14873
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Can’t install Snap on Pi 4

Tue Aug 31, 2021 11:27 am

RiversideRocks wrote: ↑

Mon Aug 30, 2021 7:48 pm

I’m trying to install Snap on my raspberry Pi and I’m getting this error when I try to install Snap core.

Command run:

Code: Select all

sudo snap install core; sudo snap refresh core

Result:

Code: Select all

error: system does not fully support snapd: cannot mount squashfs image using
       "squashfs": mount: /tmp/sanity-mountpoint-967431678: unknown filesystem type
       'squashfs'.
error: system does not fully support snapd: cannot mount squashfs image using
       "squashfs": mount: /tmp/sanity-mountpoint-967431678: unknown filesystem type
       'squashfs'.

Any idea what this means and how I can fix it? Thanks!

It seems you have done what is documented here — https://snapcraft.io/docs/installing-snap-on-raspbian

Maybe ask Canonical for support of their product here: https://forum.snapcraft.io/


User avatar

scruss

Posts: 5399
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON

Re: Can’t install Snap on Pi 4

Tue Aug 31, 2021 2:39 pm

Have you installed snapd?

I’m not a fan of snap — it’s a fairly terrible way of managing dependencies — and if I can find a non-snap package to install, I will. Snaps tend to be very large and aren’t updated through the normal apt system.

‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him


User avatar

craigevil

Posts: 471
Joined: Wed Jan 27, 2021 5:22 am
Location: heaven

Re: Can’t install Snap on Pi 4

Tue Aug 31, 2021 4:51 pm

You might try using Gnome-Software

Code: Select all

sudo apt install gnome-software flatpak snapd gnome-software-plugin-snap gnome-software-plugin-flatpak

Raspberry PI 400 Raspberry Pi OS (Debian Sid) Kernel: 6.1.34-v8+ aarch64 DE: XFCE 4.18
Debian — «If you can’t apt install something, it isn’t useful or doesn’t exist»


User avatar

dickon

Posts: 2415
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, in Tiffield

Re: Can’t install Snap on Pi 4

Tue Aug 31, 2021 5:07 pm

A fairly obvious solution to the OP’s error messages would be ‘modprobe squashfs’, but I’d expect snap to have done that already…

As it is apparently board policy to disallow any criticism of anything, as it appears to criticise something is to criticise all the users of that something, I will no longer be commenting in threads which are not directly relevant to my uses of the Pi.



bjtheone

Posts: 2286
Joined: Mon May 20, 2019 11:28 pm
Location: The Frozen North (AKA Canada)

Re: Can’t install Snap on Pi 4

Wed Sep 01, 2021 7:56 pm

scruss wrote: ↑

Tue Aug 31, 2021 2:39 pm

Have you installed snapd?

I’m not a fan of snap — it’s a fairly terrible way of managing dependencies — and if I can find a non-snap package to install, I will. Snaps tend to be very large and aren’t updated through the normal apt system.

Mixed system of some packages via snap and some via apt is a lovely way to confuse yourself and if you are extra lucky break your system. In theory snaps should be totally self contained, however the onus is then on you to maintain them. Not convinced that flatpaks are any better. I suppose you could modify make files and compile some yourself and add them to the mix to get a trifecta of goodness… :-)

It likely comes down to if you want to maintain a system or a bunch of separate «apps». There might be an argument to be made to maintain the system using apt, and install all your applications as snaps. If that is your plan, starting with Lite and building a minimal system with no «apps» is likely the way to go. The one win with snaps is you get standalone applications, at the expense of size, so can more easily get the latest and greatest without being held back by a core library dependency. Personally I am good with not being bleeding end and living with one unified package manager.


Return to “General discussion”

I am trying to get and install some https certificates for apache on Debian 10 by following this: https://certbot.eff.org/lets-encrypt/debianbuster-apache

Everything is going fine until step 7: sudo certbot --apache:

An error occurred while fetching Certbot snap plugins: your version of snapd is outdated.
Please run "sudo snap install core; sudo snap refresh core" in your terminal and try again.
An unexpected error occurred:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://snapd/v2/connections?snap=certbot&interface=content
Please see the logfile '/tmp/tmp5xjbr23v/log' for more details.

When I run sudo snap install core; sudo snap refresh core:

snap "core" is already installed, see 'snap help refresh'
error: cannot refresh "core": refreshing disabled snap "core" not supported

Looking at the log (/tmp/tmp5xjbr23v/log):

2020-11-04 00:26:04,950:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 404 88
2020-11-04 00:26:04,951:ERROR:certbot._internal.snap_config:An error occurred while fetching Certbot snap plugins: your version of snapd is outdated.
2020-11-04 00:26:04,951:ERROR:certbot._internal.snap_config:Please run "sudo snap install core; sudo snap refresh core" in your terminal and try again.
2020-11-04 00:26:04,951:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/snap/certbot/652/bin/certbot", line 8, in <module>
    sys.exit(main())
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/main.py", line 15, in main
    return internal_main.main(cli_args)
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/_internal/main.py", line 1330, in main
    cli_args = snap_config.prepare_env(cli_args)
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/_internal/snap_config.py", line 67, in prepare_env
    raise e
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/_internal/snap_config.py", line 57, in prepare_env
    response.raise_for_status()
  File "/snap/certbot/652/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://snapd/v2/connections?snap=certbot&interface=content
2020-11-04 00:26:04,951:ERROR:certbot._internal.log:An unexpected error occurred:
2020-11-04 00:26:04,951:ERROR:certbot._internal.log:requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://snapd/v2/connections?snap=certbot&interface=content

Here more details about the version that might be useful sudo snap version:

snap    2.37.4-1+b1
snapd   2.37.4-1+b1
series  16
debian  10
kernel  4.19.0-11-cloud-amd64

I tried to reinstall snapd (https://snapcraft.io/docs/installing-snap-on-debian) using the last version but still having the same..
Do you guys know what is wrong with my setup and how to fix that?

Thanks

OS: Debian GNU/Linux 9.9 (stretch) x86_64
Kernal: 4.9.0-9-amd64


Hi.

I’m trying to install League of Legends via snap but get this error message:

$ sudo snap install leagueoflegends --edge
error: cannot perform the following tasks:
- Mount snap "leagueoflegends" (35) (cannot find required base "core18")

I cloned the core18 git, but can’t quite figure out how to install it.

I tried installing core18 via snap with this command:
$ sudo snap install core18

But I get this error message:
error: cannot install "core18": invalid snap type: "base"

I then tried to install snapcraft, but was unable to add the repository:
W: The repository 'http://ppa.launchpad.net/snappy-dev/tools/ubuntu eoan InRelease' is not signed.


Are there any easy way to install core18 ?

Понравилась статья? Поделить с друзьями:
  • Sudo login системная ошибка
  • Strawberrybeard sea of thieves ошибка
  • Sudo apt get update временная ошибка при разрешении
  • Storwize 3700 ошибка 578
  • Sudo freshclam ошибка