Alright, I have an Ubuntu server on which I couldn't connect to my WPA2 secured Wi-Fi network.

Apparently I need wpa-supplicant to be able to connect to it (see How do I connect to a WPA wifi network using the command line?), but ironically I can't download it being offline. So, how can I download wpa-supplicant, get it on a USB device and install it on the server? I have no idea so far...

PS: I only have a Mac as a primary machine, so I can't download it from another Ubuntu.


You can doownload most/all packages from the main Ubuntu repositories from http://packages.ubuntu.com. You can search for it from this page, find it from here, and download it from one of these pages:

The problem here is that some packages it needs may to be downloaded as well - you can test that by trying to install it, and seeing if it exits with any errors.

Another way of doing it would be to run apt-get install --print-uris wpasupplicant[1] on the server, and downloading it with the machine that has internet access, and transferring the deb file(s). This will likely be better as it will list other packages it needs as dependencies.

For example, it might give on a Ubuntu 14.04 64bit machine http://gb.archive.ubuntu.com/ubuntu/pool/main/w/wpa/wpasupplicant_2.1-0ubuntu1_amd64.deb.

Once you have managed to get the needed deb files, you can install it with dpkg -i /PATH/TO/FILE(S).deb.

1: this will likely only work if the machine has had access to the internet to update the package lists - the print-uris just tells it to print what was going to download instead of downloading it

  • Thanks for the quick reply, but how do i transfer the file once i download it on another machine? I mean, i can put it in a usb, but from there how would i read it on the server? EDIT: Okay ,so i download the .deb file on the machine, transfer it to a usb, put it in the server, and then running dpkg -i? – mariaNueller Jul 27 '14 at 18:48
  • If you need to mount the USB on the machine, read this question. You can install the package with dpkg -i. It will be under the mountpoint you have chosen, you can do this by going cd /media/MOUNTPOINT and running ls to see if it is there. – Wilf Jul 27 '14 at 18:49
  • Great! So it explains how to mount it. Once it's mounted i should be able to install it with just dpkg -i, right? – mariaNueller Jul 27 '14 at 18:51
  • @user3504154 - dpkg -i /PATH/TO/FILE.deb. Glad to be of help :D – Wilf Jul 27 '14 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.