install hosed... apt not working anymore

Florian Diesch diesch at spamfence.net
Fri Aug 12 12:23:10 CDT 2005


On Wed, Aug 10, 2005 at 11:48:45PM +0200, Till Varoquaux wrote:
> here is a pretty serious one i can't uninstall sun-j2sdk and i can't
> install anything else until it gets fixed
> here is the ouput:
> 
> Reading package lists... Done
> Building dependency tree... Done
> Correcting dependencies... Done
> The following packages will be REMOVED:
>   sun-j2sdk1.5.0
> 0 upgraded, 0 newly installed, 1 to remove and 96 not upgraded.
> Need to get 0B of archives.
> After unpacking 140MB disk space will be freed.
> Do you want to continue [Y/n]? y
> (Reading database ... 122467 files and directories currently
> installed.)
> Removing sun-j2sdk1.5.0 ...
> rm: cannot remove `/usr/bin/apt': No such file or directory
> dpkg: error processing sun-j2sdk1.5.0 (--remove):
>  subprocess pre-removal script returned error exit status 1
> Errors were encountered while processing:
>  sun-j2sdk1.5.0
> 
> i tried touching the "missing" files (hell java trying to remove is
> very wrong but i'm desparate my system is hosed anyways). ther's a
> whole bunch of them so i even went as far as coinning an ugly script
> together: 


Probably it's better to edit /var/lib/dpkg/info/sun-j2sdk1.5.0.prerm
instead. Maybe just adding
 alias rm="rm -f"
at the beginning is enough 


 Florian
-- 
Es gibt Leute, die von sich behaupten "wenn ich Kaffee trinke, kann ich
nicht schlafen!". Bei mir ist das umgekehrt: Wenn ich schlafe, kann ich
keinen Kaffee trinken.  [Juergen Ilse in de.alt.folklore.urban-legends]



More information about the ubuntu-devel mailing list