1

I just installed Ubuntu server 14.04.1 LTS on my old gaming pc to run a file server on. I got it all installed on the PC and was able to apt-get update and apt-get upgrade and install samba, openssh-server, smbclient, cifs-utils, ntp and ntpdate. I set up /etc/network/interfaces: .

Everything looks right in there and I was still able to install packages and everything. Now, when I reboot the computer I try to install ddclient and I get:

Now I get this no matter what I try to install or update or upgrade. Any help would be appreciated!

1
  • 1
    The screenshot of the apt-get output is hardly readable; Could you edit to add it as text? Sep 2, 2014 at 3:35

1 Answer 1

2

In your /etc/network/interfaces file you need to add your dns servers. Try editing like below:

auto eth0
iface eth0 inet static
  address 192.168.0.10
  netmask 255.255.255.0
  network 192.168.0.0
  broadcast 192.168.0.255
  gateway 192.168.0.1
  dns-nameservers 8.8.8.8 4.2.2.2

Then run

sudo service networking restart

Try to ping

ping google.com
3
  • Ok so I tried that and 'sudo service networking restart' gave me this and 'ping google.com' did not work here is the output imgur.com/KZEYbjB . However when I restarted my server I was able to get packages to install again. Seemed like it worked, very helpful thank you very much. Any reason why 'sudo service networking restart' and 'ping google.com' did not work? Sep 1, 2014 at 19:17
  • Glad you were able to get it working.... I am not sure why restarting the networking service did not work. Good to know that a simple reboot fixed your issue. Sep 1, 2014 at 19:24
  • I believe it is a bug askubuntu.com/questions/441619/… To restart the network in 14.04.1 you have to use sudo ifdown eth0 && sudo ifup eth0
    – TryHarder
    Dec 16, 2014 at 8:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .