pycentral crashed with OSError in prepare()

Bug #201978 reported by Colin Stark
124
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: python-central

trying to upgrade package python-kde4, apt-get crashed and apport popped up with a file bug report window
running hardy with all other packages up to date

ProblemType: Crash
Architecture: i386
Date: Thu Mar 13 18:53:34 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/pycentral
InterpreterPath: /usr/bin/python2.5
Package: python-central 0.6.0ubuntu2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgprepare python-kde4
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
 LANGUAGE=
PythonArgs: ['/usr/bin/pycentral', 'pkgprepare', 'python-kde4']
SourcePackage: python-central
Title: pycentral crashed with OSError in prepare()
Uname: Linux 2.6.24-12-generic i686
UserGroups:

Revision history for this message
Colin Stark (cstark) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Possible regression detected

This crash has the same stack trace characteristics as bug #194305. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.

Revision history for this message
Matthias Klose (doko) wrote :

which version of python-kde4 is installed on the system (before starting the upgrade)?

Revision history for this message
Colin Stark (cstark) wrote :

I'm currently running 4.0.2-0ubuntu1 according to dpkg -l.
The version it's trying to upgrade to is 4.0.2-1-1ubuntu3. Still no luck with this version.

Revision history for this message
Thomas Templin (coastgnu) wrote : Re: [Bug 201978] Re: pycentral crashed with OSError in prepare()

On Fri, 21. March 2008 15:40:01 Matthias Klose wrote:
> which version of python-kde4 is installed on the system (before starting
> the upgrade)?
apt-cache policy python-kde4
python-kde4:
  Installiert:4:4.0.2-0ubuntu1
  Mögliche Pakete:4:4.0.2-1-1ubuntu3
  Versions-Tabelle:
     4:4.0.2-1-1ubuntu3 0
        500 http://de.archive.ubuntu.com hardy/universe Packages
 *** 4:4.0.2-0ubuntu1 0
        100 /var/lib/dpkg/status

regards,
thomas

Revision history for this message
Daniel Holbach (dholbach) wrote :

Same problem with recent bzrtools update:

daniel@bert:~$ sudo apt-get install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Reading state information... Fertig
Abhängigkeit werden korrigiert... Fertig
The following packages were automatically installed and are no longer required:
  icedtea-java7-bin
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
Die folgenden zusätzlichen Pakete werden installiert:
  bzrtools
Vorgeschlagene Pakete:
  pybaz
Die folgenden Pakete werden aktualisiert:
  bzrtools
1 aktualisiert, 0 neu installiert, 0 zu entfernen und 2 nicht aktualisiert.
Es müssen noch 0B von 73,6kB Archiven geholt werden.
After this operation, 8192B of additional disk space will be used.
Möchten Sie fortfahren [J/n]?
(Lese Datenbank ... 156471 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereiten zum Ersetzen von bzrtools 1.2.0-1ubuntu3 (durch .../bzrtools_1.3.0-2ubuntu1_all.deb) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1813, in <module>
    main()
  File "/usr/bin/pycentral", line 1807, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1306, in run
    pkg.prepare(used_runtimes, old_used_runtimes, old_pkg)
  File "/usr/bin/pycentral", line 1000, in prepare
    link_cmd(f1, f2)
OSError: [Errno 2] No such file or directory
dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/bzrtools_1.3.0-2ubuntu1_all.deb (--unpack):
 Unterprozess pre-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
 /var/cache/apt/archives/bzrtools_1.3.0-2ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
daniel@bert:~$

Daniel Hahler (blueyed)
Changed in python-central:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

There's bug 210168 for the bzrtools issue

Revision history for this message
Daniel Holbach (dholbach) wrote :

The stacktrace in bug 210168 and in http://launchpadlibrarian.net/12654666/Traceback.txt (this bug) is the same.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-central - 0.6.1ubuntu2

---------------
python-central (0.6.1ubuntu2) hardy; urgency=low

  * pycentral rtremove: Do not work on removed, but not purged packages.
    LP: #205470.
  * pycentral pkgprepare: Create the directory before creating a symlink
    there; not yet done when the package install previously failed and
    was retried. LP: #201978.

 -- Matthias Klose <email address hidden> Fri, 04 Apr 2008 14:38:03 +0200

Changed in python-central:
status: Triaged → 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.