dpkg: error processing linux-generic, un met dependency error when sudo apt-get install -f  Setting up linux-image-generic (3.2.0.60.71) ... dpkg: dependency problems prevent configuration of linux-generic:  linux-generic depends on linux-image-generic (= 3.2.0.58.69); however:   Version of linux-image-generic on system is 3.2.0.60.71.  linux-generic depends on linux-headers-generic (= 3.2.0.58.69); however:   Version of linux-headers-generic on system is 3.2.0.60.71. dpkg: error processing linux-generic (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1)
122455
Today I went over to my grandma because she had some problems with her computer, running Xubuntu 12.04LTS. After fixing 'the problem' (Firefox was set fullscreen..) I ran the usual apt-get update &amp;&amp; apt-get dist-upgrade to immediately update everything. Instead I was greeted by an error that some packages where not correctly installed. So I ran dpkg --configure -a. My guess is that, because Firefox was fullscreen, she couldn't figure out how to turn of her computer and had simply turned it of, probably at the exact moment when it was installing automatic security updates. Running dpkg --configure -a however only left me with an error message about unmet dependencies for linux-generic. When running apt-get dist-upgrade again, it told me the same and I should try the -f option. However, even while trying to force the upgrade it still wont install them.  This is the output from the commands (added LANG=C because default language is Dutch).  jeroen@Bomma:/home/bomma$ LANG=C sudo apt-get dist-upgrade 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.37.45) but 3.2.0.38.46 is installed                  Depends: linux-headers-generic (= 3.2.0.37.45) but 3.2.0.38.46 is installed E: Unmet dependencies. Try using -f.   Running it with -f:  jeroen@Bomma:/home/bomma$ LANG=C sudo apt-get -f dist-upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done Calculating upgrade... Done The following packages will be upgraded:   linux-generic 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/1.722 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]?   dpkg: dependency problems prevent configuration of linux-generic:  linux-generic depends on linux-image-generic (= 3.2.0.37.45); however:   Version of linux-image-generic on system is 3.2.0.38.46.  linux-generic depends on linux-headers-generic (= 3.2.0.37.45); however:   Version of linux-headers-generic on system is 3.2.0.38.46. dpkg: error processing linux-generic (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already     Errors were encountered while processing:  linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1)   I'm out of ideas on how to solve this (other than quickly reinstalling her pretty default xubuntu)? Trying to remove and reinstall the linux-generic package seems rather risky, but maybe that would solve it?
75754
I got an error message explaining my /boot is full. trying to clean up old image files always seems to fail because of disk full errors or dependency errors. Could someone explain where I’m going wrong.   $ sudo apt-get autoremove 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-image-extra-3.13.0-44-generic : Depends: linux-image-3.13.0-44-generic but it is not installed  linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not installed  linux-image-generic : Depends: linux-image-3.13.0-45-generic but it is not installed E: Unmet dependencies. Try using -f.  $ ls /boot abi-3.13.0-32-generic         initrd.img-3.13.0-43-generic abi-3.13.0-36-generic         lost+found abi-3.13.0-37-generic         memtest86+.bin abi-3.13.0-39-generic         memtest86+.elf abi-3.13.0-40-generic         memtest86+_multiboot.bin abi-3.13.0-43-generic         System.map-3.13.0-32-generic config-3.13.0-32-generic      System.map-3.13.0-36-generic config-3.13.0-36-generic      System.map-3.13.0-37-generic config-3.13.0-37-generic      System.map-3.13.0-39-generic config-3.13.0-39-generic      System.map-3.13.0-40-generic config-3.13.0-40-generic      System.map-3.13.0-43-generic config-3.13.0-43-generic      vmlinuz-3.13.0-32-generic grub                          vmlinuz-3.13.0-36-generic initrd.img-3.13.0-32-generic  vmlinuz-3.13.0-37-generic initrd.img-3.13.0-36-generic  vmlinuz-3.13.0-39-generic initrd.img-3.13.0-37-generic  vmlinuz-3.13.0-40-generic initrd.img-3.13.0-39-generic  vmlinuz-3.13.0-43-generic initrd.img-3.13.0-40-generic   I used   kernelver=$(uname -r | sed -r 's/-[a-z]+//') dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver   to get   linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic linux-headers-3.13.0-36 linux-headers-3.13.0-36-generic linux-headers-3.13.0-37 linux-headers-3.13.0-37-generic linux-headers-3.13.0-39 linux-headers-3.13.0-39-generic linux-headers-3.13.0-40 linux-headers-3.13.0-40-generic linux-headers-3.13.0-44 linux-headers-3.13.0-44-generic linux-headers-3.13.0-45 linux-headers-3.13.0-45-generic linux-image-3.13.0-32-generic linux-image-3.13.0-36-generic linux-image-3.13.0-37-generic linux-image-3.13.0-39-generic linux-image-3.13.0-40-generic   Then picking the first image to remove   $ sudo apt-get purge linux-image-3.13.0-32-generic 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-image-extra-3.13.0-32-generic : Depends: linux-image-3.13.0-32-generic but it is not going to be installed  linux-image-extra-3.13.0-44-generic : Depends: linux-image-3.13.0-44-generic but it is not going to be installed  linux-image-extra-3.13.0-45-generic : Depends: linux-image-3.13.0-45-generic but it is not going to be installed  linux-image-generic : Depends: linux-image-3.13.0-45-generic but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
110868
when i use command sudo apt-get install git it's return below erorrs and it's return for any application to install below :   Setting up util-linux (2.25.2-4ubuntu3) ... update-alternatives: error: cannot stat file '/usr/bin/nodejs': Too many levels of symbolic links dpkg: error processing package util-linux (--configure):  subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:  util-linux E: Sub-process /usr/bin/dpkg returned an error code (1)   update with sudo apt-get update not working and report below erorr  Fetched 7,032 kB in 5min 32s (21.2 kB/s)                                        W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/paullo612/unityshell-rotated/ubuntu/dists/vivid/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   how can fix it ?
94397
When I run sudo apt-get upgrade, the dpkg error appears and interupts the process.  Error details:  Setting up python-minimal (2.7.3-0ubuntu7.1) ... Traceback (most recent call last):   File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main     "__main__", fname, loader, pkg_name)   File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code     exec code in run_globals   File "/usr/local/lib/python2.7/compileall.py", line 16, in &lt;module&gt;     import struct   File "/usr/local/lib/python2.7/struct.py", line 1, in &lt;module&gt;     from _struct import * ImportError: No module named _struct dpkg: error processing python-minimal (--configure):  subprocess installed post-installation script returned error exit status 255 dpkg: dependency problems prevent configuration of python:  python depends on python-minimal (= 2.7.3-0ubuntu7.1); however:   Package python-minimal is not configured yet.   And this problem leads to a series of dependency problems when processing the following packages:    python  gwibber-service  libgwibber3  libgwibber-gtk3  gwibber  gwibber-service-facebook  gwibber-service-identica  gwibber-service-twitter  python-all  python-dev  python-all-dev  python-apt  python-problem-report  python-apport  python-libxml2  unity-lens-gwibber  unity-scope-video-remote   Finally, nothing I can do for this problem. And several days later, the root directory is full and I even could not uninstall any software because of this problem.
5300
When I installed TeXLive2012 on Linux some time ago, I had to follow .  For the new release, as of yesterday, will I need to mimic the procedure from 2012 or can it be done in an easier fashion this time?  Or does it have to be installed in an entirely different way?  Edit 2:  After uninstalling:  Setting up tex-common (3.15) ... Directory /etc/texmf/ not writeable. Exiting. dpkg: error processing tex-common (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  tex-common E: Sub-process /usr/bin/dpkg returned an error code (1)   Edit 3:  Now, whenever I run commands in the terminal, I receive this:  Need to get 0 B of archives. After unpacking 0 B will be used. Setting up tex-common (3.15) ... Directory /etc/texmf/ not writeable. Exiting. dpkg: error processing tex-common (--configure):  subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  tex-common  E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install.  Trying to recover: Setting up tex-common (3.15) ... Directory /etc/texmf/ not writeable. Exiting. dpkg: error processing tex-common (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  tex-common   This occurred when I ran sudo aptitude update and then running upgrade.  I followed everything from cmhughes link on removing TeXLive.
121437
I have a problem with dpkg when I try to install any package.  Here is log output:  ➜  LC_MESSAGES=C sudo apt install tree Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   tree 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/40,6 kB of archives. After this operation, 138 kB of additional disk space will be used. Selecting previously unselected package tree. dpkg: unrecoverable fatal error, aborting:  files list file for package 'libvo-aacenc0:amd64' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2) ➜
87950
Compiling and installing software is a pain and problem I cannot overcome. I just want to run down through my understanding of this process with someone more knowledgeable to clear my mind to get to the next level.   Many scientific software I need are not distributed as packages. I understand "./configure" sets up the compilation variables and checking for dependencies "make" does the compilation "sudo make install" puts all the libraries and bins in their places. However it never works. I rarely get out of the a) "./configure" stage without entering dependency hell, and if I do, b) "sudo make install" will probably nuke my box.   a) The dependency hell is very frustrating. Sometimes I have the library, but it doesn't like it. Or the library doesn't want to install. Or "configure" can't find it. Or my distro placed it somewhere it shouldn't be. Or there are two versions in my system. Problem is, I can't understand how to diagnose and therefore fix these problems. What are some good references to learn for someone who doesn't need to become a programmer?  b) My understanding is "make install" will replace some libraries and change settings without my package manager being aware of this. Therefore, some programs won't run, others can't be updated.  So, if I don't use "make install", and just keep the compiled binary in my user directory with a symbolic link added to the PATH, will I be in the clear?   My box is single user, has tons of free HD so I don't really care about having multiple (dozens) of copies of libraries if that will solve my problems. Space is cheap.
81731
In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.
12343
I frequently need to check which packages are installed, and I use the following command:  dpkg -l | grep foo  which gives the following output  Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name                       Version         Description ii   foo                       &lt;version&gt;         &lt;description&gt;    What does the ii mean?  What other flags are there? How to read the flags? (because the explanation is quite complicated, IMO)   Thanks.
55673
Earlier, I had a problem with a package, and I (wrongly) ran this:  rm -r /var/lib/dpkg/*   See also .  Now when I try to upgrade, I get this:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? masoud@masoud-PC:~$ sudo apt-get upgrade  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   and when I use: sudo dpkg --configure -a   I get this:  dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory     and for sudo apt-get upgrade -f get:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  ia32-libs : Depends: ia32-libs-multiarch but it is not installable  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu5) but it is not installable E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies
445
After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
26308
I have a deb package for installation.  Shall I install by dpkg -i my.deb, or by apt?  Will both handle the software dependency problem well?  If by apt, how can I install from the deb by apt?
10760
My overall upgrade went well, but I am left with a critically lingering issue of mysql-server not being able to install itself, and nothing I am trying gets it to work.  This is the error I see when trying to install/reinstall it:  Setting up mysql-server-5.7 (5.7.11-0ubuntu6) ... Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing package mysql-server-5.7 (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server:  mysql-server depends on mysql-server-5.7; however:   Package mysql-server-5.7 is not configured yet.  dpkg: error processing package mysql-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                    Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing:  mysql-server-5.7  mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried completely removing it, though doing so attempts to install MariaDB because of dependencies (?). Any suggestions on what I can do to fix this would be most welcome.  EDIT: Looks like I'm not the only one:
12746
Always when I install something, I get the following error multiple times:     Unknown configuration key 'foreign-architecture' found in your 'dpkg'   configuration files.  This warning will become a hard error at a later   date, so please remove the offending configuration options and replace   them with 'dpkg --add-architecture' invocations at the command line.   When I try dpkg --add-architecture I get:  Unknown configuration key `foreign-architecture' found in your `dpkg' configuration files.  This warning will become a hard error at a later date, so please remove the offending configuration options and replace them with `dpkg --add-architecture' invocations at the command line.  dpkg: error: --add-architecture takes one argument  Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files;  Options marked [*] produce a lot of output - pipe it through `less' or `more' !   I've no problems yet, but since it says This warning will become a hard error at a later date I better do something about this. When I search 'foreign-architecture', I find an empty file, containing not a single byte. I somehow can't delete that file.  Please help, it's a kind of creapy...  I use Ubuntu version 12.10  Updated the questions:  cat /etc/dpkg/dpkg.cfg  no-debsig  log /var/log/dpkg.log  ls /etc/dpkg/dpkg.cfg.d/ multiarch
68758
I am getting error while using sudo apt-get upgrade stating:  dpkg: error processing libgfortran3:amd64 (--configure):   package libgfortran3:amd64 is not ready for configuration   cannot configure (current status `half-installed') Errors were encountered while processing:   libgfortran3:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)   It does not seem to block the installation/upgrade other applications. I believe this problem arose due to direct shutting down of my PC while the application was being upgraded.  How can I fix this?
102164
I can't say what steps brought me into this:  → sudo apt-get upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) Errors were encountered while processing:  libtiff4 E: Sub-process /usr/bin/dpkg returned an error code (1)   The following commands all end up in the same error:  sudo apt-get install -f sudo dpkg --configure -a sudo apt-get --fix-broken install sudo apt-get --fix-missing install sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove   How to solve these kind of problems? And what did I do wrong?  UPDATE I managed to get apt working again by downgrading to previous version (3.9.5-1ubuntu1). However, next upgrade led to the same problem. But there is more info now:  (Reading database ...  dpkg: warning: files list file for package `libtiff4:k386' missing, assuming package has no files currently installed. (Reading database ... 281166 files and directories currently installed.) Preparing to replace libtiff4 3.9.5-1ubuntu1 (using .../libtiff4_3.9.5-1ubuntu1.1_i386.deb) ... Unpacking replacement libtiff4 ... dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  libtiff4   So the real problem seems to be the missing libtiff4:k386 package. And k386 seems like a stupid typo somewhere.  I tracked down the file that introduces the typo:  **/var/lib/dpkg/status**  Package: libtiff4 Status: install ok half-configured Multi-Arch: same Priority: optional Section: libs Installed-Size: 528 Maintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt; Architecture: k386 Source: tiff Version: 3.9.5-1ubuntu1 Config-Version: 3.9.5-1ubuntu1 Depends: libc6 (&gt;= 2.11), libjpeg62 (&gt;= 6b1), zlib1g (&gt;= 1:1.1.4) Pre-Depends: multiarch-support Description: Tag Image File Format (TIFF) library  libtiff is a library providing support for the Tag Image File Format  (TIFF), a widely used format for storing image data.  This package  includes the shared library. Homepage: http://libtiff.maptools.org Original-Maintainer: Jay Berkenbilt &lt;qjb@debian.org&gt;   Fixing the typo solves the problem.
115198
This problem is really strange, I have tried many ways to solve but nothing worked. My last output was:      Reading package lists... Done     Building dependency tree            Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "pl_PL.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Setting up mysql-server-5.5 (5.5.38-0ubuntu0.14.04.1) ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory /var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found ATTENTION: An error has occured. More info is in the syslog! /var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found dpkg: error processing package mysql-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 127 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet.  dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)   I really don't know how to fix that, guys please help me :)