You are not logged in.

#1 2015-07-19 07:38:26

kox
Member
Registered: 2015-05-01
Posts: 149

Installing SELinux - libselinux: /usr/sbin exists in filesystem

Hello, I'm trying to install SELinux. I've been following the guide on wiki and decided to install it from unofficial  repository. However I have problems as soon as I try to install pam.

Packages (9) libselinux-2.2-1  libsepol-2.2-1  libyaml-0.1.6-1
             pam-1.2.0-1 [removal]  pambase-20130928-1 [removal]  ruby-2.2.2-1
             swig-3.0.6-1  pam-selinux-1.1.8-2  pambase-selinux-20130928-1

Total Installed Size:  32.13 MiB
Net Upgrade Size:      29.21 MiB

:: Proceed with installation? [Y/n] y
(7/7) checking keys in keyring                     [######################] 100%
(7/7) checking package integrity                   [######################] 100%
(7/7) loading package files                        [######################] 100%
(7/7) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
libselinux: /usr/sbin exists in filesystem
Errors occurred, no packages were upgraded.

Someone had the same problem with aur package and posted a solution to modify paths in pkgbuild https://aur.archlinux.org/packages/libselinux/
But I prefer to use the repository, especially since I can't use yaourt.

Offline

#2 2015-07-19 07:44:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Installing SELinux - libselinux: /usr/sbin exists in filesystem

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-07-19 15:35:40

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: Installing SELinux - libselinux: /usr/sbin exists in filesystem

Kox,

the unofficial repo you use needs updating.
You can try contacting the repo maintainer and alert them to this problem & solution.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2015-07-19 18:43:06

kox
Member
Registered: 2015-05-01
Posts: 149

Re: Installing SELinux - libselinux: /usr/sbin exists in filesystem

Ok, thanks I will.

Then my only option is to use AUR. I will probably have to edit paths in makepkg, as this is from the same maintainer. It's a shame there's no normal working way to install SELinux without any hacks. I wish SELinux was in official repo.

I have question regarding installing it from the aur.
https://wiki.archlinux.org/index.php/SELinux#Via_AUR
Can I use yaourt to install packages that are not pam, pambase and sudo?

Or maybe I will try installing libselinux from aur and the rest from repository, but it's probably not the only package that has to be updated.

Offline

#5 2015-07-20 13:04:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: Installing SELinux - libselinux: /usr/sbin exists in filesystem

Kox,

the aur selinux packages by IooNag appear to be uptodate . (AUR libselinux package has been adjusted to work with usr/bin instead of usr/sbin ).
AUR is in a state of flux atm, and the latest versions of packages are in AUR4, https://aur4.archlinux.org/ .

In a few weeks (august 8 iirc) , aur3 will be transferred to a separate read-only location.
At that time aur4.archlinux.org will be transferred to aur.archlinux.org .

I don't use aur helpers myself, so no idea if yaourt can deal with packages from aur4 or if it's ready for aur4 becoming the only AUR.

I'm inclined to advise you to build things manually or wait  a few weeks.


At one point selinux was supported in repos, but there were to many problems with it.
There's an extensive thread about it on arch-dev-public Mailing list.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB