

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 设置本地计算机对 Proton 进行故障排除
<a name="troubleshoot-compatibility-setup-local"></a>

 Proton 是一个兼容层，它允许 Windows 应用程序在 Linux 上运行。因此，你必须有一台 Ubuntu 机器来测试和排除故障。如果您没有本地 Ubuntu 计算机，则可以使用 Amazon 设置远程计算机。 EC2为此，请[设置远程机器](troubleshoot-compatibility-setup-remote.md)改为按照中的步骤操作。

## 先决条件
<a name="troubleshoot-compatibility-setup-local-prerequisites"></a>
+ [Ubuntu 22.04](https://releases.ubuntu.com/jammy/) LTS。有关安装说明，你可以使用 Ubuntu 的[安装 U](https://ubuntu.com/tutorials/install-ubuntu-desktop) buntu 桌面教程。
+ 英伟达显卡

## 安装 GPU 驱动程序
<a name="troubleshoot-compatibility-setup-local-install-gpu-drivers"></a>

 安装最新的 GPU 驱动程序可以防止应用程序性能不佳和崩溃。

 **检查您的系统使用的 GPU 驱动程序** 

1.  在终端中运行以下命令：

   ```
   lshw -C display | grep driver
   ```

1.  如果安装了正确的驱动程序，您应该会看到以下输出或类似的输出，其中*<gpu>*是 NVID `nvidia` IA：`configuration: driver=<gpu> latency=0`

**安装最新的 NVIDIA GPU 驱动程序**

按照 [NVIDIA 驱动程序安装](https://documentation.ubuntu.com/server/how-to/graphics/install-nvidia-drivers/)中的说明进行操作。

## 验证 GPU 驱动程序
<a name="troubleshoot-compatibility-setup-local-verify-gpu-drivers"></a>

 确认 GPU 驱动程序已安装且运行正常。验证这一点的一种方法是在终端中运行 [vkcube](https://github.com/krh/vkcube) 应用程序。

1.  使用以下命令安装 `vulkan-tools` apt 软件包。

   ```
   sudo apt install -y vulkan-tools
   ```

1.  运行 `vkcube`。

1.  检查输出。
   +  如果您的系统正确使用了正确的 GPU，您将看到类似于以下内容的输出，其中包含您的 GPU 名称：`Selected GPU 0: AMD Radeon Pro V520 (RADV NAVI12), type: 2`
   +  如果您的应用程序能够正确使用 GPU，则可能会看到类似于以下内容的不同输出：`Selected GPU 0: llvmpipe (LLVM 15.0.7, 256 bits), type: 4`

      在这种情况下，请检查 GPU 驱动程序并在需要时重新安装。

## 后续步骤
<a name="troubleshoot-compatibility-setup-local-next-step"></a>

 当你的本地 Ubuntu 机器准备就绪后，下一步就是设置 Proton。有关说明，请参阅[在 Proton 上进行故障排除](troubleshoot-compatibility-wp-proton.md)。