package python-selinux 2.0.55-0ubuntu1 failed to install/upgrade: Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zur?ck

Bug #193029 reported by Thomas Templin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libselinux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Paket Name: python-selinux
Release: Ubuntu 8.04 hardy
Version: 2.0.55-0ubuntu1

python-selinux is unable to install

apt-get install python-selinux says:

Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 348, in <module>
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.4/sepolgen/__init__.py'
dpkg: Warnung - altes pre-removal-Skript wurde mit Fehler-Status 1 beendet
dpkg - probiere stattdessen Skript aus dem neuen Paket ...
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 348, in <module>
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.4/sepolgen/__init__.py'
dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/python-selinux_2.0.55-0ubuntu2_i386.deb (--unpack):
 Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zurück
Traceback (most recent call last):
  File "/usr/sbin/update-python-modules", line 344, in <module>
    bytecompile_all(py)
  File "/usr/sbin/update-python-modules", line 238, in bytecompile_all
    post_change_stuff(py)
  File "/usr/sbin/update-python-modules", line 224, in post_change_stuff
    file(initfile,"w").close()
IOError: [Errno 2] No such file or directory: '/var/lib/python-support/python2.4/sepolgen/__init__.py'
dpkg: Fehler beim Aufräumen:
 Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/python-selinux_2.0.55-0ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
Architecture: i386
Date: Mon Feb 18 20:46:35 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zurück
NonfreeKernelModules: video fglrx
Package: python-selinux 2.0.55-0ubuntu1
PackageArchitecture: i386
SourcePackage: libselinux
Title: package python-selinux 2.0.55-0ubuntu1 failed to install/upgrade: Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zurück
Uname: Linux bronto 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45 UTC 2008 i686 GNU/Linux

Revision history for this message
Thomas Templin (coastgnu) wrote :
Revision history for this message
Marques Johansson (marques) wrote :

The link: /var/lib/python-support/python2.4/sepolgen/__init__.py points to the wrong folder (sepolgen instead of python-sepolgen).

Here's a workaround until the package is corrected:

sudo ln -sf /usr/share/python-support/python-sepolgen/sepolgen/__init__.py /var/lib/python-support/python2.4/sepolgen/__init__.py
sudo ln -sf /usr/share/python-support/python-sepolgen/sepolgen/__init__.py /var/lib/python-support/python2.5/sepolgen/__init__.py

Then "sudo dpkg --configure -a" to get the packages configured. If it complains about some python packages being in an inconsistent state you should be able to "sudo apt-get dist-upgrade" to correct that.

Revision history for this message
Marques Johansson (marques) wrote :

A few more links are broken:

for ver in 2.4 2.5; do
  for f in __init__.py defaults.py audit.py matching.py util.py sepolgeni18n.py yacc.py ; do
    ln -sf /usr/share/python-support/python-sepolgen/sepolgen/$f /var/lib/python-support/python$ver/sepolgen/$f;
  done
done

Revision history for this message
Caleb Case (calebcase) wrote :

This bug appears to be fixed in upstream version python-selinux 2.0.55-0ubuntu4. Can you please verify?

Revision history for this message
Kees Cook (kees) wrote :

This appears fixed in my install.

Changed in libselinux:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.