Ubuntu 12.04 apt-get update doesn't work
Well, all the comands are working on my VirtualMachine of my computer, but yesterday I bought a host and I'm using remote connection with the Virtual Machine of the host. The version is Ubuntu 12.04, and then when I try to execute the command 'apt-get update' something like this appears :
Then, I tried executing the command : apt-get install upgrade, but it says 0 files added and things like that.
I tried to execute the other commands (apt-get install openssh-server , apt-get install php5, apt-get install phpmyadmin , etc), but it says:
Quote:
E: Unable to locate package phpmyadmin
I'm pretty sure that the other commands can't be executed due to the fact that 'apt-get update' doesn't work.
Thanks in Advance. I really need help :(
Re: Ubuntu 12.04 apt-get update doesn't work
Try the command:
Code:
ping www.google.com
If there is something wrong, then your virtual machine don't have any access to the web :)
Re: Ubuntu 12.04 apt-get update doesn't work
I tried and it said :
It means there's no internet connection ? D:
PS: I can acess the IP through WinSCP to view the files.
Re: Ubuntu 12.04 apt-get update doesn't work
Very weird... Check the gateway in your network config of your virtual machine! It must match with the IP of your router/box/whatever you use to connect to internet...
Re: Ubuntu 12.04 apt-get update doesn't work
Well, this Virtual Machine is from a hoster server, therefore the IP is not from my machine , neither the gateway. I executed the following command : nano /etc/network/interfaces, and then it appeared :
Quote:
auto eth0
iface eth0 inet static
address 212.124.126.250
netmask 255.255.255.224
network 212.124.126.224
broadcast 212.124.126.255
gateway 212.124.126.225
Re: Ubuntu 12.04 apt-get update doesn't work
Quote:
Originally Posted by
haguiru
Well, this Virtual Machine is from a hoster server, therefore the IP is not from my machine , neither the gateway. I executed the following command : nano /etc/network/interfaces, and then it appeared :
Check /etc/resolv.conf should have at least a line for your DNS server.
Re: Ubuntu 12.04 apt-get update doesn't work
I opened it and it says :
Quote:
nameserver 212.124.126.225
Is this the DNS ?
Re: Ubuntu 12.04 apt-get update doesn't work
please check the file /etc/resolv.conf
and add this nameservers google public this below.
Quote:
nameserver 8.8.8.8
nameserver 8.8.4.4