"Problem: 1: nothing provides 'selinux-policy". How to fix?

I got a problem when running zypper this morning. Details below. I did some googling and didn’t find anything helpful.

Any idea what’s causing the problem? Which solution should I choose?

advait@localhost:~> sudo zypper dup
[sudo] password for root: 
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...

Problem: 1: nothing provides 'selinux-policy >= 20251006-1.1' needed by the to be installed snapd-selinux-2.71-1.23.noarch
 Solution 1: deinstallation of snapd-selinux-2.71-1.22.noarch
 Solution 2: keep obsolete snapd-selinux-2.71-1.22.noarch
 Solution 3: break snapd-selinux-2.71-1.23.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/c/d/?] (c): 

More code:

advait@localhost:~> sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      35

advait@localhost:~> sudo apparmor_status
[sudo] password for root: 
apparmor module is loaded.
apparmor filesystem is not mounted.
advait@localhost:~> 

Do not arbitrary truncate error messages. It leads to the wrong questions.

The version required by snapd-selinux is not available. The package snapd-selinux is not available in Tumbleweed, you are using some external repository. At which point you need to ask the maintainer of this package.

The required selinux-policy version is already in factory. The service request to push it to the official repos is ongoing. So simply wait some days.

As snap is not in the official repos yet (ongoing process), it can directly use factory versions. That is why some delays may occur for providing deps in the official repos.

That was the end of the error message. Nothing more.

Sounds good.

I just broke the dependency instead of waiting and snap still works fine :slight_smile:

1 Like

I ended up just uninstalling snapd because I didn’t have any snap apps installed. After that sudo zypper dup ran fine.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.