Archive for March, 2013

dpkg –set-selections results in “warning: package not in database….”

4

When you want to restore your packages that you’ve backup-ed with :

sudo dpkg --get_selections > selections.txt

And when you restore them with:

dpkg --set-selections < selections.txt

And the result is a whole bunch of warnings like  “warning: package blabla not in database….”

Then theres a easy fix:

$ sudo apt-get install dselect
$ sudo dselect 
   -> Update
   -> Install

Done.

Ubuntu 12.04 atheros wifi card not found

2

When you have Ubuntu 12.04 installed on a system with a Atheros wifi card indicated by ‘Device 0037’ when you run lspci then you have a problem that the driver shipped in 12.04 isn’t compatible with that card.

The solution is to compile the driver yourself which is pretty easy so don’t worry 😉

First make sure you install the necessary tools:

sudo apt-get install build-essentials

Download the driver(s) package:

http://wireless.kernel.org/en/users/Download/stable

Unpack it, cd into the directory and do:

sudo su
./scripts/driver-select restore
./scripts/driver-select ath9k
make clean
make
make install
reboot

You now have a proper working Atheros wifi card.

That wasn’t to hard 🙂

 

 

Go to Top