View Full Version : Workaround for Sun's Java 6 for Hardy
asimon
November 24th, 2007, 06:30 AM
Hi,
sun-java6 (currently 6-03-0ubuntu2) is broken in Hardy. Most GUI programs fail with a segmentation fault like
$ netbeans
java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
/home/andreas/nbrubyide/bin/../platform7/lib/nbexec: line 440: 26682 Aborted (core dumped)
It looks like Sun will fix this only in Java 7. So here is a workaround for people who want to use Java 6 in Hardy:
$ sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so
More details on this bug can be found at Bug 6532373: xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c->xlib.lock' failed (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373).
Have fun.
3togo
November 24th, 2007, 01:21 PM
try the attachement
Amaranth
November 24th, 2007, 11:25 PM
What did you change in that package? Where is the source?
As far as I know you cannot fix this problem in xcb because the problem is that the libXinerama used by java is statically compiled into java and is built without threading support.
The 'fix' is to use icedtea instead.
3togo
November 25th, 2007, 09:09 AM
I have changed these few lines in xcb_xlib.c and it works for me.
void xcb_xlib_lock(xcb_connection_t *c)
{
_xcb_lock_io(c);
//assert(!c->xlib.lock);
if (!c->xlib.lock) {
c->xlib.lock = 1;
c->xlib.thread = pthread_self();
}
_xcb_unlock_io(c);
}
void xcb_xlib_unlock(xcb_connection_t *c)
{
_xcb_lock_io(c);
//assert(c->xlib.lock);
if (c->xlib.lock) {
assert(pthread_equal(c->xlib.thread, pthread_self()));
c->xlib.lock = 0;
pthread_cond_broadcast(&c->xlib.cond);
}
_xcb_unlock_io(c);
}
3togo
November 26th, 2007, 10:28 PM
After today's update, sun java failed again. If u got similar problem, try the attached deb
:)
caryb
November 26th, 2007, 11:07 PM
I get this !
cary@stinkpad:~$ sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6 .0.03/jre/lib/i386/xawt/libmawt.so
[sudo] password for cary:
sed: can't read /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so: N o such file or directory
cary@stinkpad:~$
The attached file is no good for me as I run 64bit:confused:
Cary
3togo
November 26th, 2007, 11:26 PM
Sorry, I can't help as I don't have money to buy a 64-bit computer.
pferraro
November 27th, 2007, 11:23 AM
The attached file is no good for me as I run 64bit:confused:
So use this instead:
sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/amd64/xawt/libmawt.so
caffienefree
November 27th, 2007, 03:29 PM
Worked for me, thanks!
I was typically getting a message "Locking Assertion Failure", then a backtrace, and the last line was the error you posted.
caryb
November 27th, 2007, 06:53 PM
I'm now frostwire'ing again:guitar:
Cary
spamzilla
December 2nd, 2007, 06:00 AM
After today's update, sun java failed again. If u got similar problem, try the attached deb
:)
Excellent, java works again after installing this file :D
edit
The fix caused Hardy to crash when im playing any java game :/
LaneLester
December 4th, 2007, 09:17 PM
And I'm freeminding. :)
The "sed" line did the trick.
Lane
syxbit
December 4th, 2007, 10:24 PM
let me guess... java 7 won't be out until LONG after hardy freeze :(
eeclark
December 4th, 2007, 10:57 PM
sed did not fix it for me.
edward@smallville:~$ sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/xawt/libmawt.so
[sudo] password for edward:
edward@smallville:~$ frostwire
Starting FrostWire...
Java exec found in PATH. Verifying...
Suitable java version found [java = 1.6.0_03]
Configuring environment...
Loading FrostWire:
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7fc8767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7fc88b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb52212ed]
#3 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/motif21/libmawt.so [0xb539f69e]
#4 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/motif21/libmawt.so [0xb5343be7]
#5 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/motif21/libmawt.so [0xb5343e98]
#6 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/motif21/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_ini tDisplay+0x2f) [0xb534419f]
#7 [0xb5d5f66e]
#8 [0xb5d57edd]
#9 [0xb5d57edd]
#10 [0xb5d55243]
#11 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bc6d]
#12 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x630a828]
#13 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bb00]
#14 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b) [0x62619bb]
#15 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/libjava.so(Java_java_security_AccessController_doP rivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb7d7096d]
#16 [0xb5d5f66e]
#17 [0xb5d57d77]
#18 [0xb5d55243]
#19 /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/client/libjvm.so [0x620bc6d]
java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
/usr/lib/frostwire/runFrostwire.sh: line 125: 9550 Aborted (core dumped) ${JAVA_PROGRAM_DIR}java -ea -Dorg.apache.commons.logging.Log=org.apache.commons .logging.impl.NoOpLog -Djava.library.path=. $EXECUTABLE -jar FrostWire.jar $ARGUMENTS
************************************************** ****************
Something went wrong with FrostWire.
Maybe you're using the wrong version of Java?
(FrostWire is tested against and works best with with Sun's JRE, Java 1.4+)
The version of Java in your PATH is:
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
spamzilla
December 5th, 2007, 05:11 AM
sun java 7 is ages away :(
http://today.java.net/pub/a/today/2007/08/09/looking-ahead-to-java-7.html#java-7-release-schedule
tlayton_at_work
December 5th, 2007, 03:58 PM
Think I found this on a Sun Java blog. I added the following to my .bash_profile
export LIBXCB_ALLOW_SLOPPY_LOCK=true
That seemed to work (once I logged out and back in), but I think the new xlibc in Hardy updates fixed it, and I have now commented the line out. I think there may have even been a line in the xlibc changelog about Java.
Anyways, hope that helps, b/c the sed line never worked for me.
spamzilla
December 5th, 2007, 04:04 PM
I'm going to reinstall java and see if it continues to crash my system.
Thanks for the update!
spamzilla
December 5th, 2007, 04:20 PM
Nothing seems to be fixed as I was just playing a java game, and my dual core processors were both running at 60%. Usually any java game runs at 10-20% max cpu usage ON ONE of the processors, so something still isn't right.
Where is the .bash_profile file located? I'm going to try that fix too.
LaneLester
January 12th, 2008, 11:50 AM
The .deb worked for me with SuperbCalc. Thanks a bunch!
Lane
autocrosser
January 12th, 2008, 07:01 PM
The sed worked great for me!!
So use this instead:
sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/amd64/xawt/libmawt.so
rwabel
January 14th, 2008, 01:52 PM
the deb works fine for me too. Why doesn't ubuntu team not just fix is or is that not permitted?
sean4u
January 16th, 2008, 11:59 PM
Think I found this on a Sun Java blog. I added the following to my .bash_profile
export LIBXCB_ALLOW_SLOPPY_LOCK=true
That seemed to work (once I logged out and back in), but I think the new xlibc in Hardy updates fixed it, and I have now commented the line out. I think there may have even been a line in the xlibc changelog about Java.
Anyways, hope that helps, b/c the sed line never worked for me.
Thanks for posting tlayton, the sloppy_lock worked a treat for me, I get two of the original stack traces, and then my app (a Java3D physics simulation) runs as before. This seems likes the least invasive of all solutions!
Tomy
January 18th, 2008, 10:15 PM
What did you change in that package? Where is the source?
As far as I know you cannot fix this problem in xcb because the problem is that the libXinerama used by java is statically compiled into java and is built without threading support.
The 'fix' is to use icedtea instead.
icedtea worked for me.
sudo apt-get install icedtea-java7-jre
I also had to add icedtea as the OOo default jre:
Tools->Options->(expand Openoffice.org)Java->Add
and then browse to /usr/lib/jvm/java-7-icedtea/jre
motoplux
January 20th, 2008, 08:37 AM
I solved with this
sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/motif21/libmawt.so
Xgen
January 20th, 2008, 04:47 PM
sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/motif21/libmawt.so
Aye, this one WFM...finally...
KhaaL
January 21st, 2008, 04:55 AM
This may be a dumb question, but how come java has all kinds of problems, like this one, even now that it's opensource?
Lord Illidan
January 21st, 2008, 05:11 AM
Not to offend, but yes, it is a dumb question. Just because java is opensource doesn't mean it will not have bugs. Ubuntu has hundreds of bugs. So does the linux kernel. So do many open source and propietary programs out there. And sun has to try and maintain java for lots of platforms simultaneously.
KhaaL
January 21st, 2008, 05:15 AM
Not to offend, but yes, it is a dumb question. Just because java is opensource doesn't mean it will not have bugs. Ubuntu has hundreds of bugs. So does the linux kernel. So do many open source and propietary programs out there. And sun has to try and maintain java for lots of platforms simultaneously.
Fair enough :)
I just expected that it would have old bugs squashed (such as the compiz / awt bug), and I also expected it to be included in ubuntu by default in 7.10 when it turned open source.
Jeff250
January 23rd, 2008, 08:09 PM
IcedTea is based on Sun's free, open source Java (OpenJDK), and it does have that bug fixed. The Sun Java 6 packages, which currently experience the bug, are non-free.
RAOF
January 23rd, 2008, 09:55 PM
This may be a dumb question, but how come java has all kinds of problems, like this one, even now that it's opensource?
The reason why this isn't fixable is because Java 6 isn't open source. And Java 7 isn't fully open-source yet (which is why icedtea exists, and why icedtea doesn't work for everything).
MacUntu
February 3rd, 2008, 07:37 AM
Any idea when this will be fixed? A LTS release without working java seems a bit conflicting to me. Something has to happen - even if it's just automatic application of the sed hack...
jollytim
February 6th, 2008, 02:01 PM
I had to use this code:
sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.04/jre/lib/i386/xawt/libmawt.so
Now Ipblock gui works on Hardy, with java workaround.
shinji257
February 10th, 2008, 11:40 PM
Just to let you guys know. Both the sed trick and the deb package works. I had trouble getting java working and I tried everything. This finally did it for me. I am going to just use the deb package instead of the sed trick as it will stick better. I have a website and one thing I did was post a ssh access page up but when a few people said it wasn't working I went and checked it out to confirm it. I now have instructions on how to "repair" the issue. I have one other confirmed report as well of it working with a user running gutsy.
fedora-user
February 14th, 2008, 10:52 AM
I run Fedora 8 and had the same problem. In my case, I could not upgrade OpenOffice because it uses a java-based installer. The 'sloppy_lock' trick and the sed workaround do not work in Fedora, and obviously, neither did the deb!
This will never be fixed in java 1.6. The proper answer is to upgrade to openjdk java 1.7, which is now (February 14th) at release candidate build b24. I tried the JRE but it requires the existing java in order to install and I got the same error. In my case, the self-installing Fedora JDK.bin file worked. Ubuntu users may have to use the binary 'jar' files, or even build from source. Available here:
http://download.java.net/jdk7/binaries/
fedora-user
raggari
February 15th, 2008, 03:27 AM
The reason why this isn't fixable is because Java 6 isn't open source. And Java 7 isn't fully open-source yet (which is why icedtea exists, and why icedtea doesn't work for everything).
Except now!
http://download.java.net/openjdk/jdk6/
mabovo
February 24th, 2008, 07:26 AM
I got this:
mabovo@macbook:~/downloads/java$ java -jar jdk-6-ea-plug-b05-linux-amd64-12_feb_2008.jar
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5ff6048141, pid=17396, tid=1095162192
#
# Java VM: IcedTea 64-Bit Server VM (1.7.0-b24 mixed mode linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5ca141]
#
# An error report file with more information is saved as:
# /home/mabovo/downloads/java/hs_err_pid17396.log
#
# If you would like to submit a bug report, please visit:
# http://icedtea.classpath.org/bugzilla
#
Cancelado (core dumped)
16777216
March 22nd, 2008, 10:17 PM
I get this
sudo ipblock -g
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/ipblock/gui/ipblockUI (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :539)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader .java:251)
at java.net.URLClassLoader.access$100(URLClassLoader. java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)
None of the previous fixes work for this.
Silly me was using the wrong jre.:lolflag:
This fixed it.
sudo update-alternatives --config java
caryb
March 22nd, 2008, 10:27 PM
My error is equally interesing...
cary@stinkpad:~/Downloads$ sudo java -jar jdk-6-ea-plug-b07-linux-amd64-20_mar_2008.jar
[sudo] password for cary:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fbf63001141, pid=21657, tid=1102653776
#
# Java VM: IcedTea 64-Bit Server VM (1.7.0-b24 mixed mode linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5ca141]
#
# An error report file with more information is saved as:
# /home/cary/Downloads/hs_err_pid21657.log
#
# If you would like to submit a bug report, please visit:
# http://icedtea.classpath.org/bugzilla
#
Aborted (core dumped)
cary@stinkpad:~/Downloads$
Cary
banjopikker
March 25th, 2008, 12:59 PM
Does anyone know if Java 5 will work with Hardy? I am not experienced enough to try some of the things I have researched here.
16777216
March 25th, 2008, 01:31 PM
sudo apt-get install sun-java5-jreOr If you want the fonts and plugin as well.
sudo apt-get install sun-java5-jre sun-java5-fonts sun-java5-pluginYou can open Synaptic and search for java to find these packages and more java related packages.
banjopikker
March 25th, 2008, 03:41 PM
Thanks a bunch. I guess I'll wait for an easy fix for JRE 6.
julibeewu
March 25th, 2008, 05:01 PM
Hi, I'm new on Linux and completely confused. I used to have Gusty Gibbon but upgraded to Hardy last night. However, now my java doesn't work, and when I tried the above (sudo apt-get install sun-java5-jre), I got a stream of error messages that I don't know how to read. I'm sorry that it's so long, but I am so lost. I'm a complete newbie when it comes to using Linux and these forums, so I'm sorry if I'm posting in the wrong thread or if this post is too long. I'm desperate because I need to use the javac function to compile .java files for a programming class...help!
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package sun-java5-jreOr
julibeewu@julibeewu-laptop:~$ sudo apt-get install sun-java5-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
sun-java5-jre is already the newest version.
sun-java5-jre set to manually installed.
The following packages were automatically installed and are no longer required:
libstdc++5 libfaad2-0 fftw3 libx264-54 libgif4 gcc-3.3-base libungif4g
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
30 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up java-common (0.28ubuntu2) ...
Can't rename `/var/lib/doc-base/info/debian-java-faq.status.tmp' to `/var/lib/doc-base/info/debian-java-faq.status': Is a directory at /usr/share/perl5/Debian/DocBase/InstallDocs.pm line 162
dpkg: error processing java-common (--configure):
subprocess post-installation script returned error exit status 21
dpkg: dependency problems prevent configuration of sun-java5-jre:
sun-java5-jre depends on java-common; however:
Package java-common is not configured yet.
dpkg: error processing sun-java5-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java5-bin:
sun-java5-bin depends on sun-java5-jre (= 1.5.0-14-3); however:
Package sun-java5-jre is not configured yet.
dpkg: error processing sun-java5-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java6-jre:
sun-java6-jre depends on java-common (>= 0.24); however:
Package java-common is not configured yet.
dpkg: error processing sun-java6-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java6-bin:
sun-java6-bin depends on sun-java6-jre (= 6-04-2); however:
Package sun-java6-jre is not configured yet.
dpkg: error processing sun-java6-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of liblog4j1.2-java:
liblog4j1.2-java depends on java-common; however:
Package java-common is not configured yet.
dpkg: error processing liblog4j1.2-java (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmx4j-java:
libmx4j-java depends on liblog4j1.2-java; however:
Package liblog4j1.2-java is not configured yet.
dpkg: error processing libmx4j-java (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of java-gcj-compat-headless:
java-gcj-compat-headless depends on java-common (>= 0.25); however:
Package java-common is not configured yet.
java-gcj-compat-headless depends on libmx4j-java (>= 3.0.1); however:
Package libmx4j-java is not configured yet.
dpkg: error processing java-gcj-compat-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of java-gcj-compat:
java-gcj-compat depends on java-gcj-compat-headless (= 1.0.77-2ubuntu2); however:
Package java-gcj-compat-headless is not configured yet.
dpkg: error processing java-gcj-compat (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openoffice.org-officebean:
openoffice.org-officebean depends on java-gcj-compat (>= 1.0.77-4) | icedtea-java7-jre | sun-java5-jre | sun-java6-jre | java2-runtime; however:
Version of java-gcj-compat on system is 1.0.77-2ubuntu2.
Package icedtea-java7-jre is not installed.
Package sun-java5-jre is not configured yet.
Package sun-java6-jre is not configured yet.
Package java2-runtime is not installed.
Package sun-java5-jre which provides java2-runtime is not configured yet.
Package java-gcj-compat which provides java2-runtime is not configured yet.
Package sun-java6-jre which provides java2-runtime is not configured yet.
dpkg: error processing openoffice.org-officebean (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openoffice.org-base:
openoffice.org-base depends on java-gcj-compat | icedtea-java7-jre | sun-java5-jre | sun-java6-jre | java2-runtime; however:
Package java-gcj-compat is not configured yet.
Package icedtea-java7-jre is not installed.
Package sun-java5-jre is not configured yet.
Package sun-java6-jre is not configured yet.
Package java2-runtime is not installed.
Package sun-java5-jre which provides java2-runtime is not configured yet.
Package java-gcj-compat which provides java2-runtime is not configured yet.
Package sun-java6-jre which provides java2-runtime is not configured yet.
dpkg: error processing openoffice.org-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openoffice.org:
openoffice.org depends on openoffice.org-base; however:
Package openoffice.org-base is not configured yet.
openoffice.org depends on openoffice.org-officebean; however:
Package openoffice.org-officebean is not configured yet.
dpkg: error processing openoffice.org (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openoffice.org-evolution:
openoffice.org-evolution depends on openoffice.org-base; however:
Package openoffice.org-base is not configured yet.
dpkg: error processing openoffice.org-evolution (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java5-jdk:
sun-java5-jdk depends on sun-java5-jre (= 1.5.0-14-3); however:
Package sun-java5-jre is not configured yet.
dpkg: error processing sun-java5-jdk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java5-demo:
sun-java5-demo depends on sun-java5-jdk (= 1.5.0-14-3); however:
Package sun-java5-jdk is not configured yet.
sun-java5-demo depends on sun-java5-jre (= 1.5.0-14-3); however:
Package sun-java5-jre is not configured yet.
dpkg: error processing sun-java5-demo (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java6-jdk:
sun-java6-jdk depends on sun-java6-jre (= 6-04-2); however:
Package sun-java6-jre is not configured yet.
dpkg: error processing sun-java6-jdk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of antlr:
antlr depends on java-gcj-compat | java1-runtime | java2-runtime; however:
Package java-gcj-compat is not configured yet.
Package java1-runtime is not installed.
Package java-gcj-compat which provides java1-runtime is not configured yet.
Package java2-runtime is not installed.
Package sun-java5-jre which provides java2-runtime is not configured yet.
Package java-gcj-compat which provides java2-runtime is not configured yet.
Package sun-java6-jre which provides java2-runtime is not configured yet.
dpkg: error processing antlr (--configure):
dependency problems - leaving unconfigured
Setting up doc-base (0.8.7) ...
Registering 36 installed documents
Can't rename `/var/lib/doc-base/info/debian-java-faq.status.tmp' to `/var/lib/doc-base/info/debian-java-faq.status': Is a directory at /usr/share/perl5/Debian/DocBase/InstallDocs.pm line 162
dpkg: error processing doc-base (--configure):
subprocess post-installation script returned error exit status 21
dpkg: dependency problems prevent configuration of libecj-java:
libecj-java depends on java-common (>= 0.23); however:
Package java-common is not configured yet.
dpkg: error processing libecj-java (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ecj:
ecj depends on libecj-java (>= 3.3.0+0728-5); however:
Package libecj-java is not configured yet.
ecj depends on java-common (>= 0.23); however:
Package java-common is not configured yet.
dpkg: error processing ecj (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libecj-java-gcj:
libecj-java-gcj depends on java-common (>= 0.23); however:
Package java-common is not configured yet.
libecj-java-gcj depends on libecj-java (>= 3.3.0+0728-5); however:
Package libecj-java is not configured yet.
dpkg: error processing libecj-java-gcj (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ecj-gcj:
ecj-gcj depends on ecj (>= 3.3.0+0728-5); however:
Package ecj is not configured yet.
ecj-gcj depends on libecj-java-gcj (>= 3.3.0+0728-5); however:
Package libecj-java-gcj is not configured yet.
dpkg: error processing ecj-gcj (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcj-4.2:
gcj-4.2 depends on java-common; however:
Package java-common is not configured yet.
gcj-4.2 depends on libecj-java (>= 3.3.0-2); however:
Package libecj-java is not configured yet.
dpkg: error processing gcj-4.2 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgcj8-dev:
libgcj8-dev depends on gcj-4.2 (= 4.2.3-2ubuntu6); however:
Package gcj-4.2 is not configured yet.
dpkg: error processing libgcj8-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gjdoc:
gjdoc depends on antlr; however:
Package antlr is not configured yet.
dpkg: error processing gjdoc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of java-gcj-compat-dev:
java-gcj-compat-dev depends on ecj-gcj (>= 3.3.0+0728); however:
Package ecj-gcj is not configured yet.
java-gcj-compat-dev depends on gcj-4.2; however:
Package gcj-4.2 is not configured yet.
java-gcj-compat-dev depends on gjdoc (>= 0.7.8); however:
Package gjdoc is not configured yet.
java-gcj-compat-dev depends on java-gcj-compat (= 1.0.77-2ubuntu2); however:
Package java-gcj-compat is not configured yet.
dpkg: error processing java-gcj-compat-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java6-plugin:
sun-java6-plugin depends on sun-java6-bin (= 6-04-2); however:
Package sun-java6-bin is not configured yet.
dpkg: error processing sun-java6-plugin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-desktop:
ubuntu-desktop depends on doc-base; however:
Package doc-base is not configured yet.
dpkg: error processing ubuntu-desktop (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libregexp-java:
libregexp-java depends on java-gcj-compat | java1-runtime | java2-runtime; however:
Package java-gcj-compat is not configured yet.
Package java1-runtime is not installed.
Package java-gcj-compat which provides java1-runtime is not configured yet.
Package java2-runtime is not installed.
Package sun-java5-jre which provides java2-runtime is not configured yet.
Package java-gcj-compat which provides java2-runtime is not configured yet.
Package sun-java6-jre which provides java2-runtime is not configured yet.
dpkg: error processing libregexp-java (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libbcel-java:
libbcel-java depends on libregexp-java; however:
Package libregexp-java is not configured yet.
dpkg: error processing libbcel-java (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
java-common
sun-java5-jre
sun-java5-bin
sun-java6-jre
sun-java6-bin
liblog4j1.2-java
libmx4j-java
java-gcj-compat-headless
java-gcj-compat
openoffice.org-officebean
openoffice.org-base
openoffice.org
openoffice.org-evolution
sun-java5-jdk
sun-java5-demo
sun-java6-jdk
antlr
doc-base
libecj-java
ecj
libecj-java-gcj
ecj-gcj
gcj-4.2
libgcj8-dev
gjdoc
java-gcj-compat-dev
sun-java6-plugin
ubuntu-desktop
libregexp-java
libbcel-java
E: Sub-process /usr/bin/dpkg returned an error code (1)
knarf
March 25th, 2008, 05:23 PM
...
Can't rename `/var/lib/doc-base/info/debian-java-faq.status.tmp' to `/var/lib/doc-base/info/debian-java-faq.status': Is a directory at /usr/share/perl5/Debian/DocBase/InstallDocs.pm line 162
dpkg: error processing java-common (--configure):
subprocess post-installation script returned error exit status 21
There seems to be a problem renaming this file:
/var/lib/doc-base/info/debian-java-faq.status
On my system this is a file:
-rw-r--r-- 1 root root 195 2008-03-13 13:14 /var/lib/doc-base/info/debian-java-faq.status
The install claims that it can not rename the temporary file because there is a directory of the same name. Check if this is the case:
ls -l /var/lib/doc-base/info/debian-java-faq.status
If there is indeed a directory of that name, remove it:
sudo rm -f /var/lib/doc-base/info/debian-java-faq.status
Then finish the install:
sudo dpkg --configure -a
If this does not work, post again.
julibeewu
March 25th, 2008, 05:31 PM
ls -l /var/lib/doc-base/info/debian-java-faq.status
When I do that, I get
ls: cannot open directory /var/lib/doc-base/info/debian-java-faq.status: Permission denied,
which doesn't make sense to me because I definitely have administrative privileges.
knarf
March 25th, 2008, 05:41 PM
try:
sudo ls -l /var/lib/doc-base/info|grep debian-java-faq and post the results
shinji257
April 22nd, 2008, 08:48 PM
Ok. I got this in the latest hardy as well. It now has 1.6.0-06 for the java6 version so I ran this command to patch up libmawt.so and make it work for me.
sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/xawt/libmawt.so
LaneLester
April 23rd, 2008, 08:19 AM
I've been updating Hardy for months, and just recently OpenOffice has started popping up Java errors every time I open and close a document. Setting the Java part of Options seems to have no effect.
The error tells me to install openoffice-java-common, but it's installed.
Lane
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.