LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot acess internet from command line fo ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-acess-internet-from-command-line-fo-ubuntu-939454/)

sysmicuser 04-12-2012 08:38 AM

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:
nmap
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 http://au.archive.ubuntu.com/ubuntu/ precise/main nmap i386 5.21-1.1ubuntu1
Could not connect to au.archive.ubuntu.com:80 (202.158.214.106). - connect (110: Connection timed out)
Failed to fetch http://au.archive.ubuntu.com/ubuntu/...untu1_i386.deb Could not connect to au.archive.ubuntu.com:80 (202.158.214.106). - connect (110: Connection timed out)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
user01@user01-VirtualBox:~$


what is the problem??

sysmicuser 04-12-2012 08:55 AM

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?

Sydney 04-12-2012 09:59 AM

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

Add these lines to ~/.bashrc replace your variables where necessary.
Code:

export http_proxy=http://user:password@my.proxy.server:port/
export ftp_proxy=http://user:password@my.proxy.server:port/

Then reload your bashrc
Code:

source ~/.bashrc


All times are GMT -5. The time now is 07:34 PM.