[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Aptitude stuck on sun-java5-bin



On Sat, Feb 09, 2008 at 14:41:14 -0600, cothrige wrote:
> 
> I have managed to get myself in a bit of a bind regarding packages.
> Aptitude is reporting an error regarding an apparent half-finished
> upgrade to sun-java5-bin, and this has caused all things to stop.
> Unfortunately I have not found a way to resolve or work around this.
> Here is what has been coming back from any aptitude commands:
> 
> 
> Preparing to replace sun-java5-bin 1.5.0-14-2 (using .../sun-java5-bin_1.5.0-14-2_i386.deb) ...
> sun-dlj-v1-1 license has already been accepted
> Unpacking replacement sun-java5-bin ...
> /usr/share/icons/sun-java5.png is not a directory
> dpkg: warning - old post-removal script returned error exit status 2

See bugs #462725 and #462727: dh_icons from package debhelper puts an
incorrect invocation of update-icon-caches into the post-removal script.
This problem is supposed to be fixed now (version 1.5.0-14-3 in Sid).

To get your package manager unstuck, use a text editor to open the file
/var/lib/dpkg/info/sun-java5-bin.postrm and change the line

    update-icon-caches /usr/share/icons/sun-java5.png

to
    update-icon-caches /usr/share/icons/

(line numer 36). 

Then run "aptitude install -f". I cannot test this on my system, but I
am pretty sure that it should work. If it does not work then comment out
line 36 by putting an "#" in front of it and run the aptitude command
again.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: