How to change proxy information on ubuntu server

New motherboard has come and I ask my friend to install Ubuntu Hardy 8.0.4.3 . Everything is fine except proxy section when I try to apt-get update.

# apt-get update

Err http://security.ubuntu.com hardy-security Release.gpg
Could not resolve ‘172.88.1.3;3128’
Err http://security.ubuntu.com hardy-security/main Translation-en_US
Could not resolve ‘172.88.1.3;3128’
Err http://security.ubuntu.com hardy-security/restricted Translation-en_US
Could not resolve ‘172.88.1.3;3128’
Err http://security.ubuntu.com hardy-security/universe Translation-en_US
Could not resolve ‘172.88.1.3;3128’

As you see proxy information is incorrect, there is a ; sign not :

To fix it just declare new proxy info and export it.

# http_proxy=http://172.88.1.3:3128
# export http_proxy

Testing again :

# apt-get update

Get:1 http://security.ubuntu.com hardy-security Release.gpg [189B]
Get:2 http://id.archive.ubuntu.com hardy Release.gpg [189B]
Get:3 http://id.archive.ubuntu.com hardy-updates Release.gpg [189B]
Get:4 http://security.ubuntu.com hardy-security Release [58.5kB]
Get:5 http://id.archive.ubuntu.com hardy Release [65.9kB]
Get:6 http://security.ubuntu.com hardy-security/main Packages [203kB]
Get:7 http://id.archive.ubuntu.com hardy-updates Release [58.5kB]
Get:8 http://id.archive.ubuntu.com hardy/main Packages [1178kB]
Get:9 http://security.ubuntu.com hardy-security/restricted Packages [8437B]
Get:10 http://security.ubuntu.com hardy-security/main Sources [32.3kB]
Get:11 http://security.ubuntu.com hardy-security/restricted Sources [901B]
Get:12 http://security.ubuntu.com hardy-security/universe Packages [99.9kB]
Get:13 http://security.ubuntu.com hardy-security/universe Sources [14.5kB]
Get:14 http://security.ubuntu.com hardy-security/multiverse Packages [12.2kB]
Get:15 http://security.ubuntu.com hardy-security/multiverse Sources [1104B]
Get:16 http://id.archive.ubuntu.com hardy/restricted Packages [6986B]
Get:17 http://id.archive.ubuntu.com hardy/main Sources [338kB]
Get:18 http://id.archive.ubuntu.com hardy/restricted Sources [1488B]
Get:19 http://id.archive.ubuntu.com hardy/universe Packages [4293kB]
Get:20 http://id.archive.ubuntu.com hardy/universe Sources [1323kB]
Get:21 http://id.archive.ubuntu.com hardy/multiverse Packages [179kB]
Get:22 http://id.archive.ubuntu.com hardy/multiverse Sources [60.9kB]
Get:23 http://id.archive.ubuntu.com hardy-updates/main Packages [474kB]
Get:24 http://id.archive.ubuntu.com hardy-updates/restricted Packages [8409B]
Get:25 http://id.archive.ubuntu.com hardy-updates/main Sources [118kB]
Get:26 http://id.archive.ubuntu.com hardy-updates/restricted Sources [941B]
Get:27 http://id.archive.ubuntu.com hardy-updates/universe Packages [215kB]
Get:28 http://id.archive.ubuntu.com hardy-updates/universe Sources [44.3kB]
Get:29 http://id.archive.ubuntu.com hardy-updates/multiverse Packages [29.3kB]
Get:30 http://id.archive.ubuntu.com hardy-updates/multiverse Sources [5401B]
Fetched 8832kB in 7min27s (19.7kB/s)
Reading package lists… Done

#

Great!

Tags: