I am trying to install snapd per these instructions:
It appears my server is running CentOS 7 (it is an Amazon EC2 instance):
$ cat /etc/*release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2 (Karoo)
$ cat /proc/version
Linux version 4.14.181-142.260.amzn2.x86_64 (mockbuild@ip-10-0-1-132) (gcc version 7.3.1 20180712 (Red Hat 7.3.1-8) (GCC)) #1 SMP Wed Jun 24 19:07:39 UTC 2020
I have run the following:
$ sudo yum install epel-release
$ sudo yum install snapd
I then get this output from yum:
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
250 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package snapd.x86_64 0:2.45.3.1-1.el7 will be installed
--> Processing Dependency: snap-confine(x86-64) = 2.45.3.1-1.el7 for package: snapd-2.45.3.1-1.el7.x86_64
--> Processing Dependency: snapd-selinux = 2.45.3.1-1.el7 for package: snapd-2.45.3.1-1.el7.x86_64
--> Processing Dependency: fuse for package: snapd-2.45.3.1-1.el7.x86_64
--> Processing Dependency: squashfs-tools for package: snapd-2.45.3.1-1.el7.x86_64
--> Processing Dependency: squashfuse for package: snapd-2.45.3.1-1.el7.x86_64
--> Running transaction check
---> Package fuse.x86_64 0:2.9.2-11.amzn2 will be installed
---> Package snap-confine.x86_64 0:2.45.3.1-1.el7 will be installed
---> Package snapd-selinux.noarch 0:2.45.3.1-1.el7 will be installed
--> Processing Dependency: selinux-policy-base >= 3.13.1-266.el7 for package: snapd-selinux-2.45.3.1-1.el7.noarch
---> Package squashfs-tools.x86_64 0:4.3-0.21.gitaae0aff4.amzn2.0.1 will be installed
--> Processing Dependency: liblzo2.so.2()(64bit) for package: squashfs-tools-4.3-0.21.gitaae0aff4.amzn2.0.1.x86_64
---> Package squashfuse.x86_64 0:0.1.102-1.el7 will be installed
--> Processing Dependency: squashfuse-libs(x86-64) = 0.1.102-1.el7 for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.4)(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.5)(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.6)(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.8)(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libfuse.so.2()(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libfuseprivate.so.0()(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libsquashfuse.so.0()(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Processing Dependency: libzstd.so.1()(64bit) for package: squashfuse-0.1.102-1.el7.x86_64
--> Running transaction check
---> Package fuse-libs.x86_64 0:2.9.2-11.amzn2 will be installed
---> Package libzstd.x86_64 0:1.3.3-1.amzn2.0.1 will be installed
---> Package lzo.x86_64 0:2.06-8.amzn2.0.3 will be installed
---> Package snapd-selinux.noarch 0:2.45.3.1-1.el7 will be installed
--> Processing Dependency: selinux-policy-base >= 3.13.1-266.el7 for package: snapd-selinux-2.45.3.1-1.el7.noarch
---> Package squashfuse-libs.x86_64 0:0.1.102-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: snapd-selinux-2.45.3.1-1.el7.noarch (epel)
Requires: selinux-policy-base >= 3.13.1-266.el7
Installed: selinux-policy-targeted-3.13.1-192.amzn2.6.3.noarch (@amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.3
Available: selinux-policy-minimum-3.13.1-166.amzn2.5.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.5
Available: selinux-policy-minimum-3.13.1-166.amzn2.9.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.9
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.1.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.1
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.2.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.2
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.3.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.3
Available: selinux-policy-mls-3.13.1-166.amzn2.5.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.5
Available: selinux-policy-mls-3.13.1-166.amzn2.9.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.9
Available: selinux-policy-mls-3.13.1-192.amzn2.6.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6
Available: selinux-policy-mls-3.13.1-192.amzn2.6.1.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.1
Available: selinux-policy-mls-3.13.1-192.amzn2.6.2.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.2
Available: selinux-policy-mls-3.13.1-192.amzn2.6.3.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.3
Available: selinux-policy-targeted-3.13.1-166.amzn2.5.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.5
Available: selinux-policy-targeted-3.13.1-166.amzn2.9.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.9
Available: selinux-policy-targeted-3.13.1-192.amzn2.6.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6
Available: selinux-policy-targeted-3.13.1-192.amzn2.6.1.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.1
Available: selinux-policy-targeted-3.13.1-192.amzn2.6.2.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I also tried:
$ sudo yum install snapd-selinux
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
250 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package snapd-selinux.noarch 0:2.45.3.1-1.el7 will be installed
--> Processing Dependency: selinux-policy-base >= 3.13.1-266.el7 for package: snapd-selinux-2.45.3.1-1.el7.noarch
--> Finished Dependency Resolution
Error: Package: snapd-selinux-2.45.3.1-1.el7.noarch (epel)
Requires: selinux-policy-base >= 3.13.1-266.el7
Installed: selinux-policy-targeted-3.13.1-192.amzn2.6.3.noarch (@amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.3
Available: selinux-policy-minimum-3.13.1-166.amzn2.5.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.5
Available: selinux-policy-minimum-3.13.1-166.amzn2.9.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.9
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.1.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.1
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.2.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.2
Available: selinux-policy-minimum-3.13.1-192.amzn2.6.3.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.3
Available: selinux-policy-mls-3.13.1-166.amzn2.5.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.5
Available: selinux-policy-mls-3.13.1-166.amzn2.9.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.9
Available: selinux-policy-mls-3.13.1-192.amzn2.6.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6
Available: selinux-policy-mls-3.13.1-192.amzn2.6.1.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.1
Available: selinux-policy-mls-3.13.1-192.amzn2.6.2.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.2
Available: selinux-policy-mls-3.13.1-192.amzn2.6.3.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.3
Available: selinux-policy-targeted-3.13.1-166.amzn2.5.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.5
Available: selinux-policy-targeted-3.13.1-166.amzn2.9.noarch (amzn2-core)
selinux-policy-base = 3.13.1-166.amzn2.9
Available: selinux-policy-targeted-3.13.1-192.amzn2.6.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6
Available: selinux-policy-targeted-3.13.1-192.amzn2.6.1.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.1
Available: selinux-policy-targeted-3.13.1-192.amzn2.6.2.noarch (amzn2-core)
selinux-policy-base = 3.13.1-192.amzn2.6.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
So far Googling for answers isn’t helping. Do I need to build snapd from source? If so… how?