"Unmet Dependencies" problem when trying apt-get install
- by GChorn
Anytime I try to install python packages using the command:
sudo apt-get install python-package
I get the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-headers-generic : Depends: linux-headers-3.2.0-36-generic but it is not going to be installed
linux-headers-generic-pae : Depends: linux-headers-3.2.0-36-generic-pae but it is not going to be installed
linux-image-generic : Depends: linux-image-3.2.0-36-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
This seems to have started when these same three packages showed up in Ubuntu's Update Manager and kicked an error when I tried to install them there. Based on the suggestion in the output above, I tried running:
sudo apt-get -f install
But this only gave me several instances of the following error:
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-36-generic_3.2.0-36.57_i386.deb (--unpack):
unable to create `/lib/modules/3.2.0-36-generic/kernel/drivers/net/wireless/ath/carl9170/carl9170.ko.dpkg-new' (while processing `./lib/modules/3.2.0-36-generic/kernel/drivers/net/wireless/ath/carl9170/carl9170.ko'): No space left on device
Now maybe I'm way off-base here, but I'm wondering if the error could be coming from the "No space left on device" part? The thing is, I'm running Ubuntu as a VirtualBox VM but I've got it set to dynamically increase its virtual hard drive space as needed, so why am I still getting this error?
Here's my output when I use dh -f:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.9G 5.7G 869M 88% /
udev 494M 4.0K 494M 1% /dev
tmpfs 201M 784K 200M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 501M 76K 501M 1% /run/shm
VB_Shared_Folder 466G 271G 195G 59% /media/sf_VB_Shared_Folder
When I perform sudo apt-get -f install and the system says,
After this operation, 192 MB of additional disk space will be used.
Does that mean 192 MB of my virtual machine's current memory, or 192 MB on top of the rest of my free space? As I said, my machine normally dynamically allocates additional memory from the host machine, so I don't see why there would be memory restrictions at all...