How do I add a repository from behind a proxy?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I've a problem at the office. We're behind a proxy (which is set and applied at ubuntu proxy settings) and when I try to add a repository from terminal, I get:
Error reading --some url here--: urlopen error [Errno 113] No route to host
I've tried with
- Launchpad-getkeys script. I get this (image)
I've tried with another "hack", without luck
- Press Alt-F2 and type
gksu gedit /usr/lib/python2.6/dist-packages/softwareproperties/ppa.py
- Find line 88, change
keyserver.ubuntu.com
tohkp://keyserver.ubuntu.com:80
- Save, close and reboot.
- Press Alt-F2 and type
Does anyone know if I could solve this problem in any way? Thanks
command-line proxy gnupg add-apt-repository
add a comment |
I've a problem at the office. We're behind a proxy (which is set and applied at ubuntu proxy settings) and when I try to add a repository from terminal, I get:
Error reading --some url here--: urlopen error [Errno 113] No route to host
I've tried with
- Launchpad-getkeys script. I get this (image)
I've tried with another "hack", without luck
- Press Alt-F2 and type
gksu gedit /usr/lib/python2.6/dist-packages/softwareproperties/ppa.py
- Find line 88, change
keyserver.ubuntu.com
tohkp://keyserver.ubuntu.com:80
- Save, close and reboot.
- Press Alt-F2 and type
Does anyone know if I could solve this problem in any way? Thanks
command-line proxy gnupg add-apt-repository
add a comment |
I've a problem at the office. We're behind a proxy (which is set and applied at ubuntu proxy settings) and when I try to add a repository from terminal, I get:
Error reading --some url here--: urlopen error [Errno 113] No route to host
I've tried with
- Launchpad-getkeys script. I get this (image)
I've tried with another "hack", without luck
- Press Alt-F2 and type
gksu gedit /usr/lib/python2.6/dist-packages/softwareproperties/ppa.py
- Find line 88, change
keyserver.ubuntu.com
tohkp://keyserver.ubuntu.com:80
- Save, close and reboot.
- Press Alt-F2 and type
Does anyone know if I could solve this problem in any way? Thanks
command-line proxy gnupg add-apt-repository
I've a problem at the office. We're behind a proxy (which is set and applied at ubuntu proxy settings) and when I try to add a repository from terminal, I get:
Error reading --some url here--: urlopen error [Errno 113] No route to host
I've tried with
- Launchpad-getkeys script. I get this (image)
I've tried with another "hack", without luck
- Press Alt-F2 and type
gksu gedit /usr/lib/python2.6/dist-packages/softwareproperties/ppa.py
- Find line 88, change
keyserver.ubuntu.com
tohkp://keyserver.ubuntu.com:80
- Save, close and reboot.
- Press Alt-F2 and type
Does anyone know if I could solve this problem in any way? Thanks
command-line proxy gnupg add-apt-repository
command-line proxy gnupg add-apt-repository
edited Jan 3 '12 at 17:16
Jorge Castro
37.2k107422617
37.2k107422617
asked Jan 25 '11 at 14:00
EnriqueEnrique
2071213
2071213
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Your issue is described on this following bug report, It seems that the proper fix is described at commment #11:
- Set the variable
https_proxy
to your proxy
Edit
/etc/sudoers
or the correct file in/etc/sudoers.d/
so it contains:
Defaults env_keep = https_proxy
Joao, I've added variables to /home/myuser/.bashrc, then added the env_keep stuff to /etc/sudoers, and now when I execute this command "sudo env | grep proxy" I get the variables showing. When I add a repository or execute the launchpad-getkeys script, I don't get errors anymore. THANKS!!
– Enrique
Jan 26 '11 at 11:56
add a comment |
The script you've mentioned - launchpad-getkeys now has proxy support.
Although I solved the question with the /etc/sudoers, I also read the launchpad-getkeys news in the rss feed, and now with -p ip:port this is an awesome feature! thanks Alin !!
– Enrique
Feb 22 '11 at 17:00
add a comment |
Use the -HE
option of sudo
:
sudo -HE apt-key [...]
It will keep your proxy settings
add a comment |
You have to enter the root account and add the repository from there:
sudo su
add-apt-repository ppa:xxxyyy/ppa
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f23211%2fhow-do-i-add-a-repository-from-behind-a-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your issue is described on this following bug report, It seems that the proper fix is described at commment #11:
- Set the variable
https_proxy
to your proxy
Edit
/etc/sudoers
or the correct file in/etc/sudoers.d/
so it contains:
Defaults env_keep = https_proxy
Joao, I've added variables to /home/myuser/.bashrc, then added the env_keep stuff to /etc/sudoers, and now when I execute this command "sudo env | grep proxy" I get the variables showing. When I add a repository or execute the launchpad-getkeys script, I don't get errors anymore. THANKS!!
– Enrique
Jan 26 '11 at 11:56
add a comment |
Your issue is described on this following bug report, It seems that the proper fix is described at commment #11:
- Set the variable
https_proxy
to your proxy
Edit
/etc/sudoers
or the correct file in/etc/sudoers.d/
so it contains:
Defaults env_keep = https_proxy
Joao, I've added variables to /home/myuser/.bashrc, then added the env_keep stuff to /etc/sudoers, and now when I execute this command "sudo env | grep proxy" I get the variables showing. When I add a repository or execute the launchpad-getkeys script, I don't get errors anymore. THANKS!!
– Enrique
Jan 26 '11 at 11:56
add a comment |
Your issue is described on this following bug report, It seems that the proper fix is described at commment #11:
- Set the variable
https_proxy
to your proxy
Edit
/etc/sudoers
or the correct file in/etc/sudoers.d/
so it contains:
Defaults env_keep = https_proxy
Your issue is described on this following bug report, It seems that the proper fix is described at commment #11:
- Set the variable
https_proxy
to your proxy
Edit
/etc/sudoers
or the correct file in/etc/sudoers.d/
so it contains:
Defaults env_keep = https_proxy
edited Jul 10 '15 at 17:07
Eric Carvalho
42.4k17117148
42.4k17117148
answered Jan 25 '11 at 18:30
João PintoJoão Pinto
14.8k34660
14.8k34660
Joao, I've added variables to /home/myuser/.bashrc, then added the env_keep stuff to /etc/sudoers, and now when I execute this command "sudo env | grep proxy" I get the variables showing. When I add a repository or execute the launchpad-getkeys script, I don't get errors anymore. THANKS!!
– Enrique
Jan 26 '11 at 11:56
add a comment |
Joao, I've added variables to /home/myuser/.bashrc, then added the env_keep stuff to /etc/sudoers, and now when I execute this command "sudo env | grep proxy" I get the variables showing. When I add a repository or execute the launchpad-getkeys script, I don't get errors anymore. THANKS!!
– Enrique
Jan 26 '11 at 11:56
Joao, I've added variables to /home/myuser/.bashrc, then added the env_keep stuff to /etc/sudoers, and now when I execute this command "sudo env | grep proxy" I get the variables showing. When I add a repository or execute the launchpad-getkeys script, I don't get errors anymore. THANKS!!
– Enrique
Jan 26 '11 at 11:56
Joao, I've added variables to /home/myuser/.bashrc, then added the env_keep stuff to /etc/sudoers, and now when I execute this command "sudo env | grep proxy" I get the variables showing. When I add a repository or execute the launchpad-getkeys script, I don't get errors anymore. THANKS!!
– Enrique
Jan 26 '11 at 11:56
add a comment |
The script you've mentioned - launchpad-getkeys now has proxy support.
Although I solved the question with the /etc/sudoers, I also read the launchpad-getkeys news in the rss feed, and now with -p ip:port this is an awesome feature! thanks Alin !!
– Enrique
Feb 22 '11 at 17:00
add a comment |
The script you've mentioned - launchpad-getkeys now has proxy support.
Although I solved the question with the /etc/sudoers, I also read the launchpad-getkeys news in the rss feed, and now with -p ip:port this is an awesome feature! thanks Alin !!
– Enrique
Feb 22 '11 at 17:00
add a comment |
The script you've mentioned - launchpad-getkeys now has proxy support.
The script you've mentioned - launchpad-getkeys now has proxy support.
answered Feb 21 '11 at 19:18
Alin AndreiAlin Andrei
7,02433554
7,02433554
Although I solved the question with the /etc/sudoers, I also read the launchpad-getkeys news in the rss feed, and now with -p ip:port this is an awesome feature! thanks Alin !!
– Enrique
Feb 22 '11 at 17:00
add a comment |
Although I solved the question with the /etc/sudoers, I also read the launchpad-getkeys news in the rss feed, and now with -p ip:port this is an awesome feature! thanks Alin !!
– Enrique
Feb 22 '11 at 17:00
Although I solved the question with the /etc/sudoers, I also read the launchpad-getkeys news in the rss feed, and now with -p ip:port this is an awesome feature! thanks Alin !!
– Enrique
Feb 22 '11 at 17:00
Although I solved the question with the /etc/sudoers, I also read the launchpad-getkeys news in the rss feed, and now with -p ip:port this is an awesome feature! thanks Alin !!
– Enrique
Feb 22 '11 at 17:00
add a comment |
Use the -HE
option of sudo
:
sudo -HE apt-key [...]
It will keep your proxy settings
add a comment |
Use the -HE
option of sudo
:
sudo -HE apt-key [...]
It will keep your proxy settings
add a comment |
Use the -HE
option of sudo
:
sudo -HE apt-key [...]
It will keep your proxy settings
Use the -HE
option of sudo
:
sudo -HE apt-key [...]
It will keep your proxy settings
answered May 31 '17 at 14:04
user4780495user4780495
24125
24125
add a comment |
add a comment |
You have to enter the root account and add the repository from there:
sudo su
add-apt-repository ppa:xxxyyy/ppa
add a comment |
You have to enter the root account and add the repository from there:
sudo su
add-apt-repository ppa:xxxyyy/ppa
add a comment |
You have to enter the root account and add the repository from there:
sudo su
add-apt-repository ppa:xxxyyy/ppa
You have to enter the root account and add the repository from there:
sudo su
add-apt-repository ppa:xxxyyy/ppa
edited Jun 5 '14 at 6:49
Luís de Sousa
9,2451752104
9,2451752104
answered Jun 5 '14 at 6:28
waweruwaweru
181117
181117
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f23211%2fhow-do-i-add-a-repository-from-behind-a-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown