> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1000w123.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debian 上怎么安装 wine

> 在 Debian 上安装 Wine 可以让你运行 Windows 应用程序

在 Debian 上安装 Wine 可以让你运行 Windows 应用程序。以下是安装步骤：

1. **启用 32 位架构**：

   ```bash theme={null}
   sudo dpkg --add-architecture i386
   ```

2. **添加 WineHQ 仓库的 GPG 密钥**：

   ```bash theme={null}
   sudo mkdir -pm755 /etc/apt/keyrings
   sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
   ```

3. **添加 WineHQ 仓库**：

   ```bash theme={null}
   sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources
   ```

4. **更新包列表**：

   ```bash theme={null}
   sudo apt update
   ```

5. **安装 Wine**：

   ```bash theme={null}
   sudo apt install --install-recommends winehq-stable
   ```

6. **验证安装**：

   ```bash theme={null}
       wine --version
       winecfg
   ```
