On Ubuntu 20.04 I installed Bluemail.  Then I tried to use the Software app to install an app called "Info Center" and got "Error while installing package: installed bluemail package post-installation script subprocess returned error exit status 1".    When I ran "sudo apt-get install -f", I got:  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 2 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up bluemail (1.1.14-536) ... Installing curl... E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 18429 (apt-get) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? Unable to install curl! dpkg: error processing package bluemail (--configure):  installed bluemail package post-installation script subprocess returned error exit status 1 Errors were encountered while processing:  bluemail E: Sub-process /usr/bin/dpkg returned an error code (1).   Bluemail is installed and working properly and I have rebooted, so I am not sure why this error is lingering around.  Can someone clue me in on how to clear it?
5068
I'm trying to run this command in the terminal:  sudo apt install software-properties-common   This is the error message I get:  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)   E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend),     is another process using it?
87722
I want to install a package in Ubuntu 14.04, but every time I run the ./configure command it gives me this error:  E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 35%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 70%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 100% dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory E: Sub-process /usr/bin/dpkg returned an error code (2)
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.
97067
I have bumped into an issue that doesn't allow me to do anything related to apt-get: install, remove, etc. Whenever I try to do something (e.g. sudo apt-get install firefox -f) it gives me the same error message:  Reading database ... dpkg: unrecoverable fatal error, aborting:  unable to open files list file for package `fontconfig-config': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)   I have tried to deal with the package fontconfig-config without success.  I have found that the "Input/output error" is usually linked with physical problems of the hard drive, but I do not think that's the case I am using that hd without any other problem.  I have tried removing the mention to the package in /var/lib/dpkg/status as mentioned .  I have tried deleting all files related to the package in /var/lib/dpkg/info as I found somewhere.  But I still cannot do anything. The funny bit comes when I look for the file that is giving me troubles:   mecho@Ansible-MS-7680:/var/lib/dpkg/info$ ls fontconfig* ls: cannot access fontconfig-config.list: Input/output error fontconfig.list     fontconfig.postinst  fontconfig.preinst  fontconfig.triggers fontconfig.md5sums  fontconfig.postrm    fontconfig.prerm   This is done after I deleted all files ... it looks like fontconfig-config.list still exists but it doesn't show up!  Any idea about how to solve the problem?  I am on kubuntu precise, fontconfig-config_2.8.0-3ubuntu9.1    I do not have smartmontools installed nor any other programme I could use to check the hard disk. The most similar think I seem to have is KDE Partition Manager but it doesn't allow me to check anything (the option appears unavailable). However, I think the problem is not the hd.  How do you suggests me to do the fs check? fcheck is not installed and I cannot think of any other command in bash (as I do not think I have anything else installed that could perform a check).  Thank you.  Edit: I have found the command (silly me), fsck. This is what I got:  /dev/sda1: recovering journal Clearing orphaned inode 4456702 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456700 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456699 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456697 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456694 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456693 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456688 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456481 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456692 (uid=0, gid=0, mode=0100600, size=65536) Clearing orphaned inode 4456689 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 4456709 (uid=1000, gid=1000, mode=0100600, size=714046) Clearing orphaned inode 4456469 (uid=1000, gid=1000, mode=0140775, size=0) Clearing orphaned inode 3672644 (uid=0, gid=0, mode=0100644, size=1595) Clearing orphaned inode 1324021 (uid=0, gid=0, mode=0100640, size=1980) Clearing orphaned inode 1324014 (uid=0, gid=0, mode=0100640, size=126) Clearing orphaned inode 4456499 (uid=1000, gid=1000, mode=0100600, size=0) Clearing orphaned inode 4456483 (uid=1000, gid=1000, mode=0100600, size=65536) Setting free inodes count to 7147142 (was 7147702) Setting free blocks count to 23891195 (was 23781617) /dev/sda1: clean, 151930/7299072 files, 5292549/29183744 blocks
122374
I've been using Ubuntu for a few years now, but I just installed Version 16.04, and I've been having a lot of issues. I'm not a command line expert, but I tried to install some software last night, and it is creating issues (and also not working properly).   When I run sudo apt-get -f install, I see the following message:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody Suggested packages:   lua-zlib lua-dbi-postgresql lua-dbi-mysql lua-dbi-sqlite3 The following packages will be REMOVED:   jitsi-meet-tokens The following NEW packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody 0 upgraded, 7 newly installed, 1 to remove and 22 not upgraded. 3 not fully installed or removed. Need to get 0 B/413 kB of archives. After this operation, 2,296 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 176266 files and directories currently installed.) Removing jitsi-meet-tokens (1.0.962-1) ... dpkg: error processing package jitsi-meet-tokens (--remove):  subprocess installed post-removal script returned error exit status 10 Errors were encountered while processing:  jitsi-meet-tokens E: Sub-process /usr/bin/dpkg returned an error code (1)   Can someone help me figure out what I need to do to get this resolved? I'm fine with deleting jitsi, but I'm not sure if that will correct the problem.   Currently there is a red circle with a line through it in the upper right corner that indicates there may be installed packages with unmet dependencies.
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.
83938
I had a problem with debian testing today when I was running an apt update with following return:  E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache &gt; /dev/null; fi' E: Sub-process returned an error code
36174
I have no way of accessing any of my settings on my fresh install of Ubuntu 17.10.  I installed 15 minutes ago, added a few core packages, one of which was wine where dpkg failed and I had to restart it.  And it keeps telling me randomly that an install failed of : libsane1 (experimental).  After I installed those packages, no settings available.  The menus are gone, their icons are gone, they won't load even if they have an icon.    As soon as I got the first error message from dpkg, I did a   sudo apt-get remove libsane1   which went perfectly well and appeared to clear up the error.  Then back and did a   sudo apt-get install libsane1   which also went perfectly fine and no problems seemed to exist.  Only during the installation of wine-hq-staging on my fresh and clean ubuntu does the error appear.  Well it also appears on winehq-stable too but I did not use that this occasion.
114855
I tried to install jdk/jre:  ben@ubuntu:~$ sudo apt-get install openjdk-7-jre-headless   However, I got this message:   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?   I cannot get git to install either, so I don't think it is a problem with the specific package I selected. What that error means, and how to deal with it?
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 ?
23999
After installing Microsoft Windows Compatibility Layer (meta-package) i receive an error   Item cannot be installed or removed until the package catalogue is repaired. Do you want  to repair it     Ok, I thought... I'll just click repair and be done with it. After doing so I receive another error.    The full text reads:  installArchives() failed: (Reading database ...  (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 212945 files and directories currently installed.) Unpacking libasound2:i386 (from .../libasound2_1.0.25-1ubuntu10_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb (--unpack):  './usr/share/alsa/cards/ICE1712.conf' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb Error in function:  SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1) dpkg: dependency problems prevent configuration of wine1.4-i386:i386:  wine1.4-i386:i386 depends on libasound2 (&gt;= 1.0.23); however:   Package libasound2:i386 is not installed. dpkg: error processing wine1.4-i386:i386 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4:  wine1.4 depends on wine1.4-i386 (= 1.4-0ubuntu4); however:   Package wine1.4-i386 is not installed.   Package wine1.4-i386:i386 is not configured yet. dpkg: error processing wine1.4 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine:  wine depends on wine1.4; however:   Package wine1.4 is not configured yet. dpkg: error processing wine (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4-common:  wine1.4-common depends on wine1.4 (= 1.4-0ubuntu4); however:   Package wine1.4 is not configured yet. dpkg: error processing wine1.4-common (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4-amd64:  wine1.4-amd64 depends on wine1.4-common (= 1.4-0ubuntu4); however:   Package wine1.4-common is not configured yet. dpkg: error processing wine1.4-amd64 (--configure):  dependency problems - leaving unconfigured   So I click OK and now I'm back to previous screen ("Item cannot be installed ...")  I click on cancel and go to the red circle on the top right on my screen and try to update from there and receive this error    After that I just get thrown these errors        So now I can't add or remove any programs on my system. Does anyone have any idea how to fix this?
24627
Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated.  al@al:~$ sudo apt-get -f upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following NEW packages will be installed:   libjack-jackd2-0:i386 The following packages have been kept back:   linux-headers-generic skype 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/202 kB of archives. After this operation, 493 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 310056 files and directories currently installed.) Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack):  './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
101024
I'm trying to update to node 7.x through the terminal on my raspberry pi and I keep encountering this error. The command I'm using is:  sudo curl -sL https://deb.nodesource.com/setup_7.x | bash -   Running this command as root doesn't work so I tried to see if apt-get was being used by any other processes.   ps aux | grep apt pi        1295  0.0  0.1   4272  1848 pts/0    S+   06:24   0:00 grep --color=auto apt   This is all I get. Ultimately, (although it was initially advised not to do so), I tried removing the files and running the command again.  sudo rm /var/lib/apt/lists/lock &amp;&amp; sudo rm /var/lib/dpkg/lock   Now neither one of these files no longer exists and I still receive the same error when trying to use curl. I also tried to kill that one process and I still get the error.
18776
I have seen many softwares such as Update Manager and Synaptic Package Manager, they wait if some other program is using the /var/lib/dpkg/lock and is locked. How can we do this through the Terminal? I saw apt-get's manual but didn't find anything useful.
35229
I have just booted my clean Ubuntu 18.04 LTS VM and tried to install some application with sudo apt install.  But got error message:     E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)       E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   What process created the /var/lib/dpkg/lock-frontend file in Ubuntu? How to gently stop it and take manual control on APT?
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
3727
When I try to install any package through the command line, I get an error.   $ sudo apt-get install &lt;package&gt; Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package &lt;package&gt;   Can anyone help me on this?