Snap install core fail

[root@slave02 /]# snap install core
error: system does not fully support snapd: cannot read the value of fs.may_detach_mounts kernel
parameter: open /proc/sys/fs/may_detach_mounts: no such file or directory

The above is my error message。My Linux version is CentOS Linux release 7.3.1611 (Core) ,Help me, Thanks!

[root@slave02 /]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@slave02 /]# snap -version
error: unknown flag `v'
[root@slave02 /]# snap --version
snap 2.63-0.el7
snapd 2.63-0.el7
series 16
centos 7
kernel 3.10.0-514.el7.x86_64

Hello @18227346275 ,

That isn't the appropriate forum for questions related to snap installation, but I can still tell you that the CentOS version of 7.3.1611 is quiet old. You should upgrade it.

Yeah, for an OS that old it might work better to use the pip installation. Or, use a different client with minimal dependencies that you can just copy onto the server and run, like lego (just go to the release page and download lego_v4.17.3_linux_amd64.tar.gz), or maybe one of the shell-script based clients.

Though if your OS isn't getting security updates, then adding a certificate won't magically make it "secure".

CentOS 7 receives them for 3 more weeks and 4 days. It may indeed be time to find a replacement OS.

Thank you ,But my system is centos 7 can I also install with pip

I'm not sure; it's been a long time since I've used a CentOS/RHEL 7 system, and I haven't tried installing pip or certbot on it. Like I said, with something that old you're probably best off using lego or acme.sh (at least until you can move to an up-to-date server).

thank you ,I'll try acme.sh