[arch-general] java: cannot execute - too many levels of symbolic links
Hi List, after updating yesterday java does not work anymore for me: ,---- | [tj@arch ~]$ LC_ALL=C java --help | /usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of | symbolic links | /usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot | execute: Too many levels of symbolic links `---- with '/usr/bin/java -> /usr/lib/java-common-wrapper' containing: #+BEGIN_SRC shell #!/bin/bash exec "${JAVA_HOME:-/usr/lib/jvm/default}/bin/${0##*/}" "$@" #+END_SRC I remember some Java lib was updated recently - anyone else with this problem? -- cheers, Thorsten
On Tue, Sep 9, 2014 at 8:42 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
Hi List,
after updating yesterday java does not work anymore for me:
,---- | [tj@arch ~]$ LC_ALL=C java --help | /usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of | symbolic links | /usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot | execute: Too many levels of symbolic links `----
The symbolic link /usr/lib/jvm/default points to itself! That's fucked up.
I had to run "archlinux-java fix" but it seemed to fix my issue. Nathan DeGruchy DeGruchy.org ________________________________________ From: arch-general <arch-general-bounces@archlinux.org> on behalf of Thorsten Jolitz <tjolitz@gmail.com> Sent: Monday, September 8, 2014 8:42 PM To: arch-general@archlinux.org Subject: [arch-general] java: cannot execute - too many levels of symbolic links Hi List, after updating yesterday java does not work anymore for me: ,---- | [tj@arch ~]$ LC_ALL=C java --help | /usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of | symbolic links | /usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot | execute: Too many levels of symbolic links `---- with '/usr/bin/java -> /usr/lib/java-common-wrapper' containing: #+BEGIN_SRC shell #!/bin/bash exec "${JAVA_HOME:-/usr/lib/jvm/default}/bin/${0##*/}" "$@" #+END_SRC I remember some Java lib was updated recently - anyone else with this problem? -- cheers, Thorsten
Jesus, the java-common package is such a piece of crap. For one, all those links should be in the list of its tracked files.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 9 September 2014 11:49:31 am AEST, lolilolicon <lolilolicon@gmail.com> wrote:
Jesus, the java-common package is such a piece of crap. For one, all those links should be in the list of its tracked files.
Upgrading to jre8 packages fixed the issue for me was in the forums (on phone don't have link but Google should work) If you don't want 8 I don't know what to do though - -- Cheers, Andrew -----BEGIN PGP SIGNATURE----- Version: APG v1.1.1 iQJABAEBCgAqBQJUDmBbIxxBbmRyZXcgUmlkZ3dheSA8YXIxNzc4N0BnbWFpbC5j b20+AAoJED+mltbuVnBWcfgP/2F/phr5C7iXlyEc3685Jn2ZwWEGB4MxHVFf2iPC AT62T0I65J8A7H/l2RSIuQxdzzADdRuwrB8e1a3SbDsY3HGY8ubPkPwAjhzAOyDd ULbCnvzjVEQHj2H5heVaSSnmB0SY71eErhwS0noJaz6xNiemhA5RefF2qp968JZ1 4Er9WLzwCdHlmkYMUVptN36v1NdquZb3XoHh237igCObVjqayEFU16xvZyw/o4iH NQfs78yqIheKpKkEIfmtLM2EcbWhQHey2fFGn/D8ql3c72br2d08OgHPEhVEMz+v 9fluWQCLFMO3k3e6PGMb+gWEFl/wwBOaKr/DNL02x4+BeEZh+DVF0eA+gANZPU2p dDdd82PhdWRVfjWCPBSXPpoJUek+QKvnh4GKGAlunUazp1A5fTQcAQjciSybdWEo 8GQoj353hz9TOwL0FOoGF2ILHFw7Em8G8x2KaZfAUZP/98Lbtlan0WYCEhl0STiX mgRGZFEeMdj+/CSb0LU/yWU61xa7SMtDGgaYWSPSImoYsP3DLir0RSvK0ufJ/Flm sdwGuV2FvSvB6wt7D0R9UWYHarA895xcwy2ZevtzPAc5ph9YZSs4JGh1xUhfOvcI K9jlf4oxOg37KfGMi8VQc+84FzGURPm9glLOWxyisuyjaRzEp0yFo4PkHEsOaYpm 5M0v =EIa/ -----END PGP SIGNATURE-----
On Tue, Sep 9, 2014 at 9:49 AM, lolilolicon <lolilolicon@gmail.com> wrote:
Jesus, the java-common package is such a piece of crap. For one, all those links should be in the list of its tracked files.
This situation is worth some eye balls; I filed a bug here: https://bugs.archlinux.org/task/41883 For anyone who have installed the jre* packages, do a `pacman -Qo /usr/bin/* >/dev/null` -- most if not all items in the list will be symlinks created by the jre* packages at install time, without any package tracking them.
On 09/08/2014 05:42 PM, Thorsten Jolitz wrote:
Hi List,
after updating yesterday java does not work anymore for me:
,---- | [tj@arch ~]$ LC_ALL=C java --help | /usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of | symbolic links | /usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot | execute: Too many levels of symbolic links `----
with '/usr/bin/java -> /usr/lib/java-common-wrapper' containing:
#+BEGIN_SRC shell #!/bin/bash exec "${JAVA_HOME:-/usr/lib/jvm/default}/bin/${0##*/}" "$@" #+END_SRC
I remember some Java lib was updated recently - anyone else with this problem?
I only have jre-7-openjdk installed, so I reinstalled jre7-openjdk and jre7-openjdk-headless. The archlinux-java fix trick works for me too.
kyle@landru /usr/lib/jvm $ la total 148 drwxr-xr-x 3 root root 4096 Sep 8 18:44 . drwxr-xr-x 233 root root 139264 Sep 8 18:35 .. lrwxrwxrwx 1 root root 18 Sep 8 18:44 default -> java-7-openjdk/jre lrwxrwxrwx 1 root root 18 Sep 8 18:44 default-runtime -> java-7-openjdk/jre drwxr-xr-x 3 root root 4096 Aug 26 20:25 java-7-openjdk lrwxrwxrwx 1 root root 7 Sep 8 18:27 java-default-runtime -> default
--Kyle
On Tue, Sep 9, 2014 at 2:42 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
Hi List,
after updating yesterday java does not work anymore for me:
,---- | [tj@arch ~]$ LC_ALL=C java --help | /usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of | symbolic links | /usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot | execute: Too many levels of symbolic links `----
Same issue here. $ archlinux-java fix seems to fix everything gabx@hortensia ➤➤ versions/1.8-pre1 % ls -al /usr/lib/jvm total 144K drwxr-xr-x 3 root root 4.0K Sep 9 09:07 ./ drwxr-xr-x 228 root root 136K Sep 8 15:50 ../ drwxr-xr-x 6 root root 4.0K Sep 22 2013 java-7-openjdk/ lrwxrwxrwx 1 root root 14 Sep 9 09:07 default -> java-7-openjdk/ lrwxrwxrwx 1 root root 18 Sep 9 09:07 default-runtime -> java-7-openjdk/jre/ lrwxrwxrwx 1 root root 7 Sep 8 15:50 java-default-runtime -> default/
On 9 September 2014 09:15, arnaud gaboury <arnaud.gaboury@gmail.com> wrote:
On Tue, Sep 9, 2014 at 2:42 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote:
Hi List,
after updating yesterday java does not work anymore for me:
,---- | [tj@arch ~]$ LC_ALL=C java --help | /usr/bin/java: line 2: /usr/lib/jvm/default/bin/java: Too many levels of | symbolic links | /usr/bin/java: line 2: exec: /usr/lib/jvm/default/bin/java: cannot | execute: Too many levels of symbolic links `----
Same issue here.
$ archlinux-java fix seems to fix everything
gabx@hortensia ➤➤ versions/1.8-pre1 % ls -al /usr/lib/jvm total 144K drwxr-xr-x 3 root root 4.0K Sep 9 09:07 ./ drwxr-xr-x 228 root root 136K Sep 8 15:50 ../ drwxr-xr-x 6 root root 4.0K Sep 22 2013 java-7-openjdk/ lrwxrwxrwx 1 root root 14 Sep 9 09:07 default -> java-7-openjdk/ lrwxrwxrwx 1 root root 18 Sep 9 09:07 default-runtime -> java-7-openjdk/jre/ lrwxrwxrwx 1 root root 7 Sep 8 15:50 java-default-runtime -> default/
Hello, Guillaume here (packager of that "piece of crap" java-common). This issue and its fix were already reported here [0] and discussed on the forum here [1] several days ago. [0] https://bbs.archlinux.org/viewtopic.php?id=186640 [1] https://bugs.archlinux.org/task/41826 FYI the whole idea was to fix this bug [2] where some application need to know a valid JDK and a valid JRE. [2] https://bugs.archlinux.org/task/41639
For anyone who have installed the jre* packages, do a `pacman -Qo /usr/bin/* >/dev/null` -- most if not all items in the list will be symlinks created by the jre* packages at install time, without any package tracking them.
Yes, that is the point of script archlinux-java [3]. [3] https://projects.archlinux.org/svntogit/packages.git/tree/trunk/bin_archlinu... @lolilolicon: thanks for you bug report but I am afraid this is the point of this approach. More about this on the wiki [4]. My answer on the bug report. Also, this has been publicly discussed back in May [5] where very few people cared to give feedback. [4] https://wiki.archlinux.org/index.php/Java#Switching_between_JVM [5] https://mailman.archlinux.org/pipermail/arch-general/2014-May/036410.html
Guillaume ALAUX <guillaume@archlinux.org> writes: Hello,
Guillaume here (packager of that "piece of crap" java-common).
I did not say that ...
This issue and its fix were already reported here [0] and discussed on the forum here [1] several days ago.
[0] https://bbs.archlinux.org/viewtopic.php?id=186640 [1] https://bugs.archlinux.org/task/41826
yes, I should have checked the forum first, I know ... Would it be technically possible to have a kind or read-only Gmane group that reflects all new posts in the forum as well as all new bug-reports? Similar to systems that track new commits to a git repo or so - just keep people informed about whats going on, bundling info from several places in one single place? In contrast to other groups/mailing lists, following the arch.general group doesn't help very much in staying up to date with reported problems or bugs. -- cheers, Thorsten
On 9 September 2014 10:50, Thorsten Jolitz <tjolitz@gmail.com> wrote:
Guillaume ALAUX <guillaume@archlinux.org> writes:
Hello,
Guillaume here (packager of that "piece of crap" java-common).
I did not say that ...
This issue and its fix were already reported here [0] and discussed on the forum here [1] several days ago.
[0] https://bbs.archlinux.org/viewtopic.php?id=186640 [1] https://bugs.archlinux.org/task/41826
yes, I should have checked the forum first, I know ...
Would it be technically possible to have a kind or read-only Gmane group that reflects all new posts in the forum as well as all new bug-reports? Similar to systems that track new commits to a git repo or so - just keep people informed about whats going on, bundling info from several places in one single place?
In contrast to other groups/mailing lists, following the arch.general group doesn't help very much in staying up to date with reported problems or bugs.
-- cheers, Thorsten
I did not say that ... No that was not for you :)
About the "Gmane": that is another topic. You may want to start a new thread about that (FYI there already is on each package page, a link to the source files, commits and bug reports for this package along with a link to a search on the wiki – no link to the forum though) [0]. [0] https://www.archlinux.org/packages/extra/any/java-common/
Guillaume ALAUX <guillaume@archlinux.org> writes:
On 9 September 2014 10:50, Thorsten Jolitz <tjolitz@gmail.com> wrote:
Would it be technically possible to have a kind or read-only Gmane group that reflects all new posts in the forum as well as all new bug-reports? Similar to systems that track new commits to a git repo or so - just keep people informed about whats going on, bundling info from several places in one single place?
In contrast to other groups/mailing lists, following the arch.general group doesn't help very much in staying up to date with reported problems or bugs.
About the "Gmane": that is another topic. You may want to start a new thread about that (FYI there already is on each package page, a link to the source files, commits and bug reports for this package along with a link to a search on the wiki – no link to the forum though) [0].
[0] https://www.archlinux.org/packages/extra/any/java-common/
I'm not active enough in the archlinux community to "demand" more efficient information politics, so I prefer leaving this to others. As a Emacs Gnus user I just think sometimes how nice it would be to subscribe to an 'archlinux.activities' group on gmane and keep being updated on all forum posts, all bug reports and maybe even all packages related actions by following that list from Gnus. It might be 3 different read-only gmane lists/groups too, for forum, bugs, packages, the important thing would be to not having to leave my newsreader to search in different (web)sites for current issues or problems. -- cheers, Thorsten
Am 09.09.2014 um 11:16 schrieb Thorsten Jolitz:
I'm not active enough in the archlinux community to "demand" more efficient information politics, so I prefer leaving this to others. As a Emacs Gnus user I just think sometimes how nice it would be to subscribe to an 'archlinux.activities' group on gmane and keep being updated on all forum posts, all bug reports and maybe even all packages related actions by following that list from Gnus. It might be 3 different read-only gmane lists/groups too, for forum, bugs, packages, the important thing would be to not having to leave my newsreader to search in different (web)sites for current issues or problems. You can probably use gwene.org to read the rss feeds for these events. There are rss feeds for active forum topics, new bugs and package updates.
ProgAndy <admin@progandy.de> writes:
I'm not active enough in the archlinux community to "demand" more efficient information politics, so I prefer leaving this to others. As a Emacs Gnus user I just think sometimes how nice it would be to subscribe to an 'archlinux.activities' group on gmane and keep being updated on all forum posts, all bug reports and maybe even all packages related actions by following that list from Gnus. It might be 3 different read-only gmane lists/groups too, for forum, bugs, packages, the important thing would be to not having to leave my newsreader to search in different (web)sites for current issues or problems. You can probably use gwene.org to read the rss feeds for these events. There are rss feeds for active forum topics, new bugs and
Am 09.09.2014 um 11:16 schrieb Thorsten Jolitz: package updates.
Ah, ok, thanks for the tip, thats probably exactely what I was talking about. -- cheers, Thorsten
On Tue, Sep 9, 2014 at 4:27 PM, Guillaume ALAUX <guillaume@archlinux.org> wrote:
Hello,
Guillaume here (packager of that "piece of crap" java-common).
Yes it is pretty crappy.
symlinks created by the jre* packages at install time, without any package tracking them.
Yes, that is the point of script archlinux-java [3].
It's crappy mainly because of the whole bunch of symlinks being *untracked*.
Also, this has been publicly discussed back in May [5] where very few people cared to give feedback.
Sorry I don't follow every discussion on the mailing list... I would never have joined one about java, really; it just so happens this one is so *wrong*... To be sure, I do appreciate your effort, Guillaume. No one likes to deal with this java crap. I don't have strong objections against your general approach, only this particular packaging practice. Let's improve it.
On 9 September 2014 12:25, lolilolicon <lolilolicon@gmail.com> wrote:
On Tue, Sep 9, 2014 at 4:27 PM, Guillaume ALAUX <guillaume@archlinux.org> wrote:
Hello,
Guillaume here (packager of that "piece of crap" java-common).
Yes it is pretty crappy.
symlinks created by the jre* packages at install time, without any package tracking them.
Yes, that is the point of script archlinux-java [3].
It's crappy mainly because of the whole bunch of symlinks being *untracked*.
Also, this has been publicly discussed back in May [5] where very few people cared to give feedback.
Sorry I don't follow every discussion on the mailing list... I would never have joined one about java, really; it just so happens this one is so *wrong*...
To be sure, I do appreciate your effort, Guillaume. No one likes to deal with this java crap. I don't have strong objections against your general approach, only this particular packaging practice. Let's improve it.
To be sure, I do appreciate your effort The vocabulary you use to describe this package prevents you from stating that you "appreciate" my effort. Please, read again this thread and reconsider your language. I am open to criticism if it is done in a polite way.
On Wed, Sep 10, 2014 at 6:25 PM, Guillaume ALAUX <guillaume@archlinux.org> wrote:
On 9 September 2014 12:25, lolilolicon <lolilolicon@gmail.com> wrote:
To be sure, I do appreciate your effort, Guillaume. No one likes to deal with this java crap. I don't have strong objections against your general approach, only this particular packaging practice. Let's improve it.
To be sure, I do appreciate your effort The vocabulary you use to describe this package prevents you from stating that you "appreciate" my effort.
I appreciate the effort you put into working out a way to deal with the mess that is java. It does not conflict with the fact that I think the current state of java-common is imperfect, and indeed is, IMO, substandard. I'm sorry I hurt your feelings, but realize that I'm merely stating that one particular package is bad, and it needs our attention. Please do not take it personally. Disregard what particular language I used -- I should add that my temperament in this particular case was in no small part due to my dislike of java. Again I apologize for the harm I did not intend.
participants (8)
-
Andrew Ridgway
-
arnaud gaboury
-
Guillaume ALAUX
-
Kyle Terrien
-
lolilolicon
-
Nathan R. DeGruchy
-
ProgAndy
-
Thorsten Jolitz