>  From: Saifi <[EMAIL PROTECTED]>
>  Subject: [twincling] how to handle 'half-installed' packages
>  Sent: 16 Dec '06 08:16
>  
>  Hi all:
>  
>  Does anybody know how to handle 'half-installed' packages ?
>  
>  I am facing an issue with 'sun-java5-bin'.
>  
>  During the installation of Sun JRE 5.0, the electricity went off.
>  
>  The status of the package is as follows -
>  
>  [EMAIL PROTECTED]:/var/cache/apt/archives$ dpkg --status sun-java5-bin
>  Package: sun-java5-bin
>  Status: purge reinstreq half-installed
>  Priority: optional
>  Section: non-free/libs
>  Version: 1.5.0-08-0ubuntu1
>  
>  How do I work around the problem ?
>  
>  thanks
>  Saifi.
>  

Don't know if this is "the" solution.
However, what worked for me is the following -

sudo dpkg --configure java-common
sudo dpkg --install sun-java5-jre_1.5.0-08-0ubuntu1_all.deb 
sun-java5-fonts_1.5.0-08-0ubuntu1_all.deb  
sun-java5-bin_1.5.0-08-0ubuntu1_i386.deb                        

The output was as follows -

(Reading database ... 97087 files and directories currently installed.)
Preparing to replace sun-java5-jre 1.5.0-08-0ubuntu1 (using 
sun-java5-jre_1.5.0-08-0ubuntu1_all.deb) ...
sun-dlj-v1-1 license has already been accepted

Unpacking replacement sun-java5-jre ...
Preparing to replace sun-java5-fonts 1.5.0-08-0ubuntu1 (using 
sun-java5-fonts_1.5.0-08-0ubuntu1_all.deb) ...

Unpacking replacement sun-java5-fonts ...
Preparing to replace sun-java5-bin 1.5.0-08-0ubuntu1 (using 
sun-java5-bin_1.5.0-08-0ubuntu1_i386.deb) ...
sun-dlj-v1-1 license has already been accepted

Unpacking replacement sun-java5-bin ...
Setting up sun-java5-bin (1.5.0-08-0ubuntu1) ...

Setting up sun-java5-jre (1.5.0-08-0ubuntu1) ...
Setting up sun-java5-fonts (1.5.0-08-0ubuntu1) ...

Looks like it works -
[EMAIL PROTECTED]:~$ java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)

thanks
Saifi.

Reply via email to