package selinux 1:0.3 failed to install/upgrade: subprocess pre-removal script returned error exit status 127
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
selinux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: selinux
It seems that if GRUB is upgrade to GRUB2, it attempts to remove selinux as it is a conflicting dependency or something like that. Either way, it fails with the following output:
Removing selinux ...
/var/lib/
dpkg: error processing selinux (--remove):
subprocess pre-removal script returned error exit status 127
Errors were encountered while processing:
selinux
E: Sub-process /usr/bin/dpkg returned an error code (1)
Other than the error itself there are no problems that seem to be caused by this, but it seems very strange. Here is the the information apt-cache can give me:
selinux:
Installed: 1:0.3
Candidate: 1:0.3
Version table:
*** 1:0.3 0
500 http://
100 /var/lib/
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess pre-removal script returned error exit status 127
Package: selinux 1:0.3
PackageArchitec
SourcePackage: selinux
Title: package selinux 1:0.3 failed to install/upgrade: subprocess pre-removal script returned error exit status 127
Uname: Linux 2.6.28-6-generic i686
sudo apt-get remove selinux dpkg/info/ selinux. prerm: 55: /etc/init. d/selinux: not found
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-sepolgen python-selinux python-semanage checkpolicy selinux-utils
libustr-1.0-1 libsemanage1 policycoreutils
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
selinux
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 127kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 401205 files and directories currently installed.)
Removing selinux ...
/var/lib/
dpkg: error processing selinux (--remove):
subprocess installed pre-removal script returned error exit status 127
Errors were encountered while processing:
selinux
E: Sub-process /usr/bin/dpkg returned an error code (1)