You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 23.04系统安装WineHQ的方法求助

Ubuntu 23.04系统安装WineHQ的方法求助

Hey there, sorry to hear you ran into trouble getting Wine set up on Ubuntu 23.04! Let me walk you through the step-by-step terminal method—this is the official, reliable approach that avoids the direct download pitfalls you might have hit on the WineHQ site:

First, if you tried installing Wine before and have leftover files, let's clean those up to avoid conflicts:

sudo apt remove --purge wine* && sudo apt autoremove -y && sudo apt clean

Now follow these steps carefully:

  • Update your system packages first (this prevents dependency mismatches later):
    sudo apt update && sudo apt upgrade -y
    
  • Install tools needed to add third-party repositories:
    sudo apt install software-properties-common wget -y
    
  • Import the WineHQ GPG key to verify package authenticity (this is often the missing step that causes download failures):
    wget -nc https://dl.winehq.org/wine-builds/winehq.key && sudo gpg --dearmor -o /usr/share/keyrings/winehq-archive-keyring.gpg
    
  • Add the official WineHQ repository for Ubuntu 23.04 (code name: Lunar Lobster):
    echo "deb [signed-by=/usr/share/keyrings/winehq-archive-keyring.gpg] https://dl.winehq.org/wine-builds/ubuntu/ lunar main" | sudo tee /etc/apt/sources.list.d/winehq-lunar.list
    
  • Refresh your package list again to include the WineHQ packages:
    sudo apt update
    
  • Install the stable version of Wine (recommended for most users—swap stable for devel or staging if you need cutting-edge features):
    sudo apt install --install-recommends winehq-stable -y
    

Once installation finishes, verify it worked by running:

wine --version

You should see the installed version number pop up. Also, run winecfg to set up the Wine environment—this will prompt you to install necessary Mono and Gecko components (just follow the on-screen prompts, they're essential for running Windows apps properly).

If you hit any specific errors during these steps (like GPG key warnings or missing packages), copy the exact error message and share it here—I’ll help you work through it!

备注:内容来源于stack exchange,提问作者GreaterDog6065

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 09:19:37