我尝试安装 Wine,但是当我运行:
~$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
我得到:
LSB codename: 'bionic'.
This codename isn't currently supported.
Please check your LSB information with "lsb_release -a".
我已经尝试过(按顺序):
sudo apt-get install python3-software-properties
sudo apt-get install apt-file
sudo apt install python-software-properties
sudo apt-get update
sudo apt-get install --reinstall python-software-properties
sudo apt install --reinstall software-properties-common
(我遵循了如何在服务器上添加 PPA?)。当我搜索 add-apt-repository 时,我得到:
~$ apt-file search add-apt-repository
software-properties-common: /usr/bin/add-apt-repository
software-properties-common: /usr/share/man/man1/add-apt-repository.1.gz
我如何让 add-apt-repository 工作?
答案1
为了使 Wine 正常工作,您需要 32 位功能,并且由于您使用的是 18.04,因此您需要使用仿生的, 不是宇宙的,因此这些命令更合适:
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable