不久前，发现 MC 服务器居然不能输入指令关闭服务器，在启动过程中有报错。
java.io.IOException: Resource temporarily unavailable
查询到问题的原因是不久前升级的 Ubuntu 内核导致，附上原文：
This is a message to let you know that Ubuntu has recently pushed what appears to be a bad kernel update to Ubuntu 18.04 users.
If you are using Ubuntu 18.04, please note that the following kernel appears to have issues handling console input:
4.15.0-44-generic #47-Ubuntu SMP Mon Jan 14 11:26:59 UTC 2019
Older (e.g. 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 ) kernels are not affected.
If you are using this kernel and have a message along the lines of “java.io.IOException: Resource temporarily unavailable”, this is the reason.
We are still investigating the exact cause / reason for this.
If you are affected by this issue there are a number of workarounds available (you only need to use one).
- Spigot / BungeeCord: Add -Djline.terminal=jline.UnsupportedTerminal to your Java arguments
- Spigot: Add –nojline to your Spigot arguments
- Reboot your server and select 4.15.0-43, or any other non broken Linux kernel.
- Install a non broken kernel: apt install linux-image-4.15.0-43-generic, remove the broken one: apt remove linux-image-4.15.0-44-generic, and reboot.
Please direct any queries to the 1.13.2 discussion thread, or general forums:
EDIT: Please see the below post for updates.