Wednesday, July 10, 2013

Install Soap UI on Ubuntu

It should be as simple as this

sudo add-apt-repository ppa:upubuntu-com/web
sudo apt-get update
sudo apt-get install soapui

But since I'm behind a proxy "add-apt-repository" gives an error.

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 125, in 
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (7, "couldn't connect to host")

Check if proxy is configured as environment variable.

printenv | grep proxy

Both http_proxy and https_proxy should be there. If not add them.

export http_proxy=http://x.x.x.x:port
export https_proxy=http://x.x.x.x:port

Run sudo with the -E option so that environment variables get passed to the root account.

sudo -E add-apt-repository ppa:upubuntu-com/web

No comments:

Post a Comment