Search code examples
ubuntupharo

Can't install Pharo on Ubuntu14.10


I follow the instruction of this site to install it. But after update I just get not found

sudo apt-get update

...

Failed to fetch http://ppa.launchpad.net/pharo/stable/ubuntu/dists/utopic/main/binary-amd64/Packages 404 Not Found

So I try to download and run it directly.

./pharo

And just get this:

could not find module vm-display-X11

Am I doing something wrong?

Edit: A few weeks later, I can't open the pharo vm any more. The error message of package manager is:

You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: pharo-launcher : Depends: pharo-vm-core-i386 but it is not installable

And the command apt-get -f install just want to remove the pharo-launcher

The following packages will be REMOVED: pharo-launcher 0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded.

How to solve it?


Solution

  • Looks like the instructions are slightly out of whack. In particular, the latest Ubuntu release they have a stable build for is trusty. Maybe change the PPA to point to that instead? Or switch to unstable, which does exist for utopic.

    See https://launchpad.net/~pharo/+archive/ubuntu/stable or https://launchpad.net/~pharo/+archive/ubuntu/unstable (expand the collapsed section for details).

    In more detail, what apt-add-repository does is simply to add a file called something like pharo.list in /etc/apt/sources.list.d/ -- just edit this file to suit your needs (of course, you need sudo privileges to edit system files). For example, to use the latest stable version, change the file so it contains

    deb http://ppa.launchpad.net/pharo/stable/ubuntu trusty main 
    deb-src http://ppa.launchpad.net/pharo/stable/ubuntu trusty main 
    

    where previously it said utopic before main.

    To finish the change, you need to run apt-get update again, which will refresh the Apt databases against your configured sources (i.e. download the Packages file from each).

    Finally, if this is out of your depth, and you are running Ubuntu just for this, running Trusty instead of Utopic may be the simplest fix; but that entails installing an older version of Ubuntu.