Whenever I am trying to fix the broken package it is throwing the following errors.  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:   libidl-2-0 libkeybinder0 liborbit2 libvte-common libvte9   linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic   linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic   linux-signed-image-4.13.0-32-generic python-gconf python-gnome2   python-keybinder python-notify python-pyorbit python-vte Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   kde-config-telepathy-accounts The following NEW packages will be installed:   kde-config-telepathy-accounts 0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded. 455 not fully installed or removed. Need to get 0 B/137 kB of archives. After this operation, 825 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 408140 files and directories currently installed.) Preparing to unpack .../kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb ... Unpacking kde-config-telepathy-accounts (4:15.12.3-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb (--unpack):  trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+16.04.20160126-0ubuntu1 Processing triggers for libc-bin (2.23-0ubuntu10) ... Errors were encountered while processing:  /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
1311
For example:  $ sudo apt-get install curl 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: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ 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:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get 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:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.
37441
The Software up-to-date Option automatically download the upgrade for nginx. but While installing it's giving me the following error:  Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   nginx 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/434 kB of archives. After this operation, 977 kB of additional disk space will be used. (Reading database ... 291344 files and directories currently installed.) Unpacking nginx (from .../nginx_1.4.7-1~precise_amd64.deb) ... ----------------------------------------------------------------------  Thanks for using nginx!  Please find the official documentation for nginx here: * http://nginx.org/en/docs/  Commercial subscriptions for nginx are available on: * http://nginx.com/products/  ---------------------------------------------------------------------- dpkg: error processing /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb (--unpack):  trying to overwrite '/etc/logrotate.d/nginx', which is also in package nginx-common 1.4.6-1+precise0 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Actually that file /etc/logrotate.d/nginx does not exist in this folder.
115610
I got the following error message when trying to install Kompozer in Ubuntu 16.04.  saraswati@ubuntu:~$ sudo apt-get install libatk1.0-0 libc6 libcairo2 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libidl0 libnspr4 libnss3 libpango1.0-0 libpng12-0 libstdc++6 libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g   Reading package lists... Done   Building dependency tree... Reading state information... Done   Package libidl0 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:   libidl-2-0:i386 libidl-2-0  E: Package 'libidl0' has no installation candidate   Please help me to sort out this problem.
102518
Yes, I'm a moron, and I tried to manually install a higher point release of python 2.7.16 to /usr/bin/  (i did ./configure --prefix=/usr) on my Ubuntu 16.04 machine. It seems to work fine EXCEPT for packages that depended on python, like apt-listchanges, which fails with messages like ImportError: No module named apt_pkg  there's no make uninstall available, I've tried manually removing files, and still when I try apt --reinstall install python, Nothing gets overwritten and the python executable still gives the new 2.7.16 version...   Any idea how to get the official repository version back??
27223
Recently, i was installing the new version from 13.04 to 13.10 ubuntu while also watching a video.  Well, guess what happened, my desktop crashed for like 4 minutes and then upon gaining access to the desktop again everything seemed messed up like box symbols where characters should be.  I know it was a bad idea but i decided to reboot halting the installation process and now i am stuck with this error.  dpkg: error processing unity-lens-photos (--configure): package is in a very bad inconsistent state - you should reinstall it before attempting configuration.  Errors were encountered while processing: untity-lens-photos e: subprocess /usr/bin/dpkg returned an error code (1).   And it pretty much pops up everytime i try to upgrade, or install anything.  This was after i finished updating the rest of my files.  I have tried many things and read many threads.  I am really lost right now, please help.  Also i have no access to a panel and i am currently trying everything in the terminal.  Attempts to install a gnome panel have been halted by the error.
19729
I'm running ubuntu 14.04. I cannot use software center to install anything, even a local deb package so I have to rely on Terminal.  Recently I was trying to install mysql-server which generated error which I could pin-point was the required version of libstdc++6 . My system had 4.8.x while mysql 5.6 required >=4.9. Trying the usual upgrading process and unsuccessful, I consulted my sys admin, who tried installing the 4.9 package manually(using a local .deb package), which failed as well citing unmet dependencies.   At present, what I have is a system with error saying no new software can be installed.  The sudo apt-get install -f gives following output:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies:  libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but 4.9.1-0ubuntu1 is installed  libstdc++6:i386 : Depends: gcc-4.9-base:i386 (= 4.9.2-10) but 4.9.1-0ubuntu1 is installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   I checked for held packages using  dpkg -l | grep ^h dpkg -l | grep hold   Result: nothing.  Also tried to find the broken package, if any but the file  /var/log/dist-upgrade/apt.log doesn't exist.  So, what should/can I do now.
111360
After running an upgrade from Ubuntu 11.10 (Oneiric Ocelot) to 12.04LTS (Precise Pangolin), a window popped up saying that the upgrade failed and that I should run sudo dpkg --configure -a.  Running that command gave me:  sudo dpkg --configure -a dpkg: error: parsing file '/var/lib/dpkg/status' near line 55497 package 'indicator-displex':  blank line in value of field 'Description   Trying to run apt-get install -f gives me many dependency errors along with that same dpkg error.
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.
48797
I was trying to install kernel 4.6 on Ubuntu 16.04 but it didn't go well. I followed these instructions:  How to Install Kernel 4.6 in Ubuntu: There are .deb packages for this kernel release available in kernel-ppa/mainline:  Download and install the packages named below one by one according to your OS type (i386 for 32-bit, amd64 for 64-bit): linux-headers-4.6.0-xxx_all.deb linux-headers-4.6.0-xxx-generic_xxx_i386/amd64.deb linux-image-4.6.0-xxx-generic_xxx_i386/amd64.deb   I installed two of them with Ubuntu Software Center but on the last one I got this error:  The package is of bad quality The installation of a package which violates the quality standards isn't allowed. This could cause serious problems on your computer. Please contact the person or organisation who provided this package file and include the details beneath. Details Lintian check results for /home/MYUSERNAME/Desktop/linux-image-4.6.0-040600-generic_4.6.0-040600.201605151930_amd64.deb: E: linux-image-4.6.0-040600-generic: binary-with-bad-dynamic-table lib/modules/4.6.0-040600-generic/vdso/vdso64.so   I found these steps . What is the problem?
50993
Sorry for asking about what is probably really simple, but I've been Googling about for a week now and I've tried a lot of stuff without success.  To start off, I get a pop-up every time I boot saying my /boot partition is full, and the Synaptic Manager says linux-image-generic is broken, but it fails to reinstall either of them (linux-image-extra-3.13.0-54-generic and linux-image-generic).  My terminal tells me to try using install -f to fix things so I've tried that, and this is what it returned. Sadly, I'm still learning and I haven't been able to crack the code, I would like some help  aksel@aksels-PC:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:  linux-image-3.13.0-54-generic Suggested packages:  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools The following NEW packages will be installed:  linux-image-3.13.0-54-generic 0 upgraded, 1 newly installed, 0 to remove and 344 not upgraded. 5 not fully installed or removed. Need to get 0 B/14,7 MB of archives. After this operation, 32,8 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 431129 files and directories currently installed.) Preparing to unpack .../linux-image-3.13.0-54-generic_3.13.0-54.91_i386.deb ... Done. Unpacking linux-image-3.13.0-54-generic (3.13.0-54.91) ... dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-54-generic_3.13.0-54.91_i386.deb (--unpack):  cannot copy extracted data for './boot/vmlinuz-3.13.0-54-generic' to '/boot/vmlinuz-3.13.0-54-generic.dpkg-new': failed to write (No space left on device) No apport report written because the error message indicates a disk full error  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-54-generic /boot/vmlinuz-3.13.0-54-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-54-generic /boot/vmlinuz-3.13.0-54-generic Errors were encountered while processing:  /var/cache/apt/archives/linux-image-3.13.0-54-generic_3.13.0-54.91_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
10641
Trying to install trelby by using sudo dpkg -i trelby_2.2_all.deb produces this error:  Selecting previously unselected package trelby. (Reading database ... 267174 files and directories currently installed.) Preparing to unpack trelby_2.2_all.deb ... Unpacking trelby (2.2) ... dpkg: dependency problems prevent configuration of trelby:  trelby depends on python-wxgtk2.8; however:   Package python-wxgtk2.8 is not installed.  dpkg: error processing package trelby (--install):  dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-6ubuntu3) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5) ... Processing triggers for mime-support (3.59ubuntu1) ... Errors were encountered while processing:  trelby   It clearly looks like a dependency issue, but I don't know how to resolve this.  Any ideas?
29111
I ran into some problems installing a package with apt. The terminal hung up during an install and I saw no other choice but to close the terminal. The problem, however, is that I can't seem to solve the issues that this has caused.   As is typical, I get:  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?   This gets me nowhere and I'm locked out until I run sudo dpkg --configure -a. Makes sense. However, this process spits the following out and then hangs on the last line:  Setting up virtualbox-dkms (5.2.10-dfsg-6) ... Removing old virtualbox-5.2.10 DKMS files...  -------- Uninstall Beginning -------- Module:  virtualbox Version: 5.2.10 Kernel:  4.15.0-23-generic (x86_64) -------------------------------------  Status: This module version was INACTIVE for this kernel. depmod...  DKMS: uninstall completed.  ------------------------------ Deleting module version: 5.2.10 completely from the DKMS tree. ------------------------------ Done. Loading new virtualbox-5.2.10 DKMS files... Building for 4.15.0-23-generic Building initial module for 4.15.0-23-generic   A typical solution I've read is that you need to fix the broken packages. When I try to fix the broken packages (sudo apt install -f), the system also hangs on the same line, although the output is different:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up virtualbox-dkms (5.2.10-dfsg-6) ... Removing old virtualbox-5.2.1  0 DKMS files...  ------------------------------ Deleting module version: 5.2.10 completely from the DKMS tree. ------------------------------ Done. Loading new virtualbox-5.2.10 DKMS files... Building for 4.15.0-23-generic Building initial module for 4.15.0-23-generic   I am unable to get out of it unless I kill the process. This I do by checking what is currently running related to apt (ps aux |grep apt), and then I kill the relevant processes with sudo kill -9 process_number_here.  If I try to run things after that, it tells me I still need to reconfigure dpkg.  I tried looking around for more solutions to dpkg and all I really see is the nuclear option:  sudo rm /var/lib/dpkg/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/apt/lists/lock   I also delete the files in /var/lib/dpkg/updates because when I did some digging one of the files inside had the exact same text as the above long output... but I fully admit to being out of my league here and I don't know what to do.   Taking a look at the error messages, I recognize that it hangs on building something related to the kernel. But I have no idea where to even start solving that. Any help is appreciated. My system is ubuntu 18.04
23887
First of all, I think this question is not duplicated, because I have tried all other solutions I found here, but nothing solved my problem.  I use Ubuntu 14.04 64 bit.  I have tried until now: sudo apt-get install skype -> It didn't work. The error was:   The following packages have unmet dependencies: skype : Depends: skype-bin E: Unable to correct problems, you have held broken packages.   I have tried sudo dpkg add-architecture &amp;&amp; sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb but it didn't work either. The error was:  dpkg: dependency problems prevent configuration of skype: skype depends on libqt4-dbus (&gt;= 4:4.5.3); however: Package libqt4-dbus is not installed. skype depends on libqt4-network (&gt;= 4:4.8.0); however: Package libqt4-network:i386 is not installed. skype depends on libqt4-xml (&gt;= 4:4.5.3); however: Package libqt4-xml:i386 is not installed. skype depends on libqtcore4 (&gt;= 4:4.7.0~beta1); however: Package libqtcore4:i386 is not installed. skype depends on libqtgui4 (&gt;= 4:4.8.0); however: Package libqtgui4:i386 is not installed. skype depends on libqtwebkit4 (&gt;= 2.2~2011week36); however: skype depends on libstdc++6 (&gt;= 4.2.1); however: Package libstdc++6:i386 is not installed. skype depends on libx11-6; however: Package libx11-6:i386 is not installed. skype depends on libxext6; however: Package libxext6:i386 is not installed. skype depends on libxss1; however: Package libxss1:i386 is not installed. skype depends on libxv1; however: Package libxv1:i386 is not installed. skype depends on dpkg: error processing package skype (--install): dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.54ubuntu1) ... Errors were encountered while processing: skype   I have tried to use after sudo apt-get -f install but it didn't solve the issue.  I have tried to install by using Gdebi. The error was:  Cannot install 'libqtwebkit4:i386'   I have tried to install using Ubuntu Software Center. The error was:  Cannot install 'libqtwebkit4:i386'   I have tried changing the server in "Software and Updates". I have tried to use "Main Server" and "Servers for United States". But it couldn't solve my problem.  Anyone has any idea how to solve that?  SOLVED  Well, I formatted my pc and I installed Skype first of all. Probably another installation that I had done before the Skype installation was the problem, i guess.  Thanks people!
95
The error I am having when trying to update my package list.  W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333  W: Failed to fetch http://ppa.launchpad.net/samrog131/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.
99634
I'm trying to upgrade some package in a VM, but I dpkg refuses to apply the upgrades due the following:  dpkg: error processing /var/cache/apt/archives/ifupdown_0.7.5ubuntu2.2_amd64.deb (--unpack):  unable to make backup link of `./sbin/ifquery' before installing new version: No such file or directory Preparing to replace unzip 6.0-8ubuntu1 (using .../unzip_6.0-8ubuntu2_amd64.deb) ... Unpacking replacement unzip ... dpkg: error processing /var/cache/apt/archives/unzip_6.0-8ubuntu2_amd64.deb (--unpack):  unable to make backup link of `./usr/bin/unzip' before installing new version: No such file or directory dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)   What it means? The permissions are fine and the file definitively exist:  ls -l /sbin/ifquery -rwxr-xr-x 1 1500000 1500000 58496 dic 12  2012 /sbin/ifquery
103157
I have recently upgraded from Ubuntu 16.04 to 18.04. Now, when I run apt-get upgrade, I get the following error.  larry@VUbuntu15:~$ sudo apt-get upgrade [sudo] password for larry:  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   linux-generic linux-headers-generic linux-image-generic The following packages will be upgraded:   libvte-2.91-0 linux-libc-dev 2 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. Need to get 1,146 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://192.119.223.46:80/data/0116fed259cd0925/us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libvte-2.91-0 amd64 0.52.2-1ubuntu1~18.04.2   Redirection loop encountered Err:2 http://192.119.223.46:80/data/011634d2c0cdf482/us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-30.32   Redirection loop encountered E: Failed to fetch http://192.119.223.46:80/data/0116fed259cd0925/us.archive.ubuntu.com/ubuntu/pool/main/v/vte2.91/libvte-2.91-0_0.52.2-1ubuntu1~18.04.2_amd64.deb  Redirection loop encountered E: Failed to fetch http://192.119.223.46:80/data/011634d2c0cdf482/us.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-30.32_amd64.deb  Redirection loop encountered E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   If I run sudo apt-get update --fix-missing, I get the same errors.  What does the "Redirection loop encountered" mean? How can I fix this error?  No problems with apt-get update. The sources.list file seems to be OK.
120556
I use 11.04.  When I upgrade a package, it shows a message similar to this :    Unpacking replacement libkrb5support0 ...   Preparing to replace libgssrpc4 1.8.3+dfsg-5ubuntu2.2 (using .../libgssrpc4_1.8.3+dfsg-5ubuntu2.3_amd64.deb) ...         a kernel message:    Examining /etc/kernel/postinst.d.   run-parts: executing /etc/kernel/postinst.d/dkms 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic    * dkms: running auto installation service for kernel 2.6.38-13-generic----------------------------------------------     *       vboxhost (4.1.18)...                                                                                 [ OK ]     run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic     run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic     run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic     run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.38-13-generic /boot/vmlinuz-2.6.38-13-generic                                             Do all packages, even kernel upgrades, take place without a  need to reboot now?  If yes, how they do it? Is this true in all versions of Ubuntu?  Thank you~