提问人: 提问时间:11/5/2023 最后编辑:Ramhound 更新时间:11/5/2023 访问量:62
更新 Steam Deck 后,我的游戏或命令行不再找到 Java
Java no longer found by my games or in command line after updating steam deck
问:
当我更新我的 Steam Deck 时,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 仍在安装,但我尝试过的任何东西都找不到它。我需要找到它,这样我就可以在棱镜发射器中放置一条通往它的路径。 这里发生了很多事情。任何帮助都将适用于 Linux 菜鸟。
答: 暂无答案
评论