Cannot install a snap that uses system usernames on centos

Hello,

Ran into this when trying to install our slurm snap on a centos7 box. It seems we need to be running a different version of snapd to be able to run snaps on centos that use system usernames.

$ sudo snap install slurm
2020-05-21T19:28:33Z INFO Waiting for restart...
error: cannot perform the following tasks:
- Mount snap "slurm" (105) (snap "slurm" system usernames require a snapd built against libseccomp >= 2.4)
$ cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)

Does anyone know if there is a workaround for this?

We are wondering if there is a snapd rpm build against libseccomp >= 2.4 that we might be able to get access to?

Thanks!

1 Like

Tagging @egeeirl @lonroth

1 Like

There is no different version of snapd for RHEL7/CentOS7 than one available from EPEL7 repo.

From what I can tell, RHEL7 has libseccomp 2.3.1. You could build libseccomp and snapd yourself, the src.rpms are available. I’m not sure it’s worth the hassle though. Libseccomp is used by a number of packages which you’d likely need to rebuild too. Parallel installing or bundling a newer libseccomp in snapd is probably less work, yet still non trivial

You may consider using RHEL8/Centos8 which has libseccomp 2.4.1.

1 Like

Hits hard here since centos7 is used at least for some of our HPC clusters and alot of subsystems. Plus, HPC systems generally are lagging behind on compatibility for centos7 already as it is for their running codes.

@mborzecki Thanks for the response. We will look into using centos8.