2

When I try to install wine, this happens:

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

This does not make sense to me, as I am running Ubuntu 15.04 Vivid and have seen it loud and clear on packages.ubuntu.com.

The contents of etc/apt/sources.list are as follows:

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
7
  • Run sudo apt-get update and try again.
    – Pilot6
    Oct 4, 2015 at 15:33
  • 1
    You need to add the universe repository - help.ubuntu.com/community/Repositories/Ubuntu
    – Panther
    Oct 4, 2015 at 15:43
  • @bodhi.zazen It is always there by default. If update does not help, then it must be some internet problem, like proxy.
    – Pilot6
    Oct 4, 2015 at 15:52
  • @Pilot6 - Universe may be enabled by default, it can be disabled either at the time of installation or afterwards. if the package is no found it is usually due to a repository problem.
    – Panther
    Oct 4, 2015 at 16:40
  • @Pilot6 I have verified that it is not an internet problem. Oct 5, 2015 at 13:18

1 Answer 1

2

Wine is on the Universe repository, which should be enabled by default. Check if it is through Software & Updates > Ubuntu software > Community-mantained free and open-source software (universe). If it's not, tick the box.

Afterwards run sudo apt-get update and you can install wine.

Alternatively, there is also a PPA avaiable containg the latest unstable version. To install this, execute the following command:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Run sudo apt-get update again afterwards.

After doing either of these two just execute sudo apt-get install wineto install wine.

10
  • wine is not in partner.
    – Pilot6
    Oct 4, 2015 at 15:52
  • It is Package: wine (1:1.6.2-0ubuntu8) [universe] from the packages page.
    – Durandal
    Oct 4, 2015 at 15:54
  • So why do you recommend to enable "Canonical partners"? It is irrelevant.
    – Pilot6
    Oct 4, 2015 at 15:57
  • I just changed my answer to correctly reflect this.
    – Durandal
    Oct 4, 2015 at 16:00
  • Now it is good, but I suspect that the problem is somewhere else.
    – Pilot6
    Oct 4, 2015 at 16:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .