How to enable add-apt-repository command on Xubuntu
By default, Xubuntu does not supports add-apt-repository command. If you try to use this command, you will get such errors like this one below:
xubuntu@xubuntu:~$ sudo add-apt-repository ppa:x2go/stable
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in get_ppa_info_from_lp
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.2/urllib/request.py", line 139, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.2/urllib/request.py", line 370, in open
response = self._open(req, data)
File "/usr/lib/python3.2/urllib/request.py", line 388, in _open
'_open', req)
File "/usr/lib/python3.2/urllib/request.py", line 348, in _call_chain
result = func(*args)
You can solve this problem by installing a package called python-software-properties. Execute this command on Terminal
sudo apt-get install python-software-properties
xubuntu@xubuntu:~$ sudo apt-get install python-software-propertiesNow re execute the add-apt-repository
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
python-software-properties
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
Need to get 19.2 kB of archives.
After this operation, 130 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ quantal/universe python-software-properties all 0.92.9 [19.2 kB]
Fetched 19.2 kB in 4s (3965 B/s)
Selecting previously unselected package python-software-properties.
(Reading database ... 132342 files and directories currently installed.)
Unpacking python-software-properties (from .../python-software-properties_0.92.9_all.deb) ...
Setting up python-software-properties (0.92.9) ...
sudo apt-add-repository ppa:x2go/stable
xubuntu@xubuntu:~$ sudo add-apt-repository ppa:x2go/stableThanks I hope this useful.
You are about to add the following PPA to your system:
Quick howto to turn your machine into an X2Go server:
sudo apt-add-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver
sudo apt-get install x2golxdebindings # if you use LXDE/lubuntu
Quick howto to install the x2goclient:
sudo apt-add-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goclient
Enjoy!
More info: https://launchpad.net/~x2go/+archive/stable
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmp0wufh9/secring.gpg' created
gpg: keyring `/tmp/tmp0wufh9/pubring.gpg' created
gpg: requesting key 0A53F9FD from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp0wufh9/trustdb.gpg: trustdb created
gpg: key 0A53F9FD: public key "Launchpad PPA for x2go" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
1 comments:
Unfortunatelly this didn't work in a liveDVD of Xubuntu.
Not sure if it works in a regular installation.