一切正常,直到我重启装有 Ubuntu 16.04 的 PC。我注意到关机需要更长的时间,并且关机期间的文本略有不同。每次重启后,我运行 jar 程序时都会收到此错误:
[10:13:23] [Server console handler/ERROR]: Exception handling console input
java.io.IOException: Resource temporarily unavailable
at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_201]
at java.io.FileInputStream.read(FileInputStream.java:255) ~[?:1.8.0_201]
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) ~[?:1.8.0_201]
at java.io.BufferedInputStream.read(BufferedInputStream.java:265) ~[?:1.8.0_201]
at org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
at org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:137) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
at org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:246) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
at org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
at org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2349) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
at net.minecraft.server.v1_12_R1.DedicatedServer$2.run(DedicatedServer.java:85) [spigot-1.12.2.jar:git-Spigot-642f6d2-6103339]
程序运行正常,但不响应控制台输入。我尝试再次重新加载我的电脑,但问题仍然存在。如何解决这个问题?
答案1
看来这个问题的原因是内核损坏。我尝试了一种解决方法(在 start.sh 中的参数中添加 --nojline),并且成功了。 https://www.spigotmc.org/threads/ubuntu-18-04-bad-kernel-update.357871/