Linux generic depends linux headers generic

Problems with linux-headers and apt-get -f install [duplicate]

It has been a long time since I’ve asked for help, but I’m in dire need now. Some time ago, I set up a friend’s computer with 10.04. He’s still running it but somewhere along the way, he started having trouble with his nvidia drivers and seemingly his whole system. Remotely, I’ve been trying to help him start from scratch and install fresh with 12.10. The problem is that his CD-rom is broken, and his BIOS will not allow him to boot from external media, i.e., usb cd/dvd rom and/or usb flash drives. Space on his system partition was very low but has deleted enough to give him just over a gig. I thought the best solution would be to boot from a local iso file through grub2. However, his system hasn’t been updated/upgraded to grub2, he is still using the legacy version. We can’t seem to upgrade him because, well, I guess you could say apt-get is (broken?) and apt-get -f install isn’t fixing it. We can’t remove or add packages until this is resolved. I’ve listed the commands we’ve tried and their output. I would appreciate any help that would allow us to update the computer to grub2 and/or do a fresh install of Ubuntu. sudo apt-get -f install

dpkg: error processing /var/cache/apt/archives/linux-headers-2.6.32-45_2.6.32-45.104_all.deb (--unpack): unable to create `/usr/src/linux-headers-2.6.32-45/drivers/cpufreq/Kconfig.dpkg-new' (while processing `./usr/src/linux-headers-2.6.32-45/drivers/cpufreq/Kconfig'): No space left on device No apport report written because the error message indicates a disk full error dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/linux-headers-2.6.32-45_2.6.32-45.104_all.deb 
dpkg: dependency problems prevent configuration of linux-headers-2.6.32-45-generic: linux-headers-2.6.32-45-generic depends on linux-headers-2.6.32-45; however: Package linux-headers-2.6.32-45 is not installed. dpkg: error processing linux-headers-2.6.32-45-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-headers-generic: linux-headers-generic depends on linux-headers-2.6.32-45-generic; however: Package linux-headers-2.6.32-45-generic is not configured yet. dpkg: error processing linux-headers-generic (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: linux-headers-2.6.32-45-generic linux-headers-generic 
dpkg: error processing /var/cache/apt/archives/linux-headers-2.6.32-45_2.6.32-45.104_all.deb (--install): unable to create `/usr/src/linux-headers-2.6.32-45/drivers/cpufreq/Kconfig.dpkg-new' (while processing `./usr/src/linux-headers-2.6.32-45/drivers/cpufreq/Kconfig'): No space left on device dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/linux-headers-2.6.32-45_2.6.32-45.104_all.deb 
You might want to run `apt-get -f install' to correct these. The following packages have unmet dependencies: linux-headers-2.6.32-45-generic: Depends: linux-headers-2.6.32-45 but it is not installed E: Unmet dependencies. Try using -f. 

Источник

Читайте также:  Linux обновить драйвер usb драйвер

How Do I Fix Unmet dependencies Linux-Image-Generic etc

My battery died on an upgrade and now I have this problem when I try to install updates. How do I fix it?

The following packages have unmet dependencies: linux-generic: Depends: linux-image-generic (= 3.2.0.52.62) but 3.2.0.57.68 is installed Depends: linux-headers-generic (= 3.2.0.52.62) but 3.2.0.57.68 is installed 

Hi It is not working. I am seeing things along the lines of: dpkg: dependency problems prevent configuration of linux generic: and dpkg: error processing linux-generic (—configure): dependency problems leaving unconfigured

4 Answers 4

Fire this at command line:

This checks your lib and if it finds unmet dependency, it’ll fetch the needed files and install them.

Meanwhile — that dependency version of image-generic told me that you are running on 12.04. Perhaps this case will do the trick:

 $ sudo apt-get install syslinux-themes-debian-wheezy $ sudo apt-get upgrade && sudo apt-get dist-upgrade $ sudo dpkg-reconfigure -a 

Hi It is not working. I am seeing things along the lines of: dpkg: dependency problems prevent configuration of linux generic: and dpkg: error processing linux-generic (—configure): dependency problems leaving unconfigured –

I just ran into this unmet dependencies problem while trying to do an «apt-get upgrade», but also had the additional issue of /boot having run out of space.

Some errors which provide clues that your /boot is out of space:

gzip: stdout: No space left on device

No apport report written because the error message indicates a disk full error

This meant that apt-get was helpless, with «sudo apt-get install -f» and «sudo apt-get autoremove» failing to work.

In the end, the link in Justin’s answer provided the solution:

Читайте также:  Маркировка при печати astra linux

1) Check how many old linux-generic kernels you’ve got installed:

find /boot -type f -regex "^.*-generic" 

2) If more than 2, manually clean out the old ones

sudo find /boot -type f -regex "^.*XX-generic" -delete 

Replacing XX with the number of the old kernel you wish to remove (e.g. find /boot -type f -regex «^.*24-generic» -delete) Make sure you leave the latest two kernels (highest two numbers).

3) Now you’ve got space to fix the unmet dependencies:

Источник

dpkg: dependency problems prevent configuration of linux-headers-generic

I ran out of inodes during an update which I think resulted in unmet dependencies. The system recommended I issue ‘apt-get -f install’ to fix. However I could not issue the command because of lack of inodes. It turned out that there were many older versions of linux-headers and linux-image. I manually deleted:

$ sudo rm -rf /usr/src/linux-headers-3.2.0-65* 
$ sudo apt-get -f install Reading package lists. Done Building dependency tree Reading state information. Done Correcting dependencies. Done The following packages were automatically installed and are no longer required: linux-headers-3.2.0-118-generic linux-headers-3.2.0-83-generic linux-image-3.2.0-94-generic linux-image-3.2.0-89-generic linux-headers-3.2.0-99-generic linux-image-3.2.0-121-generic linux-image-3.2.0-116-generic unattended-upgrades linux-headers-3.2.0-110-generic linux-headers-3.2.0-70-generic linux-headers-3.2.0-65-generic linux-headers-3.2.0-91-generic linux-headers-3.2.0-86-generic linux-image-3.2.0-97-generic python-pycurl linux-image-3.2.0-119-generic linux-headers-3.2.0-113-generic linux-headers-3.2.0-70 linux-headers-3.2.0-65 linux-headers-3.2.0-72 linux-headers-3.2.0-68 linux-headers-3.2.0-74 linux-headers-3.2.0-69 linux-headers-3.2.0-80 linux-headers-3.2.0-75 linux-headers-3.2.0-76 linux-headers-3.2.0-82 linux-headers-3.2.0-77 linux-headers-3.2.0-83 linux-headers-3.2.0-84 linux-headers-3.2.0-79 linux-headers-3.2.0-90 linux-headers-3.2.0-85 linux-headers-3.2.0-91 linux-headers-3.2.0-86 linux-headers-3.2.0-92 linux-headers-3.2.0-87 linux-headers-3.2.0-93 linux-headers-3.2.0-88 linux-headers-3.2.0-94 linux-headers-3.2.0-89 linux-headers-3.2.0-95 linux-headers-3.2.0-96 linux-headers-3.2.0-97 linux-headers-3.2.0-98 linux-headers-3.2.0-99 linux-headers-3.2.0-68-generic linux-image-3.2.0-84-generic python-cheetah linux-headers-3.2.0-94-generic linux-headers-3.2.0-89-generic linux-image-3.2.0-111-generic linux-image-3.2.0-106-generic python-software-properties linux-headers-3.2.0-121-generic linux-headers-3.2.0-116-generic python-oauth linux-headers-3.2.0-76-generic linux-image-3.2.0-92-generic linux-image-3.2.0-87-generic linux-headers-3.2.0-97-generic linux-image-3.2.0-109-generic linux-headers-3.2.0-119-generic linux-headers-3.2.0-84-generic linux-headers-3.2.0-79-generic linux-image-3.2.0-101-generic linux-image-3.2.0-95-generic python-paramiko linux-headers-3.2.0-111-generic linux-headers-3.2.0-106-generic linux-headers-3.2.0-92-generic linux-headers-3.2.0-87-generic linux-image-3.2.0-104-generic linux-image-3.2.0-98-generic linux-headers-3.2.0-109-generic linux-headers-3.2.0-74-generic linux-headers-3.2.0-69-generic linux-image-3.2.0-90-generic linux-image-3.2.0-85-generic linux-headers-3.2.0-95-generic linux-image-3.2.0-107-generic linux-headers-3.2.0-101-generic python-boto linux-headers-3.2.0-82-generic linux-headers-3.2.0-77-generic python-configobj linux-image-3.2.0-93-generic linux-image-3.2.0-88-generic linux-headers-3.2.0-98-generic linux-image-3.2.0-120-generic linux-image-3.2.0-115-generic linux-headers-3.2.0-104-generic linux-headers-3.2.0-90-generic linux-headers-3.2.0-85-generic linux-image-3.2.0-102-generic python-m2crypto linux-image-3.2.0-96-generic linux-image-3.2.0-118-generic linux-headers-3.2.0-107-generic linux-headers-3.2.0-72-generic euca2ools linux-image-3.2.0-83-generic linux-headers-3.2.0-93-generic linux-headers-3.2.0-88-generic linux-image-3.2.0-110-generic linux-image-3.2.0-99-generic linux-headers-3.2.0-101 linux-headers-3.2.0-102 linux-headers-3.2.0-104 linux-headers-3.2.0-110 linux-headers-3.2.0-111 linux-headers-3.2.0-106 linux-headers-3.2.0-107 linux-headers-3.2.0-113 linux-headers-3.2.0-109 linux-headers-3.2.0-120 linux-headers-3.2.0-115 linux-headers-3.2.0-121 linux-headers-3.2.0-116 linux-headers-3.2.0-118 linux-headers-3.2.0-119 linux-headers-3.2.0-120-generic linux-headers-3.2.0-115-generic linux-headers-3.2.0-80-generic linux-headers-3.2.0-75-generic python-crypto linux-image-3.2.0-91-generic linux-image-3.2.0-86-generic linux-headers-3.2.0-96-generic linux-image-3.2.0-113-generic linux-headers-3.2.0-102-generic Use 'apt-get autoremove' to remove them. The following extra packages will be installed: linux-generic linux-headers-generic The following packages will be upgraded: linux-generic linux-headers-generic 2 upgraded, 0 newly installed, 0 to remove and 26 not upgraded. 2 not fully installed or removed. Need to get 4,282 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://mirror.rackspace.com/ubuntu/ precise-updates/main linux-generic amd64 3.2.0.124.139 [1,718 B] Get:2 http://mirror.rackspace.com/ubuntu/ precise-updates/main linux-headers-generic amd64 3.2.0.124.139 [2,564 B] Fetched 4,282 B in 0s (180 kB/s) dpkg: dependency problems prevent configuration of linux-headers-generic: linux-headers-generic depends on linux-headers-3.2.0-123-generic; however: Package linux-headers-3.2.0-123-generic is not installed. dpkg: error processing linux-headers-generic (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 3.2.0.123.138); however: Version of linux-image-generic on system is 3.2.0.124.139. linux-generic depends on linux-headers-generic (= 3.2.0.123.138); however: Package linux-headers-generic is not configured yet. dpkg: error processing linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: linux-headers-generic linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 

My guess is that 3.2.0.123 somehow got corrupted while I was making space in disk and needs to get re-installed. However I’m no expert and don’t want to make the problem worse. Can someone help me sort this out? Thanks in advance, Jose Ambros-Ingerson

Читайте также:  Linux утилита для бэкапа

Источник

Оцените статью
Adblock
detector