Ubuntu 16.04.1 LTS 32bit Server Edition
Computer: Intel Pentium 4 /2.4Ghz 32bit
WirelessNetwork Card: Realtek Chipset/ TPLINK wireless N PCI adapter
I'm new to Linux and Ubuntu. I have been fighting with my computer for months now and I can't seem to ping any outside internet source like google.com; I can ping router and computers on LAN. It worked to connect to the internet during installation to download LAMP stack, but now no sudo apt-get works.
After lots of trouble shooting I know what's not the issues:
- DNS resolution error: I can resolve google.com to an ip, but I can't ping it or it's IP. resolv.conf is set up correctly.
- Interface configuration: I have my computer setup to receive configuration from DHCP router. It finds the proper hardware address for my interface and I notice in my IP tables on the router it lists the computer by host name and hardware MAC address properly. I originally had an IP assigned to it outside of the normal IP rage, but for the sake of troubleshooting it is now auto assigned.
- Firewall Setup: No firewall configurations have been set so I know it's not a faulty firewall configurations dropping incoming packets.
- Ip Tables: From my understanding these are also correct.
- TCP Dump: I have run a tcpdump, while pinging google.com and it doesn't receive any packets back, and the tcpdump states that packets are captured and received by filter and kernel doesn't drop any.
- RF KILL: It can't be that as I can talk to the router and LAN devices.
I started to thing that it was a Gateway issue, but I'm not sure. Here is what I have checked:
- Faulty Mac Address ip config: I have checked my routers logs and it's assigning the proper IP to the wireless card MAC address on my computer
- Ping: I can ping google.com from my router and I can ping google.com from my windows7 machine on the same network.
- Settings: NAT is on; SPI firewall is on; Filter Anonymous Internet Requests is checked; Filter IDENT (Port 113) is checked; SIP ALG is disabled.
I noticed I don't have network manager installed; though I think I have the binary files for it. I think that is just for the GUI app which, since this is a server edition, it doesn't have a GUI.
I don't have traceroute installed, I only have traceroute6. It won't let me install traceroute.
When I tried Tcpdump with certain parameters it would say: "You don't have permission to capture on this device. (socket: Operation not permitted)."
I can't copy and paste text from my server console so here are pictures of the printout's for:
- netstat -nt
- route -n
- nslookup google.com
- Ifconfig -a
Any advice would be greatly appreciated. I need to get my server going for projects.
I'm convinced this computer is evil and sentient at this point. My brother has recently left and He has an Ethernet port in his room, so following Kamil Kurzynowski advice I was going to setup a wired connection. However, before I took that advice I reinstalled the computer: then things happened. Now it doesn't want to load the kernel module for the ehternet port drivers, so no wired connection is possible; though it works during wired installation of the system. There is apparently no folder in /lib/ called 4.4.0-21-generic. I have tried reinstalling it a few times, once with the wireless card out, and once with no internet connection and just installing basic system utilities, and still it won't load the ethernet drivers.
I also noticed something weird after I installed it a few times. When I was logged in and hit the up arrow it showed commands from way back when I was trying to get it to work with the wireless card. Mind you this is after I tried to reinstall it a few times. I flushed the ram and deleted bash history and reinstalled. When ever I reinstall I just reuse the partition from before; it says that it re-formats it and erases data.
My questions is this:
- Is there a way to download this kernel modal and install it so I can get it to talk to the drive.
- Should I blank the hard-drive and reinstall; in case it's not reusing the partition correctly
P.S. The live USB I am using is the same one I used to install Ubuntu 16 before this issue occurred. I have also done RAM tests and it says it's fine.