在 WineHQ 网站上,我按照第一步输入此命令来启用 32 位架构sudo dpkg --add-architecture i386
,但出现了错误。
dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/multiarch:1: unknown option 'foreign-architecture'
答案1
打开终端并输入:
sudo add-apt-repository --remove 'deb https://dl.winehq.org/wine-builds
/ubuntu/ focal main'
sudo add-apt-repository universe
sudo apt update
sudo apt install -y wine32 wine64 wine-stable
其他建议与 wine-stable 一起安装的软件包有:dosbox playonlinux winbind wine-binfmt winetricks