无法在 ubuntu 12.04 lts 上运行 minecraft

无法在 ubuntu 12.04 lts 上运行 minecraft

我尝试在装有 ubuntu 12.04 lts 64 位的笔记本电脑上运行 minecraft。我有一台联想 ideapad p580,内存 7.7 GB,配有 Intel® Core™ i7-3520M CPU @ 2.90GHz × 4 处理器。在 ubuntu 系统概览的图形部分下,显示我未安装任何图形。我的电脑配有 nvidia geforce 显卡,但无法识别。当我启动 minecraft 时,我收到此崩溃报告。

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 24/06/13 7:23 PM
Description: Failed to start game

org.lwjgl.LWJGLException: Could not init GLX
    at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo(Native Method)
    at org.lwjgl.opengl.LinuxDisplayPeerInfo.<init>(LinuxDisplayPeerInfo.java:52)
    at org.lwjgl.opengl.LinuxDisplay.createPeerInfo(LinuxDisplay.java:684)
    at org.lwjgl.opengl.Display.create(Display.java:854)
    at org.lwjgl.opengl.Display.create(Display.java:784)
    at org.lwjgl.opengl.Display.create(Display.java:765)
    at net.minecraft.client.Minecraft.a(SourceFile:235)
    at avv.a(SourceFile:56)
    at net.minecraft.client.Minecraft.run(SourceFile:507)
    at java.lang.Thread.run(Thread.java:679)

该错误、其代码路径和所有已知细节的详细演练如下:

-- System Details --
Details:
    Minecraft Version: 1.5.2
    Operating System: Linux (amd64) version 3.5.0-34-generic
    Java Version: 1.6.0_27, Sun Microsystems Inc.
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
    Memory: 406175448 bytes (387 MB) / 514523136 bytes (490 MB) up to 1908932608 bytes (1820 MB)
    JVM Flags: 2 total; -Xmx2048M -Xms512M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Suspicious classes: No suspicious classes found.
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    LWJGL: 2.4.2
    OpenGL: ~~ERROR~~ NullPointerException: null
    Is Modded: Probably not. Jar signature remains and client brand is untouched.
    Type: Client (map_client.txt)
    Texture Pack: Default
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

我可以在不同版本的 Linux(例如 Fedora)上运行它。

答案1

我怀疑您的驱动程序可能已安装但未使用,请使用以下命令查看您的配置文件:

sudo nano /etc/X11/xorg.conf

如果您的数据不在那里,您可能需要添加此数据或类似数据来启用它。

Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

然后保存并在终端中输入:

sudo reboot

相关内容