I recently installed a fresh copy of Ubuntu server 14.04. The install was fine.
But after the install the problems begin. To be sure I have al the recent updates I typed sudo apt-get update
. The result I get is no update only errors. It somehow can't fetch any of the stated links. So I tought maybe the links are wrong but that ain't the problem. I changed the links and it still doesn't work.
So I tought maybe there is a problem with my internet connection (I use WIFI). So I googled around and found this post: Ubuntu 14.04 Server - WiFi WPA2 Personal. After I tried that the following results: iwconfig:
lo no wireless extensions
wlan0 IEE 802.11ng ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragnebt thr:off
Power Management:on
ifconfig:
lo all the normal values
In /etc/network/interfaces
I have the following:
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
address 192.168.000.15 # (000) is something else
netmask 255.255.255.0
gateway 192.168.000.1 ipconfig from a windows pc gives (so not from the router itself)
wpa-ssid the network name
wpa-psk the network password
dns-nameservers 8.8.8.8 8.8.4.4
Also ping doesn't give me anything to work with.
If I ping the ip adress I entered in interfaces it will receive the packages.
If I ping google I get host unknow
During installation I installed the following packages:
- ubuntu basic server;
- OpenSSH;
- Apache server;
- mail server;
- samba file server
Added:
When I dosudo ifdown wlan0 && sudo ifup -v wlan0
all things seems to be normal except for 2 things: on the 1st line: ifdown: interface wlan0 not configured
and on the last line: Failed to bring up wlan0
Update After a few reboots iwconfig now returns:
lo no wireless extensions
wlan0 IEE 802.11ng ESSID:"my network name"
Mode:Managed Frequency:2.427 GHz Access Point: blabla
Bit rate=54Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragnebt thr:off
Power Management:on
and so on
So I hope everything is now working
If I need to add more information please let me know. I hope someone can fix my problem with internet connection. Thanks in advance.
iwconfig
is not showing any connection to an access point (?) Is the access point configured for WPA? Are you sure you got the password correct? Did you install wpasupplicant? By the way, is there any reason you are configuring networking manually instead of using network-manager? – bain Jul 26 '14 at 15:15sudo ifdown wlan0 && sudo ifup -v wlan0
returns ok on both ssid and wpa – user1879621 Jul 26 '14 at 15:44Access Point: Not-Associated
– bain Jul 26 '14 at 16:22sudo apt-get update
like I did before. Now there is something wrong with 1 of the links to the packages. But thanks for your help anyway – user1879621 Jul 26 '14 at 20:27