从命令行安装了 wine,但当我尝试检查版本时,它说未找到命令“wine”。我下一步该怎么做?
xx@xx-xx:~$ sudo apt install wine-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
wine-stable is already the newest version (6.0.2~bionic-1). 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
xx@xx-xx:~$ wine --version
Command 'wine' not found, but can be installed with:
sudo apt install wine-development
sudo apt install wine-stable
xx@xx-xx:~$ winecfg
winecfg: command not found
答案1
这看起来像是 Wine 没有安装或者没有设置为 Path
可以这样修复
#1 卸载 Wine
对于稳定版本:
sudo apt-get remove wine-stable
对于开发版本:
sudo apt-get remove wine-development
对于 ubuntu 18.04 你需要设置
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' then run "sudo apt update"
#2 然后重新安装
对于稳定版本:
sudo apt-get install winehq-stable
对于开发版本:
sudo apt-get install winehq-devel
不要忘记将 wine-stable 升级为 winehq-stable,现在 wine 已经是 winehq 了