Can`t install snap

When I try to install Snap, the package manager says the selinux-policy version is incompatible because Snap requires at least version 40.13.35, and the latest version in the repositories is 38. Adding the --skip-broken flag installs everything, but incorrectly. Even the service isn’t added, and the program can’t be launched. I even tried installing with Selinux disabled, but that didn’t help.

Is there a solution to this problem I’m not aware of? Should I add a repository and download Snap from there? Or should I just wait?

1 Like

Usually, it’s enough to do:

dnf install -y epel-release
dnf install -y snapd

would be nice to know which version of Rocky as well - 8, 9 or 10? In the EL world, flatpak is more preferred over the use of snap though. Ubuntu were the main ones behind snap.

rocky 10
Snap installation is impossible without adding the epel-release repository. I described the problem I’m having. Here’s the output from the two suggested commands.

```
Last metadata expiration check: 1:04:10 ago on Mon 24 Nov 2025 05:07:18 PM MSK.
Package epel-release-10-7.el10_1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 1:04:11 ago on Mon 24 Nov 2025 05:07:18 PM MSK.
Error:
Problem: package snapd-2.70-1.el10_1.x86_64 from epel requires snapd-selinux = 2.70-1.el10_1, but none of the providers can be installed

conflicting requests

nothing provides selinux-policy >= 40.13.35 needed by snapd-selinux-2.70-1.el10_1.noarch from epel

nothing provides selinux-policy-base >= 40.13.35 needed by snapd-selinux-2.70-1.el10_1.noarch from epel
(try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)
```

I use snap because i need visual studio code and other software that is running in containers and not official in flatpak

Sounds to me, that the problem is explained in the nice green bar at the top of the forum pages, with the link to why EPEL is a problem right now until Rocky 9.7 and 10.1 are released.

root@rocky10:~#  dnf list snapd*
Last metadata expiration check: 0:00:50 ago on Mon 24 Nov 2025 07:05:12 PM CET.
Available Packages
snapd.x86_64                                                   2.70-1.el10_1                                        epel
snapd-devel.noarch                                             2.70-1.el10_1                                        epel
snapd-glib.x86_64                                              1.66-1.el10_0                                        epel
snapd-glib-devel.x86_64                                        1.66-1.el10_0                                        epel
snapd-glib-tests.x86_64                                        1.66-1.el10_0                                        epel
snapd-qt.x86_64                                                1.66-1.el10_0                                        epel
snapd-qt-devel.x86_64                                          1.66-1.el10_0                                        epel
snapd-qt-qml.x86_64                                            1.66-1.el10_0                                        epel
snapd-qt-tests.x86_64                                          1.66-1.el10_0                                        epel
snapd-selinux.noarch                                           2.70-1.el10_1                                        epel

But also, since you are using Rocky 10.0, EPEL is going to be problematic until Rocky 10.1 is released. So you probably just need to wait.

selinux-policy is a requirement from RHEL 10.1, and since Rocky 10.1 isn’t released yet, the dependencies cannot be met.

Soon Rocky 10.1 will be released, and your problem will no longer exist, and snap will be installable.

the same is on Rocky 9

dnf install snapd

Last metadata expiration check: 1:42:55 ago on Thu 27 Nov 2025 03:54:23 PM CET.
Error:
Problem: package snapd-2.72-1.el9.x86_64 from epel requires snapd-selinux = 2.72-1.el9, but none of the providers can be installed

  • conflicting requests
  • nothing provides selinux-policy >= 38.1.65-1.el9 needed by snapd-selinux-2.72-1.el9.noarch from epel
  • nothing provides selinux-policy-base >= 38.1.65-1.el9 needed by snapd-selinux-2.72-1.el9.noarch from epel
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

but selinux-policy 38.1.65 is not available for rocky9 or any other repos

Yep, because Rocky 9.7 hasn’t been released yet. That was also explained in the Rocky 9.7, 10.1 and EPEL post on these forums.

Rocky 10.1 is released now, so it will work there. When Rocky 9.7 is released shortly, then that will be fine as well.

There is also a tool: