官网链接
具体操作
1.启用32位架构
sudo dpkg --add-architecture i386
2.添加Wine官方秘钥
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
3.进入存放wine 的apt 目录
cd /etc/apt/sources.list.d
4.创建新的wine配置文件
sudo touch winehq-jammy.sources
sudo gedit winehq-jammy.sources
5.写入新的wine配置文件
Types: deb
URIs: https://mirrors.tuna.tsinghua.edu.cn/wine-builds/ubuntu
Suites: jammy
Components: main
Architectures: amd64 i386
Signed-By: /etc/apt/keyrings/winehq-archive.key
其他版本预计修改 Suites 以及 sources 文件名
6.更新包索引,并且安装 wine 稳定版
sudo apt update
sudo apt install --install-recommends winehq-stable
7.解决wine中文字体乱码
下载字体
cp simsun.ttc ~/.wine/drive_c/windows/Fonts/
修复输入框问题
winetricks riched20