当我尝试安装葡萄酒时,会发生这样的情况:
sudo apt-get install wine
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wine is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'wine' has no installation candidate这对我来说毫无意义,因为我正在运行Ubuntu15.04 Vivid,并且在packages.ubuntu.com上看到了它的响亮和清晰。
etc/apt/sources.list的内容如下:
deb http://ports.ubuntu.com/ vivid main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ vivid main restricted multiverse
deb http://ports.ubuntu.com/ vivid-updates main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ vivid-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ vivid-security main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ vivid-security main restricted universe multiverse
deb http://ports.ubuntu.com/ vivid-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ vivid main universe restricted multiverse发布于 2015-10-04 15:50:16
葡萄酒位于宇宙存储库中,默认情况下应该启用该存储库。检查它是否是通过软件和更新> Ubuntu软件>社区免费和开放源码软件(宇宙)。如果不是的话,在盒子上打勾。
然后运行sudo apt-get update,您就可以安装红酒了。
或者,也有一个PPA的最新不稳定版本。要安装它,请执行以下命令:
sudo add-apt-repository ppa:ubuntu-wine/ppa然后再运行sudo apt-get update。
做完这两件事后,只需执行sudo apt-get install wine来安装红酒。
https://askubuntu.com/questions/681473
复制相似问题