[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-05-07
3
Medium Priority
?
2,559 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 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

872 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