Entfernen von hplip schlaegt fehl

03/03/2008 - 13:43 von Rainer Lehmann | Report spam
Wie kann ich bei untigen Fehlermeldungen in Debian Etch das Paket
hplip entfernen?

dsr3:~# aptitude remove hplip
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages have been kept back:
acroread libquicktime0 lilo skype
The following packages will be REMOVED:
hplip
0 packages upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
Need to get 0B of archives. After unpacking 2662kB will be freed.
Writing extended state information... Done
(Reading database ... 107041 files and directories currently installed.)
Removing hplip ...
usage: update-python-modules [-v] [-c] package_directory [...]
update-python-modules [-v] [-c] package.dirs [...]
update-python-modules [-v] [-a|-f]

update-python-modules: error: /usr/share/python-support/hplip does not exist
dpkg: error processing hplip (--remove):
subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
hplip
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
# mkdir /usr/share/python-support/hplip
# aptitude remove hplip
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done
The following packages have been kept back:
acroread libquicktime0 lilo skype
The following packages will be REMOVED:
hplip
0 packages upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
Need to get 0B of archives. After unpacking 2662kB will be freed.
Writing extended state information... Done
(Reading database ... 107041 files and directories currently installed.)
Removing hplip ...
Traceback (most recent call last):
File "/usr/sbin/update-python-modules", line 227, in ?
do_dirs_b+=dirlist_file(arg)
File "/usr/sbin/update-python-modules", line 178, in dirlist_file
return [ l.rstrip('') for l in file(f) if len(l)>1 ]
IOError: [Errno 21] Is a directory
dpkg: error processing hplip (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
hplip
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
# rmdir /usr/share/python-support/hplip
# touch /usr/share/python-support/hplip
# aptitude remove hplip
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages have been kept back:
acroread libquicktime0 lilo skype
The following packages will be REMOVED:
hplip
0 packages upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
Need to get 0B of archives. After unpacking 2662kB will be freed.
Writing extended state information... Done
(Reading database ... 107041 files and directories currently installed.)
Removing hplip ...
usage: update-python-modules [-v] [-c] package_directory [...]
update-python-modules [-v] [-c] package.dirs [...]
update-python-modules [-v] [-a|-f]

update-python-modules: error: /usr/share/python-support/hplip is not a directory
dpkg: error processing hplip (--remove):
subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
hplip
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

Mit "aptitude purge" ging es auch nicht...

RL
 

Lesen sie die antworten

#1 Andreas Kohlbach
04/03/2008 - 02:57 | Warnen spam
Rainer Lehmann wrote on 03. March 2008:

Wie kann ich bei untigen Fehlermeldungen in Debian Etch das Paket
hplip entfernen?



Hmm.

Ich würde es da lassen, wenn du Platz hast. Wenn es jedoch mal um ein
gravierendes Problem geht, schau dir in der man Page zu dpkg mal
"force-things" an, damit kann man, auch wenn das ggf. einiges zerstört,
Dinge erzwingen. Würde ich aber wirklich nur im Notfall machen.
Andreas

Warum Linux? http://www.getgnulinux.org/ (Englisch)

Ähnliche fragen