Solved

"113 No route to host" error when using apt-get on Ubuntu Server 8.04

Posted on 2009-05-07
3
2,377 Views
Last Modified: 2013-12-06
When I try using apt-get to download and install an application from the Internet, I get the following error:

Could not connect to 192.168.100.1:8080 (192.168.100.1). - connect (113 No route to host)

I recognize 192.168.100.1 as our old proxy server which is no longer being used. How do I change the config to point to our new proxy address? Please note that this is Ubuntu server without a GUI installed, so I will need to do whatever config update from the command line. Thanks for your help.
0
Comment
Question by:Marc_Johnson
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
fosiul01 earned 500 total points
ID: 24326487
i did not use ubuntu for long , but with bellow 2 solution


have a look this one  by editing apt.conf file

http://blogs.sun.com/venky/entry/using_apt_get_with_a

also another solution :


If youre using command-line apt-get

Edit your /etc/bash.bashrc file as root.

Put these line at the end of your /etc/bash.bashrc file :

export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/
0
 

Author Comment

by:Marc_Johnson
ID: 24326702
I am still confused. When I go to edit apt.conf, the file is empty. Also, there is no entry in bash.bashrc listing our old proxy server (192.168.100.1). If this is the case, where is Ubuntu getting 192.168.100.1 to try from in the first place?
0
 

Author Comment

by:Marc_Johnson
ID: 24326901
Ignore my previous post. I did find that the apt.conf was pointing to the old proxy server. I was able to change it here to the new one. Thanks for your help!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now