can't install nova(Cactus) by PPA

Asked by janson

when we run:

sudo add-apt-repository ppa:nova-core/trunk

errors occurs as follows:

Error reading https://launchpad.net/api/1.0/~nova-core/+archive/trunk: <urlopen error [Errno -2] Name or service not known>

why ???

help

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Prince
Solved:
Last query:
Last reply:
Revision history for this message
Jay Pipes (jaypipes) said :
#1

You may have either hit Launchpad.net during some downtime (in which case, just retry the command), or possibly you are behind a proxy and that is causing the add-apt-repository command to fail?

Revision history for this message
janson (janson071) said :
#2

to Jay Pipes,
yes , I am using proxy to connect with internet .
Is it just because that ???

Revision history for this message
Best Dan Prince (dan-prince) said :
#3

Hi Janson,

Looks like there are some suggestions on this issue here:

  https://bugs.launchpad.net/software-properties/+bug/443404

Seems to be related to the fact that proxy settings aren't preserved when you run a command via sudo.

Revision history for this message
Dennis DeMarco (dennis-demarco) said :
#4

I had this issue too behind a proxy:

# sudo su -
# export http_proxy=http://PROXY-IP:80/
# export https_proxy=http://PROXY-IP:80/
# sed -i 's/"keyserver.ubuntu.com"/"hkp:\/\/keyserver.ubuntu.com:80"/' /usr/share/pyshared/softwareproperties/ppa.py

#add-apt-repository ppa:nova-core/release

did the trick for me

Revision history for this message
janson (janson071) said :
#5

Thanks Dan Prince, that solved my question.