I tried a lot of solutions posted here, but none of them work. I am trying to install vlc. Here's the whole output.  :/$ sudo apt-get install vlc Reading package lists... Done Building dependency tree        Reading state information... Done vlc is already the newest version (2.2.2-5). 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 debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up libpam-systemd:amd64 (229-4ubuntu13) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing package libpam-systemd:amd64 (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  libpam-systemd:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)
1772
I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error:  root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done Building dependency tree Reading state information... Done flashybrid is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up flashybrid (0.15+nmu2) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing flashybrid (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: flashybrid E: Sub-process /usr/bin/dpkg returned an error code (1)   I also tried this one to find what is already using that file:  root@user-desktop:/home/user# lsof | grep /var/cache/debconf/config.dat lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/user/.gvfs Output information may be incomplete. dpkg-prec 4672 root 4rW REG 8,6 39658 1697827 /var/cache/debconf/config.dat   But I don't know how to 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.
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 ?
21500
As VLC 2.0 is released, how do I get it in Ubuntu (XUbuntu actually, in my case) 11.10? Any PPAs or packages to download? The official page says "Ask your favorite packager..."
49736
I know it has been asked many times before but none of those solutions helped me.  Every time I am running sudo apt upgrade I get this error.  dpkg: error processing package systemd (--configure):  installed systemd package post-installation script subprocess returned error exit status 127 Errors were encountered while processing:  systemd E: Sub-process /usr/bin/dpkg returned an error code (1)   And sudo dpkg --configure -a returns     Setting up udev (237-3ubuntu10.28) ... /var/lib/dpkg/info/udev.postinst: 108: /var/lib/dpkg/info/udev.postinst: addgroup: not found dpkg: error processing package udev (--configure):  installed udev package post-installation script subprocess returned error exit status 127 Setting up systemd (237-3ubuntu10.28) ... /var/lib/dpkg/info/systemd.postinst: 123: /var/lib/dpkg/info/systemd.postinst: addgroup: not found dpkg: error processing package systemd (--configure):  installed systemd package post-installation script subprocess returned error exit status 127 dpkg: dependency problems prevent configuration of libnss-systemd:amd64:  libnss-systemd:amd64 depends on systemd (= 237-3ubuntu10.28); however:   Package systemd is not configured yet.  dpkg: error processing package libnss-systemd:amd64 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libpam-systemd:amd64:  libpam-systemd:amd64 depends on systemd (= 237-3ubuntu10.28); however:   Package systemd is not configured yet.  dpkg: error processing package libpam-systemd:amd64 (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  udev  systemd  libnss-systemd:amd64  libpam-systemd:amd64   I don't think it's safe to remove systemd package all together. Any help is appreciated and I am on Ubuntu 18.04.
3087
I get this error when trying to use apt-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?     How can I fix this?
61088
The following error message occasionally appears in my terminal:  Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory   ... which is pretty annoying.  I have searched online for solutions to this error, without success.  Is there any way to at least identify the process responsible for sending these error messages to my terminal?  Let me clarify that, as far as I can tell, these error messages appear "out of the blue".  In fact, they appear asynchronously with respect to my interactions with the terminal (more often than not I see them for the first time when I return to a terminal window that has been unattended for some time).  I'm sure there's a definite, deterministic cause for these messages, but it is not one that I can readily identify.  In short, I have not noticed any pattern or regularity to their occurrence.  In particular, in my case their occurrence has nothing to do with running MPlayer, or any other video playback program.  (Please refer to .)  For one thing, the machine in question is a work machine, and I rarely watch any videos with it.  In the very few instances in which I've watched a video on this machine I've used VLC, not MPlayer, and these errors never appeared in these rare occasions that I used VLC.
34343
When trying to update I get an error message   E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    But when I try to run this command the screen goes completely black and nothing happens.  From what I can tell it is trying to install Linux headers when this happens.  This is a fresh install of less than a week old. At this time I can not install anything new or update anything. How do I solve this issue?  Log File:  12:50:16 systemd-journal: Journal stopped 12:50:16 kernel: Sending SIGTERM to remaining processes... 12:50:16 kernel: Syncing filesystems and block devices. 12:50:16 kernel: printk: systemd-shutdow: 78 output lines suppressed due to ratelimiting 12:50:16 systemd: Shutting down. 12:50:15 NetworkManager: &lt;info&gt;  [1565373015.4510] exiting (success) 12:50:15 systemd: Stopped Raise network interfaces. 12:50:15 NetworkManager: &lt;info&gt;  [1565373015.4124] caught SIGTERM, shutting down normally. 12:50:15 systemd: Stopping Network Manager... 12:50:15 pulseaudio: E: [alsa-sink-HDMI 1] alsa-sink.c: Error opening PCM device hdmi:0,1: No such file or directory 12:50:15 systemd: Stopped D-Bus User Message Bus. 12:50:15 systemd-logind: Removed session 2. 12:50:15 systemd: Stopping D-Bus User Message Bus... 12:50:15 gdm-x-session: (II) Server terminated successfully (0). Closing log file. 12:50:14 systemd: Stopped ACPI event daemon. 12:50:14 (sd-pam): pam_unix(systemd-user:session): session closed for user gdm 12:50:14 systemd: gdm.service: Succeeded. 12:50:14 gdm3: Child process -1517 was already dead. 12:50:14 systemd: Started Exit the Session. 12:50:14 gdm3: Child process -1517 was already dead. 12:50:14 systemd: systemd-exit.service: Succeeded. 12:50:14 gdm-x-session: (II) systemd-logind: releasing fd for 13:65 12:50:14 systemd: Stopped sandboxed app permission store. 12:50:14 systemd-logind: Removed session c2. 12:50:14 gdm-x-session: (II) systemd-logind: releasing fd for 13:64 12:50:14 systemd: Stopping User Manager for UID 123... 12:50:14 gdm-x-session: (II) Server terminated successfully (0). Closing log file. 12:50:13 gdm3: Freeing conversation 'gdm-launch-environment' with active job 12:50:13 systemd: Stopped Network Manager Wait Online. 12:50:13 dbus-daemon: [system] Activation via systemd failed for unit 'accounts-daemon.service': Refusing activation, D-Bus is shutting down. 12:50:13 systemd: Stopped target Network is Online. 12:50:13 gdm3: Tried to look up non-existent conversation gdm-launch-environment 12:50:13 gdm-x-session: (II) systemd-logind: releasing fd for 13:68 12:50:13 avahi-daemon: avahi-daemon 0.7 exiting. 12:50:13 dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.Accounts' unit='accounts-daemon.service' requested by ':1.478' (uid=0 pid=3680 comm="gdm-session-worker [pam/gdm-launch-environment] " label="unconfined") 12:50:13 systemd: Stopped CUPS Scheduler. 12:50:13 gdm3: Failed to list cached users: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.7 was not provided by any .service files 12:50:13 systemd: Stopped PackageKit Daemon. 12:50:13 udisksd: udisks daemon version 2.8.2 exiting 12:50:13 systemd: Stopped Accounts Service. 12:50:13 apport:    ...done. 12:50:13 systemd: Stopped LSB: Record successful boot for GRUB. 12:50:13 dbus-daemon: [session uid=1000 pid=3647] AppArmor D-Bus mediation is enabled 12:50:13 systemd: Stopping Authorization Manager... 12:50:13 avahi-daemon: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.0.1. 12:50:13 systemd: Stopped target Host and Network Name Lookups. 12:50:13 avahi-daemon: Leaving mDNS multicast group on interface enp7s0.IPv4 with address 192.58.0.150. 12:50:13 systemd-logind: Session c2 logged out. Waiting for processes to exit. 12:50:13 systemd: Stopping CUPS Scheduler... 12:50:13 avahi-daemon: Leaving mDNS multicast group on interface enp7s0.IPv6 with address fe80::fd7:6a47:d5ba:6c3c. 12:50:13 systemd-logind: Session 2 logged out. Waiting for processes to exit.
94249
I get the following error after installing nmap:  dpkg: error: failed to open package info file `/var/lib/dpkg/available' for reading: No such file or directory E: Sub-process /usr/bin/dpkg returned an error code (2)
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?
94503
The error looks like this:  Reading package lists... Done Building dependency tree        Reading state information... Done Package mysql-workbench 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 E: Package 'mysql-workbench' has no installation candidate   How do I install it?
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?
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.
98438
On Ubuntu 18.04.2 LTS, I completely removed/uninstalled my apt-get because of problems I was having.  I tried re-installing it with dpkg by runnung:   $ sudo wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-transport-https_1.0.1ubuntu2.23_amd64.deb   to install apt-transport-https then it's dependency:  $ sudo wget http://archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.12_1.0.1ubuntu2_amd64.deb   then I ran the two following commands  $ sudo dpkg -i libapt-pkg4.12_1.0.1ubuntu2_amd64.deb $ sudo dpkg -i apt-transport-https_1.0.1ubuntu2.23_amd64.deb   but when I try run apt or apt-get I still get the error     command not found   I'm still pretty new to ubuntu and I'm not sure what to do
49159
I have been running Ubuntu 12.04 for the past few weeks. I recently tried to download and install some files through the Update Manager. It located a few files, downloaded them, but then failed to install them. It gave the error:  installArchives() failed: (Reading database ...  (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error   I tried using apt-get upgrade but a similar error was produced:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be upgraded:   icedtea-6-jre-cacao icedtea-6-jre-jamvm openjdk-6-jre openjdk-6-jre-headless   openjdk-6-jre-lib 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/34.6 MB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)   Any help would be greatly appreciated. Thanks in advance.  Edit: Here's some extra information that may be useful. My original problem was that the Ubuntu Software Centre would not open. I found that the Update Manager and Synaptic Package Manager also failed to open. They all gave an error along the lines of:   "installArchives() failed: dpkg: error: reading package info file '/var/lib/dpkg/available': Input/output errorError in function:"   After much googling I seemed to fix that problem as the package managers would open again. When I then tried to download and install any updates from the Update Manager I got the error at the beginning of this post.
39614
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded:   apt apt-transport-https apt-utils dpkg libapt-inst2.0 libapt-pkg5.0 ntpdate   oracle-java8-installer oracle-java8-set-default thermald 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/4,389 kB of archives. After this operation, 8,192 B of additional disk space will be used. Do you want to continue? [Y/n] Y Preconfiguring packages ... dpkg: unrecoverable fatal error, aborting:  files list file for package 'linux-generic' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)   I already tried the usual stuff like:   sudo dpkg --configure -a   sudo apt-get -f install  sudo apt-get clean  sudo apt-get update &amp;&amp; sudo apt-get upgrade   Any help, thanks!  cat -net /var/lib/dpkg/info/linux-generic.list      1  ^LbM-BM-^FRq^MU^Evalueq^NK^HubU^Mcertificationq^ONU^Hoverviewq^PNU$      2  updated_atq^QNU^Vavailable_translationsq^RNU^Dyearq^SMM-CM-^]^GU^Fimagesq^TNU^Bidq^UNU^Ipaused_atq^VNU^Eindex
20346
So I'm just coming back to Ubuntu after some time away, running 14.04 and I've gotten things customized the way I like them, more or less.  At one point I'd attempted to download "Popcorn-Time."  I ran into some issues of some sort and decided to remove it/that it wasn't worth the trouble.    Something from the install process seems to be "stuck" in apt-get though.  I'm having issues getting new packages and I'm getting this message:  Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up popcorn-time (0.3.2~webupd8~6) ... Downloading Popcorn Time... --2015-09-06 11:25:00--  http://cdn.popcorntime.io/build/Popcorn-Time ... Resolving cdn.popcorntime.io ... Connecting to cdn.popcorntime.io (cdn.popcorntime.io)|45.33.69.37|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2015-09-06 11:25:00 ERROR 404: Not Found.  download failed Popcorn Time is NOT installed. dpkg: error processing package popcorn-time (--configure):  subprocess installed post-installation script returned error exit status 1 ...  Errors were encountered while processing:  popcorn-time E: Sub-process /usr/bin/dpkg returned an error code (1)   I've omitted a couple of lines there, but I think you get the idea.  This is occurring when I try to install most packages using apt-get, maybe all packages.  It seems like it's interfering, and frankly I'd like it to not try to install popcorn time every time I install any package.  Any ideas?