无法在 Kubuntu 18.04 上安装 Minecraft

无法在 Kubuntu 18.04 上安装 Minecraft

我已经为这个 Java 问题困惑了大约 4 天。我最近升级到了 Kubuntu 18.04,并试图让 Minecraft 运行,但没有成功。以下是我的错误消息:

nathan@Corbit:~/Minecraft$ sudo java -jar Minecraft.jar                        
Bootstrap (v5)
Current time is May 10, 2018 7:05:05 AM
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '4.15.0-21-generic'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.8.0_171'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64'`

`Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 2/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 3/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 4/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 5/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 6/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 7/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 8/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 9/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 10/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Unable to download remote file. Check your internet connection/proxy settings.
FATAL ERROR: net.minecraft.bootstrap.FatalBootstrapError: Unable to download while being forced
        at net.minecraft.bootstrap.Bootstrap.execute(Bootstrap.java:95)
        at net.minecraft.bootstrap.Bootstrap.main(Bootstrap.java:381)

我尝试更新我的证书,验证端口 25565 是否打开,在 UFW 中为该端口创建一个例外(即使我已禁用它),使用了多个版本的 OPENjdk 和 Oracle,使用了几个不同的存档版本的 Minecraft.jar,尝试以 root 身份运行(如您所见),但我没有任何进展。

答案1

我也遇到了同样的问题,通过以下命令解决了:

sudo snap install minecraft

要启动 Minecraft,请运行以下命令:

minecraft

答案2

为了解决 kubuntu 18.04 中的问题,我做了:

sudo rm /etc/ssl/certs/java/cacerts

进而:

sudo update-ca-certificates -f

(不要用 运行 java sudo

相关内容