{"id":16,"date":"2007-12-27T16:50:54","date_gmt":"2007-12-27T14:50:54","guid":{"rendered":"http:\/\/pieter.wigleven.com\/it\/archives\/16"},"modified":"2007-12-27T16:52:24","modified_gmt":"2007-12-27T14:52:24","slug":"use-apt-get-with-proxy-with-authentication-in-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/pieter.wigleven.com\/it\/archives\/16","title":{"rendered":"Use APT-GET with proxy (with authentication) in Ubuntu Linux"},"content":{"rendered":"<p>When using Ubunty Gutsy, i couldn&#8217;t download anything because i have to use a proxy with authentication at a customers site. Here&#8217;s how to solve this issue:<\/p>\n<p>1) Open a console<br \/>\n2) Type: <em>sudo nano \/etc\/apt\/apt.conf.d\/proxy<br \/>\n<\/em>3) Enter <strong>a single<\/strong> line like this in the editor:<\/p>\n<blockquote><p>Acquire::http::Proxy &#8220;<a href=\"http:\/\/username:password@proxyiporhostname:port\">http:\/\/username:password@proxyiporhostname:port<\/a>&#8220;;<\/p><\/blockquote>\n<p>4) Save the file (CTRL-X follow by Y) and reboot the system. Im sure there&#8217;s a better and faster way then restarting your system but i simply couldn&#8217;t bother to look it up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using Ubunty Gutsy, i couldn&#8217;t download anything because i have to use a proxy with authentication at a customers site. Here&#8217;s how to solve this issue: 1) Open a console 2) Type: sudo nano \/etc\/apt\/apt.conf.d\/proxy 3) Enter a single line like this in the editor: Acquire::http::Proxy &#8220;http:\/\/username:password@proxyiporhostname:port&#8220;; 4) Save the file (CTRL-X follow by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pieter.wigleven.com\/it\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}