Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-12-2012, 09:38 AM   #1
Registered: Mar 2010
Posts: 400

Rep: Reputation: 0
Unhappy Cannot acess internet from command line fo ubuntu

I am indesperate need to install packages on ubuntu

host os is windows 7 home premium

Guest os is ubuntu 12.04

I have set proxy on command line.

But I am unable to fetch any package !

user01@user01-VirtualBox:~$ sudo apt-get install nmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 495 not upgraded.
Need to get 1,623 kB of archives.
After this operation, 6,876 kB of additional disk space will be used.
Err precise/main nmap i386 5.21-1.1ubuntu1
Could not connect to ( - connect (110: Connection timed out)
Failed to fetch Could not connect to ( - connect (110: Connection timed out)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

what is the problem??
Old 04-12-2012, 09:55 AM   #2
Registered: Mar 2010
Posts: 400

Original Poster
Rep: Reputation: 0
I am on vpn on host pc, but setting up proxy on guest should work fine right?
While Installing ubuntu in virtual box there is a "NAT" networking configuration.

All what I want is host is connected to vpn and for guest I want to use command line to install packages use torrent to download stuff is this really possible?
Old 04-12-2012, 10:59 AM   #3
Registered: Mar 2012
Distribution: Scientific Linux
Posts: 147

Rep: Reputation: 36
It looks like your proxy still might not be set up correctly:

Add these lines to ~/.bashrc replace your variables where necessary.
export http_proxy=http://user:password@my.proxy.server:port/
export ftp_proxy=http://user:password@my.proxy.server:port/
Then reload your bashrc
source ~/.bashrc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setup internet on command line lemtree Linux - Newbie 14 12-17-2009 05:27 AM
connect to internet using command line ic_torres Slackware 5 12-05-2005 05:35 AM
command line to the internet? cl2imson Linux - Newbie 7 04-17-2004 11:06 AM
Internet from the command line? jsbush Linux - Newbie 2 10-24-2003 02:57 PM
How do I browse internet from the command line? 360 Linux - Networking 3 08-22-2001 06:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration