LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-18-2009, 02:43 AM   #1
citye
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
I can't install sun-java6-jdk sun-java6-bin sun-java6-jre


I can't install sun-java6-jdk sun-java6-bin sun-java6-jre, always show an dpkg's error

so i'm try to remove with sudo apt-get remove sun-java6-bin sun-java6-jre sun-java6-jdk...

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not installed, so not removed
The following packages will be REMOVED:
sun-java6-bin sun-java6-jre
0 upgraded, 0 newly installed, 2 to remove and 345 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: error processing sun-java6-bin (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
dpkg: error processing sun-java6-jre (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
sun-java6-bin
sun-java6-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)

please help me to solve my problem... thx....
 
Old 10-18-2009, 04:01 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by citye View Post
I can't install sun-java6-jdk sun-java6-bin sun-java6-jre, always show an dpkg's error

so i'm try to remove with sudo apt-get remove sun-java6-bin sun-java6-jre sun-java6-jdk...

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not installed, so not removed
The following packages will be REMOVED:
sun-java6-bin sun-java6-jre
0 upgraded, 0 newly installed, 2 to remove and 345 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: error processing sun-java6-bin (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
dpkg: error processing sun-java6-jre (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
sun-java6-bin
sun-java6-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)

please help me to solve my problem... thx....
1. Go to http://java.com

2. Pick a Java version --choose an executable binary, not an RPM.

3. Download it.

4. Put the download anywhere convenient.

5. Open a shell and navigate to the location of the binary.

6. Enter "chmod +x *.bin"

7. Enter "./(full name of binary)"

8. The binary Java download will install itself.

As you become more familiar with Java, you will figure out how to get the various versions downloaded and installed.
 
Old 10-18-2009, 04:54 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.

Kinda self-explanatory isn't it?

What happens when you try apt-get purge sun-java6-jre?

And no do not do it the way the person above me suggested.

Btw it helps if you tell people what distro you are using and how you tried to install the package.
 
  


Reply

Tags
cant, install


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
I already have sun-java6-bin and sun-hava6-jre Randymanme Linux - Newbie 17 08-26-2009 02:48 PM
8.04 - Uninstalled Firefox, ... can't install Sun-Java6-plugin now. brjoon1021 Ubuntu 4 01-06-2009 10:13 AM
no servlet class on sun-java6 ? abd_bela Programming 1 10-19-2008 06:07 AM
installing sun-java6-jdk dcbc Linux - Software 2 04-02-2008 07:17 AM
updated to java6, can't connect to jirc/jchat gutty96 Linux - Newbie 0 06-26-2007 04:49 PM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration