更新 steam deck 后,我的游戏或命令行中不再找到 Java

更新 steam deck 后,我的游戏或命令行中不再找到 Java

当我更新我的 Steam 平台 Prism Minecraft 启动器时,不再找到 java 安装。

我使用了命令java --version并返回bash: java: command not found

看到 Java 一定因为更新而被卸载了,我决定重新安装 Java sudo pacman -S jre17-openjdk jre8-openjdk,然后重新安装

warning: jre17-openjdk-17.0.5.u1-1 is up to date -- reinstalling
warning: jre8-openjdk-8.345.u01-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) jre17-openjdk-17.0.5.u1-1  jre8-openjdk-8.345.u01-1

Total Installed Size:  0.90 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                                                [#######################################################] 100%
(2/2) checking package integrity                                                              [#######################################################] 100%
(2/2) loading package files                                                                   [#######################################################] 100%
(2/2) checking for file conflicts                                                             [#######################################################] 100%
(2/2) checking available disk space                                                           [#######################################################] 100%
warning: could not get file information for usr/lib/jvm/
warning: could not get file information for usr/lib/jvm/java-17-openjdk/
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libawt_xawt.debuginfo
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libawt_xawt.so
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libjawt.debuginfo
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libjawt.so
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libjsound.debuginfo
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libjsound.so
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libsplashscreen.debuginfo
warning: could not get file information for usr/lib/jvm/java-17-openjdk/lib/libsplashscreen.so
warning: could not get file information for usr/share/licenses/jre17-openjdk
warning: could not get file information for usr/lib/jvm/
warning: could not get file information for usr/lib/jvm/java-8-openjdk/
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/bin/
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/bin/policytool
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/lib/
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/lib/amd64/
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libjsound.so
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libjsoundalsa.so
warning: could not get file information for usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libsplashscreen.so
warning: could not get file information for usr/share/licenses/java8-openjdk/
warning: could not get file information for usr/share/licenses/jre8-openjdk
warning: could not get file information for usr/share/man/
warning: could not get file information for usr/share/man/ja/
warning: could not get file information for usr/share/man/ja/man1/
warning: could not get file information for usr/share/man/ja/man1/policytool-openjdk8.1.gz
warning: could not get file information for usr/share/man/man1/
warning: could not get file information for usr/share/man/man1/policytool-openjdk8.1.gz
:: Processing package changes...
error: cannot remove file '/usr/': Read-only file system
(1/2) reinstalling jre17-openjdk                                                              [#######################################################] 100%
warning: warning given when extracting /usr/lib/jvm/ (Can't create '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/ (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/ (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libawt_xawt.debuginfo (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libawt_xawt.so (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libjawt.debuginfo (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libjawt.so (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libjsound.debuginfo (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libjsound.so (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libsplashscreen.debuginfo (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-17-openjdk/lib/libsplashscreen.so (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/share/licenses/jre17-openjdk (Can't create '/usr/share/licenses/jre17-openjdk')
/tmp/alpm_JkUPEu/.INSTALL: line 5: /usr/bin/archlinux-java: No such file or directory
/tmp/alpm_JkUPEu/.INSTALL: line 33: /usr/bin/archlinux-java: No such file or directory
error: command failed to execute correctly
error: cannot remove file '/usr/': Read-only file system
(2/2) reinstalling jre8-openjdk                                                               [#######################################################] 100%
warning: warning given when extracting /usr/lib/jvm/ (Can't create '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/ (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/ (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/bin/ (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/bin/policytool (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/lib/ (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/ (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libjsound.so (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libjsoundalsa.so (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libsplashscreen.so (Failed to create dir '/usr/lib/jvm')
warning: warning given when extracting /usr/share/licenses/java8-openjdk/ (Can't create '/usr/share/licenses/java8-openjdk')
warning: warning given when extracting /usr/share/licenses/jre8-openjdk (Can't create '/usr/share/licenses/jre8-openjdk')
warning: warning given when extracting /usr/share/man/ (Can't create '/usr/share/man')
warning: warning given when extracting /usr/share/man/ja/ (Failed to create dir '/usr/share/man')
warning: warning given when extracting /usr/share/man/ja/man1/ (Failed to create dir '/usr/share/man')
warning: warning given when extracting /usr/share/man/ja/man1/policytool-openjdk8.1.gz (Failed to create dir '/usr/share/man')
warning: warning given when extracting /usr/share/man/man1/ (Failed to create dir '/usr/share/man')
warning: warning given when extracting /usr/share/man/man1/policytool-openjdk8.1.gz (Failed to create dir '/usr/share/man')
/tmp/alpm_PZmAp8/.INSTALL: line 5: /usr/bin/archlinux-java: No such file or directory
/tmp/alpm_PZmAp8/.INSTALL: line 33: /usr/bin/archlinux-java: No such file or directory
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
touch: setting times of '/usr': Read-only file system
error: command failed to execute correctly

“警告:jre17-openjdk-17.0.5.u1-1 是最新的 - 正在重新安装”似乎表明 Java 仍处于安装状态,但我尝试过的所有方法都找不到它。我需要找到它,这样我才能在 Prism 启动器中放置它的路径。这里有很多事情要做。任何帮助对于 Linux 新手来说都是值得感谢的。

相关内容