LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2008, 07:00 PM   #1
linuxuser049
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
sun-java5-bin stuck in apt-get


Hello,
I've had this problem for awhile, and it hasn't seemed to interfere until now, I'm trying to "apt-get install shorewall" and this is what I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dash iproute libatm1 shorewall-common shorewall-shell
Suggested packages:
iproute-doc shorewall-doc
The following packages will be REMOVED:
sun-java5-bin
The following NEW packages will be installed:
dash iproute libatm1 shorewall shorewall-common shorewall-shell
0 upgraded, 6 newly installed, 1 to remove and 1092 not upgraded.
1 not fully installed or removed.
Need to get 0B/837kB of archives.
After unpacking 64.1MB disk space will be freed.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 123347 files and directories currently installed.)
Removing sun-java5-bin ...
/usr/share/icons/sun-java5.png is not a directory
dpkg: error processing sun-java5-bin (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
sun-java5-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)



sun-java5-bin pops up whenever I do anything with apt-get, and "apt-get remove --purge sun-java5-bin" doesn't do anything, this is what it gives:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
sun-java5-bin
0 upgraded, 0 newly installed, 1 to remove and 1092 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 66.9MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 123347 files and directories currently installed.)
Removing sun-java5-bin ...
/usr/share/icons/sun-java5.png is not a directory
dpkg: error processing sun-java5-bin (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
sun-java5-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there an easy way to purge this from apt-get??

Thanks
 
Old 08-23-2008, 07:11 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
First you can try this (as root):

'dpkg -P sun-java5-bin'

if no joy this should help:

http://www.debianhelp.org/node/7498#comment-26107
 
Old 08-23-2008, 07:17 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
aptitude install -f
 
Old 08-23-2008, 07:20 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
It looks like there are some bugs in the remove script. Try "rm /usr/share/icons/sun-java5.png" then run "apt-get remove sun-java5-bin"

If the remove script fails when that file is removed, then you might try creating a directory (since the script is apparently expecting a directory):

mkdir -p /usr/share/icons/sun-java5.png
 
Old 08-23-2008, 07:29 PM   #5
linuxuser049
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
klearview,
'dpkg -P sun-java5-bin' didn't work, but the instructions on the link you gave did. Thanks!
Thanks to the others for their suggestions as well.

Last edited by linuxuser049; 08-23-2008 at 07:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Ubuntu 7.10 Sun-java5 broken? merijnv Linux - Software 2 12-12-2007 10:29 AM
Installing Sun Java Wireless Toolkit bin file. lifeforce4 Linux - Newbie 5 07-25-2007 07:32 PM
This is maddening: java5-bin dep on jre5 dep on java5-bin lumix Linux - Software 2 03-17-2007 02:47 PM
apt-get stuck at 0% sh4d0w13 Debian 1 07-31-2005 04:10 PM
apt-get is stuck h2gofast Debian 17 03-29-2004 11:02 PM


All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration