archlinux更新后无法执行java

archlinux更新后无法执行java

我已经通过更新了 raspberry pi b+ arch linux pacman -Syyu,现在由于以下错误,我无法再运行 java:

[xxxx@pi ~]# java
-bash: /usr/bin/java: cannot execute binary file: Exec format error

这是archlinux-java status命令输出:

[xxx@pi ~]# archlinux-java status
Available Java environments:
  java-7-openjdk (default)

这是java执行文件类型:

[xxxx@pi ~]# file /usr/lib/jvm/default/jre/bin/java
/usr/lib/jvm/default/jre/bin/java: data

以下是 pacman 日志文件中的一些数据: [root@octopustest ~]# tail -n30 /var/log/pacman.log

[2014-12-17 05:54] [PACMAN] Running 'pacman -Syyu --debug'
[2014-12-17 05:54] [PACMAN] synchronizing package lists
[2014-12-17 05:54] [PACMAN] starting full system upgrade
[2014-12-17 05:59] [PACMAN] Running 'pacman -Syyu'
[2014-12-17 05:59] [PACMAN] synchronizing package lists
[2014-12-17 05:59] [PACMAN] starting full system upgrade
[2014-12-17 12:09] [PACMAN] Running 'pacman -Sydd --asdeps java-runtime-common'
[2014-12-17 12:09] [PACMAN] synchronizing package lists
[2014-12-17 12:09] [PACMAN] reinstalled java-runtime-common (2-2)
[2014-12-17 12:09] [PACMAN] Running 'pacman -Syyu'
[2014-12-17 12:09] [PACMAN] synchronizing package lists
[2014-12-17 12:09] [PACMAN] starting full system upgrade
[2014-12-17 12:10] [PACMAN] Running 'pacman -S java-runtime-common'
[2014-12-17 12:10] [PACMAN] reinstalled java-runtime-common (2-2)
[2014-12-18 06:23] [PACMAN] Running 'pacman -Syyu'
[2014-12-18 06:23] [PACMAN] synchronizing package lists
[2014-12-18 06:23] [PACMAN] starting full system upgrade
[2014-12-18 06:24] [PACMAN] upgraded tdb (1.3.1-1 -> 1.3.2-1)
[2014-12-18 06:24] [PACMAN] upgraded ldb (1.1.17-1 -> 1.1.18-1)
[2014-12-18 08:49] [PACMAN] Running 'pacman -Syyu'
[2014-12-18 08:49] [PACMAN] synchronizing package lists
[2014-12-18 08:50] [PACMAN] starting full system upgrade
[2014-12-19 06:53] [PACMAN] Running 'pacman -Syyu'
[2014-12-19 06:53] [PACMAN] synchronizing package lists
[2014-12-19 06:54] [PACMAN] starting full system upgrade
[2014-12-19 07:05] [PACMAN] upgraded libsystemd (217-8 -> 218-1)
[2014-12-19 07:05] [PACMAN] upgraded mpfr (3.1.2.p10-1 -> 3.1.2.p11-1)
[2014-12-19 07:05] [PACMAN] upgraded systemd (217-8 -> 218-1)
[2014-12-19 07:05] [PACMAN] upgraded systemd-sysvcompat (217-8 -> 218-1)
[2014-12-19 07:05] [PACMAN] upgraded wget (1.16-2 -> 1.16.1-1)

答案1

我已经强制java重新安装过程,pacman -S --force java_package现在一切正常!

相关内容