You are not logged in.

#1 2013-07-09 17:09:53

b4st1
Member
Registered: 2013-07-09
Posts: 9

[SOLVED] Java - No such file or directory

sebastian@system $ sudo pacman -Syu jre7-openjdk
warning: jre7-openjdk-7.u40_2.4.1-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Packages (1): jre7-openjdk-7.u40_2.4.1-1

Total Installed Size:   0,51 MiB
Net Upgrade Size:       0,00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                          [#############################] 100%
(1/1) checking package integrity                        [#############################] 100%
(1/1) loading package files                             [#############################] 100%
(1/1) checking for file conflicts                       [# ############################] 100%
(1/1) checking available disk space                     [#############################] 100%
(1/1) reinstalling jre7-openjdk                         [#############################] 100%
sebastian@system $ ps3mediaserver 
/usr/bin/ps3mediaserver: line 54: /usr/lib/jvm/java-7-openjdk/jre/bin/java: No such file or directory

There is a symlink to /usr/lib/jvm/java-7-openjdk/jre/bin/java but the file issn't there:

sebastian@system /usr/lib/jvm/java-7-openjdk/jre/bin $ ls -lsa
total 16
4 drwxr-xr-x 2 root root 4096  9. Jul 18:58 .
4 drwxr-xr-x 4 root root 4096  9. Jul 18:47 ..
8 -rwxr-xr-x 1 root root 5440  8. Jul 21:41 policytool

What can i do now?

Last edited by b4st1 (2013-07-10 14:11:21)

Offline

#2 2013-07-09 17:24:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: [SOLVED] Java - No such file or directory

Moving to AUR issues. 

What AUR package did you install:  ps3mediaserver, or ps3mediaserver-git ?? It appears that ps3mediaserver is now gone and has been replaced by ps3mediaserver-git.  The last comments show the git server was down on the 4th.  You might try it now.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2013-07-09 17:27:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Java - No such file or directory

$ pkgfile /usr/lib/jvm/java-7-openjdk/jre/bin/java
extra/jre7-openjdk-headless

Do you have jre7-openjdk-headless installed? It is a dependency for jre7-openjdk so I don't know why you don't have this file, try reinstalling jre7-openjdk-headless.

Last edited by karol (2013-07-09 17:29:04)

Offline

#4 2013-07-10 08:51:57

b4st1
Member
Registered: 2013-07-09
Posts: 9

Re: [SOLVED] Java - No such file or directory

I don't thinks its an AUR problem. The file java is missing and thats affects all java applications. I tried to reinstall jre7-openjdk-headless:

sebastian@system $ sudo pacman -Syu jre7-openjdk-headless
[sudo] password for sebastian: 
:: Synchronizing package databases...
 core is up to date
 extra                                                    1437,7 KiB  4,53M/s 00:00 [################################################] 100%
 community                                                1981,1 KiB  2,85M/s 00:01 [################################################] 100%
 multilib is up to date
warning: jre7-openjdk-headless-7.u40_2.4.1-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Packages (1): jre7-openjdk-headless-7.u40_2.4.1-1

Total Installed Size:   76,40 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                      [################################################] 100%
(1/1) checking package integrity                                                    [################################################] 100%
error: jre7-openjdk-headless: signature from "Guillaume ALAUX <guillaume@archlinux.org>" is invalid
:: File /var/cache/pacman/pkg/jre7-openjdk-headless-7.u40_2.4.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
sebastian@system :( $ sudo pacman -Syu jre7-openjdk-headless
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community                                                1981,2 KiB  5,33M/s 00:00 [################################################] 100%
 multilib is up to date
warning: jre7-openjdk-headless-7.u40_2.4.1-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Packages (1): jre7-openjdk-headless-7.u40_2.4.1-1

Total Download Size:    23,37 MiB
Total Installed Size:   76,40 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 jre7-openjdk-headless-7.u40_2.4.1-1-x86_64                 41,6 MiB   323K/s 02:12 [################################################] 100%
(1/1) checking keys in keyring                                                      [################################################] 100%
(1/1) checking package integrity                                                    [################################################] 100%
(1/1) loading package files                                                         [################################################] 100%
(1/1) checking for file conflicts                                                   [################################################] 100%
error: failed to commit transaction (conflicting files)
jre7-openjdk-headless: /usr/bin/java exists in filesystem
jre7-openjdk-headless: /usr/bin/keytool exists in filesystem
jre7-openjdk-headless: /usr/bin/orbd exists in filesystem
jre7-openjdk-headless: /usr/bin/pack200 exists in filesystem
jre7-openjdk-headless: /usr/bin/rmid exists in filesystem
jre7-openjdk-headless: /usr/bin/rmiregistry exists in filesystem
jre7-openjdk-headless: /usr/bin/servertool exists in filesystem
jre7-openjdk-headless: /usr/bin/tnameserv exists in filesystem
jre7-openjdk-headless: /usr/bin/unpack200 exists in filesystem
jre7-openjdk-headless: /usr/lib/jvm/java-7-openjdk/jre/lib/charsets.jar exists in filesystem
jre7-openjdk-headless: /usr/lib/jvm/java-7-openjdk/jre/lib/classlist exists in filesystem
jre7-openjdk-headless: /usr/lib/jvm/java-7-openjdk/jre/lib/currency.data exists in filesystem
jre7-openjdk-headless: /usr/lib/jvm/java-7-openjdk/jre/lib/jce.jar exists in filesystem
jre7-openjdk-headless: /usr/lib/jvm/java-7-openjdk/jre/lib/jvm.hprof.txt exists in filesystem
jre7-openjdk-headless: /usr/lib/jvm/java-7-openjdk/jre/lib/management-agent.jar exists in filesystem
jre7-openjdk-headless: /usr/lib/jvm/java-7-openjdk/jre/lib/rt.jar exists in filesystem
jre7-openjdk-headless: /usr/share/licenses/java7-openjdk/ASSEMBLY_EXCEPTION exists in filesystem
jre7-openjdk-headless: /usr/share/licenses/java7-openjdk/LICENSE exists in filesystem
jre7-openjdk-headless: /usr/share/licenses/java7-openjdk/THIRD_PARTY_README exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/java.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/keytool.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/orbd.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/pack200.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/rmid.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/rmiregistry.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/servertool.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/tnameserv.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/ja/man1/unpack200.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/java.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/keytool.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/orbd.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/pack200.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/rmid.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/rmiregistry.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/servertool.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/tnameserv.1.gz exists in filesystem
jre7-openjdk-headless: /usr/share/man/man1/unpack200.1.gz exists in filesystem
Errors occurred, no packages were upgraded.

after checking every file with pacman -Qo i removed them.

This Post helped me to solve the Problem: https://bbs.archlinux.org/viewtopic.php?id=56373

Big thanks to karol for the pkgfile tip!

Last edited by b4st1 (2013-07-10 08:53:00)

Offline

#5 2013-07-10 13:08:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Java - No such file or directory

Did you successfully reinstall  jre7-openjdk-headless? Did it fix your java issue?

Offline

#6 2013-07-10 13:35:16

b4st1
Member
Registered: 2013-07-09
Posts: 9

Re: [SOLVED] Java - No such file or directory

Yes after removing all files that already existed in the filesystem I was able to reinstall  jre7-openjdk-headless. The file /usr/lib/jvm/java-7-openjdk/jre/bin/java and others in this folder exists and my java based applications work now.

I try to find out the reason for this problem with the conflicting files. I think it has something to do with my last pacman -Syu.

Offline

#7 2013-07-10 13:38:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Java - No such file or directory

Something went wrong with your local files database. I'm not sure if there's a way to find out what exactly has happened, was it a disk error or something else.
I think you can mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309


BTW, the pkgfile tip comes from the wiki: https://wiki.archlinux.org/index.php/FA … ge_is_X.3F

Offline

#8 2013-07-10 14:14:43

b4st1
Member
Registered: 2013-07-09
Posts: 9

Re: [SOLVED] Java - No such file or directory

Marked as solved. Thank you again! smile

Offline

Board footer

Powered by FluxBB