Ubuntu – Can’t Add ppa:x2go/stable

ppax2go

I am trying to turn a fresh install of Ubuntu 14.04 into an X2go server.
I have followed the instructions here:
http://wiki.x2go.org/doku.php/wiki:repositories:ubuntu

I have taken these steps:

  1. su

  2. Add the line below to /etc/apt/sources.list

    deb http://us.archive.ubuntu.com/ubuntu trusty main universe
    
  3. add-apt-repository ppa:x2go/stable

I get this message:

cannot add ppa: ppa:x2go/stable
please check that the ppa name or format is correct

Best Answer

I would say a few things.

First, I need to caution you against using the command su -- it is a bad practice that can only cause problems. When you need administrative privileges, you should prefix your normal commands with sudo. If you really need a root prompt, you can use sudo -i.

Now I took a look at the x2go wiki page and they didn't intend for you to blindly add that line to the bottom of /etc/apt/sources.list. If you're not too familiar with how Ubuntu handles packaging, you should spend some time on it. Luckily, you don't really need to be doing any of this from the command line because Ubuntu provides a graphical way to ensure that you don't drop syntax errors in your sources.list or elsewhere.

In order to use the built-in tools for enabling or disabling certain repositories, try this link. This will save you from syntax errors and from messing with system-critical files inadvertently.

Secondly, as soon as you modify any of your ubuntu repositories, you should run:

$ sudo apt-get update

As this will refresh your package information. After you run that, you should run

$ sudo apt-get upgrade
$ sudo apt-get -f install
$ sudo apt-get clean
$ sudo apt-get autoclean

This will clean up your repository caches. Now try adding the PPA again, this time using sudo:

$ sudo add-apt-repository ppa:x2go/stable

If it still doesn't work, you'll need to re-run the command using the -m flag and show us the output:

$ sudo add-apt-repository -m ppa:x2go/stable

Hope this helps!

Related Question