Linux – Ubuntu Server 15.10 cannot connect to internet and apt-get issue

linuxnetworkingUbuntuubuntu 15.10ubuntu server

So here is the issue, or one of them I should say. Ever since I installed Ubuntu Server 15.10 I haven't been able to connect to the internet, on that computer alone of course, even if I ping ip's they all give me Host Unreachable except for the computer itself of course.
I've done many changes that I thought could help (got them online) but they didn't. Including changes to /etc/network/interfaces and therefore /etc/resolv.conf. Here's what that looks like now. (ip is different, dont know if i should show that to the public)

/etc/network/interfaces:

auto lo
iface lo inet loopback

auto enp0s25
iface enp0s25 inet static
    address 192.168.23.17
    netmask 255.255.255.0
    broadcast 192.168.23.255
    gateway 192.168.23.1

    dns-nameserver 192.168.23.17
    dns-search cortex.com

And in /etc/resolv.conf there's only one thing

nameserver 192.168.23.17

Command ifconfig appears like this:

enp0s25   Link encap:Ethernet HWaddr 00:1e:c9:70:c7:f5
          inet addr:192.168.23.17 Bcast:192.168.23.255 Mask:255.255.255.0
          inet6 addr:feB0::21e:c9ff:fe70:c7f5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:2721 errors:0 dropped:1 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:215574 (215.5 KB) TX bytes:1064 (1.0 KB)
          Interrupt:21 Memory:fe9e0000-fea00000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:65536 Metric:1
          RX packets:29442 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29442 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2339824 (2.3 MB) TX bytes:2339824 (2.3 MB)

Also, i cant use sudo apt-get for anything, everytime i try it it just doesnt work:

$ sudo apt-get install update
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package update

Please help me out, im going crazy. If you feel like my problem is missing some info, just request it and ill provide it no problem, but please any insight on this will help. Thank you!!

PROBLEM update:
the issue has been solved, thanks to all the users that helped me solve this 🙂 you helped a future computer scientist lol

Best Answer

If you are using apt-get install update it will try to install the update package, which i don't think is the desired action. Try apt-get update.

Related Question