irda-utils unusable and unremovable after upgrade from intrepid to jaunty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
irda-utils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Yesterday I upgraded Ubuntu from Intrepid to Jaunty, but something went wrong during the installation and a message appeared which said, that the upgrade was successful, but there was an error with irda-utils, which couldn't be updated. First I didn't worry, because I don't need this package and installed it quite a time ago but never used it. Then I realized the error was far more harmful than I expected: all further package installations went wrong, because aptitude tried to solve the problem with irda-utils, which, again, returned an error and aborted the installation of the packages, I wanted to install.
As I said I don't use this package and wanted to remove it (sorry for the german, I added a translation after the original output):
marco@marco:~$ sudo apt-get remove irda-utils
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Lese Status-
Die folgenden Pakete werden ENTFERNT:
irda-utils
0 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
4 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 336kB Plattenplatz freigegeben.
Möchten Sie fortfahren [J/n]? j
dpkg: Fehler beim Bearbeiten von irda-utils (--remove):
Paket ist in einem sehr schlechten inkonsistenten Zustand - Sie sollten
es erneut installieren, bevor Sie es zu entfernen versuchen.
Fehler traten auf beim Bearbeiten von:
irda-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)
TRANSLATION:
...
dpkg: error while processing irda-utils (--remove):
package is in a very bad inconsistent state - you should reinstall it before removing it
errors occured while processsing:
irda-utils
...
I followed the suggestion and tried to reinstall irda-utils:
marco@marco:~$ sudo apt-get install --reinstall irda-utils
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Lese Status-
Vorgeschlagene Pakete:
libgsmme1c102 liblinc1 obexftp
Die folgenden Pakete werden aktualisiert:
irda-utils
1 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
4 nicht vollständig installiert oder entfernt.
Es müssen noch 0B von 89,4kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0B Plattenplatz zusätzlich benutzt.
Vorkonfiguration der Pakete ...
Wähle vormals abgewähltes Paket irda-utils.
(Lese Datenbank ... 230594 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereiten zum Ersetzen von irda-utils 0.9.18-8.1ubuntu1 (durch .../irda-
/etc/default/
invoke-rc.d: initscript irda-utils, action "stop" failed.
dpkg: Warnung - altes pre-removal-Skript wurde mit Fehler-Status 127 beendet
dpkg - probiere stattdessen Skript aus dem neuen Paket ...
/etc/default/
invoke-rc.d: initscript irda-utils, action "stop" failed.
dpkg: Fehler beim Bearbeiten von /var/cache/
Unterprozess neues pre-removal-Skript gab den Fehlerwert 127 zurück
/etc/default/
invoke-rc.d: initscript irda-utils, action "start" failed.
dpkg: Fehler beim Aufräumen:
Unterprozess post-installation script gab den Fehlerwert 127 zurück
Fehler traten auf beim Bearbeiten von:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
TRANSLATION:
...
dpkg: warning - old pre-removal-script exited with error code 127
dpkg - try script from the new package instead
...
dpkg: error while processing /var/cache/
sub-process new pre-removal script returned error code 127
...
dpkg: error while tidying up
sub-process post-installation script returned error code 127
errors occured while processing:
/var/
The current version I have installed and the candidate:
irda-utils:
Installiert: 0.9.18-8.1ubuntu1
Kandidat: 0.9.18-8.1ubuntu1.1
Versions-Tabelle:
0.
500 http://
*** 0.9.18-8.1ubuntu1 0
500 http://
100 /var/lib/
UPDATE:
problem is solved for me! all I did was editing the file /var/lib/ dpkg/info/ irda-utils. prerm
previous content was:
#! /bin/sh
set -e
--- followed by an automatically added part I don't remember and as removing worked afterwards the file doesn't exist any more ----
then I commented everything out except for the first line and it worked! though it still gave this "package is in a very bad inconsistent state" error I could remove it with "sudo dpkg --purge --force-all irda-utils"