Linux generic depends on linux image generic

Apt-get issues, can’t install anything [duplicate]

I have been trying to install some software packages but I keep getting errors to do with linux-generic and linux-image-generic . When running apt-get -f install this is the output, any help would be greatly appreciated:

Reading package lists. Done Building dependency tree Reading state information. Done Correcting dependencies. Done The following extra packages will be installed: linux-generic linux-image-generic The following packages will be upgraded: linux-generic linux-image-generic 2 upgraded, 0 newly installed, 0 to remove and 322 not upgraded. 2 not fully installed or removed. Need to get 0 B/4,344 B of archives. After this operation, 2,048 B of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-3.2.0-84-generic; however: Package linux-image-3.2.0-84-generic is not installed. dpkg: error processing linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 3.2.0.84.98); however: Package linux-image-generic is not configured yet. linux-generic depends on linux-headers-generic (= 3.2.0.84.98); however: Version of linux-headers-generic on system is 3.2.0.126.141. dpkg: error processing linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports has already been reached No apport report written because MaxReports has already been reached Errors were encountered while processing: linux-image-generic linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 
 linux-generic: Installed: 3.2.0.84.98 Candidate: 3.2.0.126.141 Version table: 3.2.0.126.141 0 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages *** 3.2.0.84.98 0 100 /var/lib/dpkg/status 3.2.0.23.25 0 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages linux-image-generic: Installed: 3.2.0.84.98 Candidate: 3.2.0.126.141 Version table: 3.2.0.126.141 0 500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages *** 3.2.0.84.98 0 100 /var/lib/dpkg/status 3.2.0.23.25 0 500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 
dpkg: dependency problems prevent configuration of linux-image-generic: linux-image-generic depends on linux-image-3.2.0-84-generic; however: Package linux-image-3.2.0-84-generic is not installed. dpkg: error processing linux-image-generic (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 3.2.0.84.98); however: Package linux-image-generic is not configured yet. linux-generic depends on linux-headers-generic (= 3.2.0.84.98); however: Version of linux-headers-generic on system is 3.2.0.126.141. dpkg: error processing linux-generic (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: linux-image-generic linux-generic 

Источник

Читайте также:  Configure ldap on linux

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:

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).

Читайте также:  Linux get memory model

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

Источник

«linux-image-generic» error while upgrading [duplicate]

I encountered some problem while I was trying to upgrade my php5.3 to php5.4 or higher version. Here’s the command I typed apt-get -f install php5.5 And came out of this:

You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-generic : Depends: linux-image-generic (= 3.2.0.116.132) but 3.2.0.124.139 is to be installed Depends: linux-headers-generic (= 3.2.0.116.132) but 3.2.0.124.139 is to be installed php-amqp : Depends: php-common (>= 1:7.0+33~) but it is not going to be installed Depends: phpapi-20160303 or phpapi-20151012 or phpapi-20131226 or phpapi-20121212 but it is not installable Depends: librabbitmq4 (>= 0.6.0) but it is not going to be installed php-gearman : Depends: php-common (>= 1:7.0+33~) but it is not going to be installed Depends: phpapi-20160303 or phpapi-20151012 or phpapi-20131226 or phpapi-20121212 but it is not installable Depends: libgearman8 (>= 1.1.13) but it is not going to be installed php-geoip : Depends: php-common (>= 1:7.0+33~) but it is not going to be installed 

The rest is pretty much the same labeled with it is not going to be installed My OS is Ubuntu 12.04.5 LTS. It looks like the linux-image-generic and linux-headers-generic aren’t matched to the one in need. So the upgrade wasn’t success and I was still stuck on php5.3.10. I tried dpkg —purge linux-image-generic and dpkg —purge linux-headers-generic but still get the same error. And dpkg —configure -a is also a no go. Thoughts on this? UPDATE: After I followed Arijit’s solution and typed apt-get install php5

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-generic : Depends: linux-image-generic (= 3.2.0.116.132) but 3.2.0.124.139 is to be installed Depends: linux-headers-generic (= 3.2.0.116.132) but 3.2.0.124.139 is to be installed php5 : Depends: libapache2-mod-php5 (>= 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1) but 5.3.10-1ubuntu3.26 is to be installed or libapache2-mod-php5filter (>= 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1) but it is not going to be installed or php5-cgi (>= 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1) but it is not going to be installed or php5-fpm (>= 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1) but it is not going to be installed Depends: php5-common (>= 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1) but 5.3.10-1ubuntu3.26 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). 

The version is still php5.3. And the python properties is the latest version. This is the checks of the php5 versions. Tried apt-get install php5.4.45 , couldn’t be installed.

php5: Installed: (none) Candidate: 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1 Version table: 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1 0 500 http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu/ precise/main amd64 Packages 5.3.10-1ubuntu3.26 0 500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages 5.3.10-1ubuntu3 0 500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 

UPDATE2: After I dug a little more about the situation, I found solution here. Broken count error : linux-generic-pae : Depends: linux-image-generic-pae (= 3.2.0.37.44) but 3.2.0.37.45 is installed And the solution for my specific problem is the comment left by @Simon

Had the same problem but with linux-generic package depending on a specific version of linux-image-generic and linux-headers-generic, but a newer version to be installed caused ‘Unmet dependencies’ error. Solved it with sudo dpkg —remove linux-generic && sudo apt-get install linux-generic . Thanks!

  1. sudo dpkg —remove linux-generic
  2. sudo apt-get linux-generic
  3. Repeat the procedure of installing the php.
    • LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
    • apt-get update
    • apt-get install php5.6 or php7
  4. Noted that don’t use Deprecated version of the PPA, please use LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php to get the latest version of safe and stable php.
  5. apt-get install php5.6 or php7 . php5.4 and lower are not supported anymore in 2015.
  6. There you have it, now you have successfully installed php5.6 and higher version. If not then restart your service. sudo service apache2 restart and sudo service nginx restart
Читайте также:  Linux шифрование всей системы

Источник

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