I have played with Minecraft and the launcher has worked before but every time I try, I get a launcher log output given by:
[17:25:34 ERROR]: java.io.IOException: Stream closed
[17:25:34 ERROR]: Game ended with bad state (exit code 1)
[17:25:34 INFO]: Ignoring visibility rule and showing launcher due to a game crash
[17:25:34 INFO]: Deleting /home/porter/.minecraft/versions/1.12.2/1.12.2-natives-551255038095
The game output also says:
OpenJDK 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Error: Could not find or load main class net.minecraft.client.main.Main