SELinux install failed with errors
After getting several errors with SELinux not installing correctly and getting several error messages with SELinux setroubleshoot I did a fresh install.
root@tripeiro:~# sudo apt-get install selinux
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libsetools-tcl libqpol1 setools bwidget
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
bwidget checkpolicy libaudit0 libqpol1 libsemanage-common libsemanage1
libsetools-tcl libustr-1.0-1 policycoreutils python-selinux python-semanage
python-sepolgen selinux-
Recommended packages:
selinux-
The following NEW packages will be installed:
bwidget checkpolicy libaudit0 libqpol1 libsemanage-common libsemanage1
libsetools-tcl libustr-1.0-1 policycoreutils python-selinux python-semanage
python-sepolgen selinux selinux-
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/6,482kB of archives.
After this operation, 52.9MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package libaudit0.
(Reading database ... 212009 files and directories currently installed.)
Unpacking libaudit0 (from .../libaudit0_
Selecting previously deselected package libustr-1.0-1.
Unpacking libustr-1.0-1 (from .../libustr-
Selecting previously deselected package libsemanage-common.
Unpacking libsemanage-common (from .../libsemanage
Selecting previously deselected package libsemanage1.
Unpacking libsemanage1 (from .../libsemanage
Selecting previously deselected package python-semanage.
Unpacking python-semanage (from .../python-
Selecting previously deselected package python-selinux.
Unpacking python-selinux (from .../python-
Selecting previously deselected package python-sepolgen.
Unpacking python-sepolgen (from .../python-
Selecting previously deselected package policycoreutils.
Unpacking policycoreutils (from .../policycoreu
Selecting previously deselected package selinux-utils.
Unpacking selinux-utils (from .../selinux-
Selecting previously deselected package selinux.
Unpacking selinux (from .../selinux_
Selecting previously deselected package checkpolicy.
Unpacking checkpolicy (from .../checkpolicy
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libaudit0 (1.7.13-1ubuntu2) ...
Setting up libustr-1.0-1 (1.0.4-2) ...
Setting up libsemanage-common (2.0.42-1) ...
Setting up libsemanage1 (2.0.42-1) ...
Setting up python-semanage (2.0.42-1) ...
Setting up python-selinux (2.0.89-4) ...
Setting up python-sepolgen (1.0.18-1) ...
Setting up policycoreutils (2.0.77-1ubuntu1) ...
update-rc.d: warning: policycoreutils start runlevel arguments (S 2 3 4 5) do not match LSB Default-Start values (2 3 4 5)
Setting up selinux-utils (2.0.89-4) ...
Setting up selinux (1:0.9) ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
Selecting previously deselected package selinux-
(Reading database ... 212288 files and directories currently installed.)
Unpacking selinux-
Selecting previously deselected package bwidget.
Unpacking bwidget (from .../bwidget_
Selecting previously deselected package libqpol1.
Unpacking libqpol1 (from .../libqpol1_
Selecting previously deselected package libsetools-tcl.
Unpacking libsetools-tcl (from .../libsetools-
Selecting previously deselected package setools.
Unpacking setools (from .../setools_
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up checkpolicy (2.0.20-1) ...
Setting up selinux-
Updating /etc/selinux/
Setting up bwidget (1.9.0-2) ...
Setting up libqpol1 (3.3.6.ds-6ubuntu1) ...
Setting up libsetools-tcl (3.3.6.ds-6ubuntu1) ...
Setting up setools (3.3.6.ds-6ubuntu1) ...
Processing triggers for selinux ...
semodule deferred processing now taking place
/usr/sbin/
dpkg: error processing selinux (--configure):
subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
Errors were encountered while processing:
selinux
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@tripeiro:~#
NOTE: I did an uninstall and removed several packages related to SELinux in ubuntu software center and rebooted the system. Some of then didn't removed because they are necessary to the system to run.
I'm running Ubuntu 10.04 LTS - the Lucid Lynx - released in April 2010
Could someone tell me what I have to do ?
Thanks guys !
Jose Maria
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu yelp Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask José Maria Oliveira Simões for more information if necessary.