Page MenuHomeDevCentral

Fix Snap installation on CentOS
Closed, ResolvedPublic

Description

D2145 doesn't work on Equatower (CentOS):

      ID: install_starship
Function: cmd.run
    Name: snap install starship
  Result: False
 Comment: Command "snap install starship" run
 Started: 20:13:53.940717
Duration: 32.674 ms
 Changes:
          ----------
          pid:
              16815
          retcode:
              1
          stderr:
              error: cannot communicate with server: Post http://localhost/v2/snaps/starship: dial unix /run/snapd.socket: connect: no such file or directory
          stdout:

Related Objects

Event Timeline

dereckson triaged this task as Normal priority.Jan 20 2020, 20:15
dereckson created this task.

Fun, after systemctl enable --now snapd.socket I got the following message:

error: too early for operation, device not yet seeded or device model not acknowledged

After a few dozens of seconds, I've got:

$ sudo snap install starship
2020-01-20T20:20:54Z INFO Waiting for restart...
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not restarted your session
         since you installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469
         for more details.

starship 0.33.1 from Matan Kushner (matankushner) installed

Paths are available for login shell, not for the system:

$ which starship
/var/lib/snapd/snap/bin/starship
$ sudo which starship
which: no starship in (/sbin:/bin:/usr/sbin:/usr/bin)
$ sudo su -
$ which starship
/var/lib/snapd/snap/bin/starship