Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 14172  / 2 Years ago, wed, february 2, 2022, 10:04:16

I have boxes running in a company but they have internet browsing and firewalls for security.



When I do apt-get update or install it fails. But I have a remote server which ip is only allowed to have access.



How can I tell apt-get to go to my cloud server and via the cloud server get the packages downloaded or updated?


More From » networking

 Answers
0

Do you have a proxy at your company?
If so, you can set the proxy before running the apt-get update logged in as root first:



export http_proxy=http://host:port
apt-get update


Using sudo:



sudo http_proxy=http://host:port apt-get update


If your proxy requires authentication, you can set it in the URL (beware that the password will be saved in history as plain text):



http://username:password@host:port

[#29354] Thursday, February 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
exceeeelh

Total Points: 21
Total Questions: 109
Total Answers: 120

Location: Marshall Islands
Member since Wed, Jan 5, 2022
2 Years ago
exceeeelh questions
Sun, Nov 20, 22, 17:08, 1 Year ago
Sat, Jan 1, 22, 08:04, 2 Years ago
Wed, May 12, 21, 05:11, 3 Years ago
;