---
title: "ubuntu 12.10 proxy install package apt-get "
author: "夜鸣猪"
date: "2013-01-31T06:47:24Z"
tags: []
categories: ["操作系统"]
slug: "ubuntu-12-10-proxy-install-package-apt-get"
draft: false
lastmod: "2013-01-31T06:47:24Z"
id: 1780087
url: "https://hlee.iteye.com/blog/1780087"
---

```ruby

#/.bashrc
export http_proxy=http://username:password@proxy_server:proxy_port/

```



```ruby

#/etc/apt/apt.conf.d/30proxy
Acquire::http::Proxy "http://username:password@proxy_server:proxy_port/";

```



```ruby

sudo apt-get update

```