I cannot update anymore

Asked by Etienne Ruedin

dpkg package is in a very bad inconsistent state; you should reinstall it before attempting configuration

I tried to reinstall it, but it did not work.
Then I runned everything as descrived at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

The result:

etienne@Aspire-E1-571:~$ ubuntu-support-status
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 133, in <module>
    pkg.name, support_tag)
  File "/usr/bin/ubuntu-support-status", line 49, in get_maintenance_status
    raise Exception("No date tag found")
Exception: No date tag found
etienne@Aspire-E1-571:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: Datei oder Verzeichnis nicht gefunden
etienne@Aspire-E1-571:~$ dpkg --print-foreign-architectures
i386
etienne@Aspire-E1-571:~$ dpkg --print-foreign-architectures
i386
etienne@Aspire-E1-571:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for etienne:
etienne@Aspire-E1-571:~$ grep proxy /etc/environment
etienne@Aspire-E1-571:~$ echo $http_proxy

etienne@Aspire-E1-571:~$ echo $ftp_proxy

etienne@Aspire-E1-571:~$ grep proxy /etc/bash.bashrc
etienne@Aspire-E1-571:~$ grep proxy ~/.bashrc
etienne@Aspire-E1-571:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: Datei oder Verzeichnis nicht gefunden
etienne@Aspire-E1-571:~$ sudo fuser -vvv /var/lib/dpkg/lock
etienne@Aspire-E1-571:~$ sudo fuser -vvv /var/cache/apt/archives/lock
etienne@Aspire-E1-571:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
etienne@Aspire-E1-571:~$ uname -a
Linux Aspire-E1-571 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
etienne@Aspire-E1-571:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
etienne@Aspire-E1-571:~$ sudo rm /var/cache/apt/archives/lock
etienne@Aspire-E1-571:~$ sudo rm /var/lib/dpkg/lock
etienne@Aspire-E1-571:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
etienne@Aspire-E1-571:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
etienne@Aspire-E1-571:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
etienne@Aspire-E1-571:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
etienne@Aspire-E1-571:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
etienne@Aspire-E1-571:~$ sudo rm -rf /var/lib/dpkg/updates/*
etienne@Aspire-E1-571:~$ sudo rm -rf /var/lib/apt/lists
etienne@Aspire-E1-571:~$ sudo rm /var/cache/apt/*.bin
etienne@Aspire-E1-571:~$ sudo mkdir /var/lib/apt/lists
etienne@Aspire-E1-571:~$ sudo mkdir /var/lib/apt/lists
mkdir: das Verzeichnis »/var/lib/apt/lists“ kann nicht angelegt werden: Die Datei existiert bereits
etienne@Aspire-E1-571:~$ sudo mkdir /var/lib/apt/lists/partial
etienne@Aspire-E1-571:~$ LANG=C;sudo apt-get clean
etienne@Aspire-E1-571:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
etienne@Aspire-E1-571:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of php5-cli:
 php5-cli depends on php5-common (= 5.5.9+dfsg-1ubuntu4.14); however:
  Version of php5-common on system is 5.5.9+dfsg-1ubuntu4.11.

dpkg: error processing package php5-cli (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 php5-cli
etienne@Aspire-E1-571:~$ sudo dpkg --clear-avail
etienne@Aspire-E1-571:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package dpkg needs to be reinstalled, but I can't find an archive for it.
etienne@Aspire-E1-571:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package dpkg needs to be reinstalled, but I can't find an archive for it.
etienne@Aspire-E1-571:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package dpkg needs to be reinstalled, but I can't find an archive for it.
etienne@Aspire-E1-571:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Ign http://archive.canonical.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Get:1 http://deb.opera.com stable InRelease [2'590 B]
Get:2 http://archive.canonical.com trusty Release.gpg [933 B]
Get:3 http://extras.ubuntu.com trusty Release.gpg [72 B]
Get:4 http://ppa.launchpad.net trusty InRelease [15.4 kB]
Get:5 http://deb.opera.com stable InRelease [2'590 B]
Get:6 http://extras.ubuntu.com trusty Release [11.9 kB]
Get:7 http://archive.canonical.com trusty Release [9'359 B]
Get:8 http://deb.opera.com stable/non-free amd64 Packages [1'801 B]
Get:9 http://extras.ubuntu.com trusty/main Sources [14 B]
Ign http://archive.ubuntu.com trusty InRelease
Get:10 http://deb.opera.com stable/non-free i386 Packages [1'798 B]
Get:11 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Get:12 http://archive.canonical.com trusty/partner amd64 Packages [5'620 B]
Ign http://ppa.launchpad.net trusty InRelease
Get:13 http://extras.ubuntu.com trusty/main amd64 Packages [14 B]
Get:14 http://archive.canonical.com trusty/partner i386 Packages [6'310 B]
Ign http://ppa.launchpad.net trusty InRelease
Get:15 http://deb.opera.com stable/non-free amd64 Packages [1'801 B]
Get:16 http://extras.ubuntu.com trusty/main i386 Packages [14 B]
Get:17 http://archive.canonical.com trusty/partner Translation-en [4'593 B]
Get:18 http://ppa.launchpad.net trusty InRelease [15.5 kB]
Get:19 http://deb.opera.com stable/non-free i386 Packages [1'798 B]
Get:20 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Ign http://linux.dropbox.com trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Get:21 http://ppa.launchpad.net trusty Release.gpg [316 B]
Get:22 http://ppa.launchpad.net trusty/main amd64 Packages [3'278 B]
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:23 http://ppa.launchpad.net trusty/main i386 Packages [3'272 B]
Get:24 http://ppa.launchpad.net trusty/main Translation-en [1'839 B]
Get:25 http://linux.dropbox.com trusty Release.gpg [489 B]
Get:26 http://ppa.launchpad.net trusty Release.gpg [316 B]
Get:27 http://security.ubuntu.com trusty-security/main Sources [110 kB]
Ign http://deb.opera.com stable/non-free Translation-en
Get:28 http://ppa.launchpad.net trusty Release.gpg [316 B]
Ign http://deb.opera.com stable/non-free Translation-en
Get:29 http://ppa.launchpad.net trusty/main amd64 Packages [1'085 B]
Get:30 http://ppa.launchpad.net trusty/main i386 Packages [1'080 B]
Get:31 http://archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Get:32 http://ppa.launchpad.net trusty/main Translation-en [868 B]
Get:33 http://linux.dropbox.com trusty Release [2'601 B]
Get:34 http://ppa.launchpad.net trusty Release.gpg [316 B]
Get:35 http://ppa.launchpad.net trusty Release [15.1 kB]
Get:36 http://ppa.launchpad.net trusty Release [14.6 kB]
Get:37 http://security.ubuntu.com trusty-security/restricted Sources [4'035 B]
Get:38 http://linux.dropbox.com trusty/main amd64 Packages [1'148 B]
Get:39 http://ppa.launchpad.net trusty Release [15.1 kB]
Get:40 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:41 http://ppa.launchpad.net trusty Release [14.0 kB]
Get:42 http://security.ubuntu.com trusty-security/universe Sources [34.1 kB]
Get:43 http://archive.ubuntu.com trusty-updates/main Sources [270 kB]
Get:44 http://ppa.launchpad.net trusty/main amd64 Packages [606 B]
Get:45 http://linux.dropbox.com trusty/main i386 Packages [1'148 B]
Get:46 http://ppa.launchpad.net trusty/main i386 Packages [610 B]
Get:47 http://security.ubuntu.com trusty-security/multiverse Sources [2'750 B]
Get:48 http://security.ubuntu.com trusty-security/main amd64 Packages [448 kB]
Get:49 http://ppa.launchpad.net trusty/main Translation-en [239 B]
Get:50 http://ppa.launchpad.net trusty/main amd64 Packages [582 B]
Get:51 http://ppa.launchpad.net trusty/main i386 Packages [584 B]
Get:52 http://ppa.launchpad.net trusty/main Translation-en [261 B]
Get:53 http://ppa.launchpad.net trusty/main amd64 Packages [1'208 B]
Get:54 http://ppa.launchpad.net trusty/main i386 Packages [1'208 B]
Get:55 http://ppa.launchpad.net trusty/main Translation-en [894 B]
Get:56 http://ppa.launchpad.net trusty/main amd64 Packages [762 B]
Get:57 http://ppa.launchpad.net trusty/main i386 Packages [755 B]
Get:58 http://archive.ubuntu.com trusty-updates/restricted Sources [5'352 B]
Get:59 http://archive.ubuntu.com trusty-updates/universe Sources [151 kB]
Ign http://ppa.launchpad.net trusty/main Translation-en
Ign http://linux.dropbox.com trusty/main Translation-en
Get:60 http://archive.ubuntu.com trusty-updates/multiverse Sources [5'946 B]
Get:61 http://security.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Get:62 http://archive.ubuntu.com trusty-updates/main amd64 Packages [740 kB]
Get:63 http://security.ubuntu.com trusty-security/universe amd64 Packages [125 kB]
Get:64 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4'991 B]
Get:65 http://security.ubuntu.com trusty-security/main i386 Packages [422 kB]
Get:66 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Get:67 http://security.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Get:68 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [356 kB]
Get:69 http://security.ubuntu.com trusty-security/universe i386 Packages [126 kB]
Get:70 http://security.ubuntu.com trusty-security/multiverse i386 Packages [5'175 B]
Get:71 http://security.ubuntu.com trusty-security/main Translation-en [244 kB]
Get:72 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [13.2 kB]
Get:73 http://archive.ubuntu.com trusty-updates/main i386 Packages [710 kB]
Get:74 http://security.ubuntu.com trusty-security/multiverse Translation-en [2'570 B]
Get:75 http://security.ubuntu.com trusty-security/restricted Translation-en [3'206 B]
Get:76 http://security.ubuntu.com trusty-security/universe Translation-en [74.0 kB]
Get:77 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:78 http://archive.ubuntu.com trusty-updates/universe i386 Packages [357 kB]
Get:79 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [13.6 kB]
Get:80 http://archive.ubuntu.com trusty-updates/main Translation-en [370 kB]
Get:81 http://archive.ubuntu.com trusty-updates/multiverse Translation-en [7'227 B]
Get:82 http://archive.ubuntu.com trusty-updates/restricted Translation-en [3'699 B]
Get:83 http://archive.ubuntu.com trusty-updates/universe Translation-en [186 kB]
Get:84 http://archive.ubuntu.com trusty-backports/main Sources [8'696 B]
Get:85 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:86 http://archive.ubuntu.com trusty-backports/universe Sources [34.5 kB]
Get:87 http://archive.ubuntu.com trusty-backports/multiverse Sources [1'898 B]
Get:88 http://archive.ubuntu.com trusty-backports/main amd64 Packages [9'782 B]
Get:89 http://archive.ubuntu.com trusty-backports/restricted amd64 Packages [28 B]
Get:90 http://archive.ubuntu.com trusty-backports/universe amd64 Packages [41.3 kB]
Get:91 http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1'571 B]
Get:92 http://archive.ubuntu.com trusty-backports/main i386 Packages [9'797 B]
Get:93 http://archive.ubuntu.com trusty-backports/restricted i386 Packages [28 B]
Get:94 http://archive.ubuntu.com trusty-backports/universe i386 Packages [41.4 kB]
Get:95 http://archive.ubuntu.com trusty-backports/multiverse i386 Packages [1'552 B]
Get:96 http://archive.ubuntu.com trusty-backports/main Translation-en [5'843 B]
Get:97 http://archive.ubuntu.com trusty-backports/multiverse Translation-en [1'215 B]
Get:98 http://archive.ubuntu.com trusty-backports/restricted Translation-en [28 B]
Get:99 http://archive.ubuntu.com trusty-backports/universe Translation-en [35.9 kB]
Get:100 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:101 http://archive.ubuntu.com trusty/main Sources [1'064 kB]
Get:102 http://archive.ubuntu.com trusty/restricted Sources [5'433 B]
Get:103 http://archive.ubuntu.com trusty/universe Sources [6'399 kB]
Get:104 http://archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:105 http://archive.ubuntu.com trusty/main amd64 Packages [1'350 kB]
Get:106 http://archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Get:107 http://archive.ubuntu.com trusty/universe amd64 Packages [5'859 kB]
Get:108 http://archive.ubuntu.com trusty/multiverse amd64 Packages [132 kB]
Get:109 http://archive.ubuntu.com trusty/main i386 Packages [1'348 kB]
Get:110 http://archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
Get:111 http://archive.ubuntu.com trusty/universe i386 Packages [5'866 kB]
Get:112 http://archive.ubuntu.com trusty/multiverse i386 Packages [134 kB]
Get:113 http://archive.ubuntu.com trusty/main Translation-en [762 kB]
Get:114 http://archive.ubuntu.com trusty/multiverse Translation-en [102 kB]
Get:115 http://archive.ubuntu.com trusty/restricted Translation-en [3'457 B]
Get:116 http://archive.ubuntu.com trusty/universe Translation-en [4'089 kB]
Fetched 32.8 MB in 35s (928 kB/s)
Reading package lists... Done
etienne@Aspire-E1-571:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://deb.opera.com stable InRelease
Ign http://archive.canonical.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security InRelease
Hit http://deb.opera.com stable InRelease
Hit http://archive.canonical.com trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty InRelease
Hit http://deb.opera.com stable/non-free amd64 Packages
Hit http://archive.canonical.com trusty Release
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://extras.ubuntu.com trusty Release
Ign http://ppa.launchpad.net trusty InRelease
Hit http://deb.opera.com stable/non-free i386 Packages
Hit http://security.ubuntu.com trusty-security/restricted Sources
Ign http://ppa.launchpad.net trusty InRelease
Hit http://archive.canonical.com trusty/partner amd64 Packages
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Ign http://archive.ubuntu.com trusty InRelease
Hit http://deb.opera.com stable/non-free amd64 Packages
Hit http://ppa.launchpad.net trusty InRelease
Hit http://archive.canonical.com trusty/partner i386 Packages
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://deb.opera.com stable/non-free i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Ign http://ppa.launchpad.net trusty InRelease
Hit http://archive.canonical.com trusty/partner Translation-en
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://linux.dropbox.com trusty InRelease
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-backports InRelease
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://deb.opera.com stable/non-free Translation-en
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://linux.dropbox.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Ign http://deb.opera.com stable/non-free Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://ppa.launchpad.net trusty Release
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://ppa.launchpad.net trusty Release
Hit http://archive.ubuntu.com trusty-updates/restricted Sources
Hit http://ppa.launchpad.net trusty Release
Hit http://ppa.launchpad.net trusty Release
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://linux.dropbox.com trusty Release
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://linux.dropbox.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Ign http://ppa.launchpad.net trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://linux.dropbox.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://archive.ubuntu.com trusty-backports/main Sources
Hit http://archive.ubuntu.com trusty-backports/restricted Sources
Hit http://archive.ubuntu.com trusty-backports/universe Sources
Ign http://linux.dropbox.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-backports/main Translation-en
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Reading package lists... Done
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:
 php5-cli : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) but 5.5.9+dfsg-1ubuntu4.11 is installed
 php5-readline : Depends: php5-cli (= 5.5.9+dfsg-1ubuntu4.11) but 5.5.9+dfsg-1ubuntu4.14 is installed
E: Unmet dependencies. Try using -f.
etienne@Aspire-E1-571:~$ -f
-f: Befehl nicht gefunden.
etienne@Aspire-E1-571:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libapache2-mod-php5 php5-common php5-mysql php5-readline php5-snmp
Suggested packages:
  php-pear php5-user-cache
The following packages will be upgraded:
  libapache2-mod-php5 php5-common php5-mysql php5-readline php5-snmp
5 upgraded, 0 newly installed, 0 to remove and 427 not upgraded.
2 not fully installed or removed.
Need to get 4'700 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main dpkg amd64 1.17.5ubuntu5.5 [1'953 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-mysql amd64 5.5.9+dfsg-1ubuntu4.14 [62.9 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libapache2-mod-php5 amd64 5.5.9+dfsg-1ubuntu4.14 [2'210 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-snmp amd64 5.5.9+dfsg-1ubuntu4.14 [19.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-readline amd64 5.5.9+dfsg-1ubuntu4.14 [12.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-common amd64 5.5.9+dfsg-1ubuntu4.14 [443 kB]
Fetched 4'700 kB in 5s (940 kB/s)
dpkg: error processing package dpkg (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 dpkg
E: Sub-process /usr/bin/dpkg returned an error code (1)
etienne@Aspire-E1-571:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Lubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130423.1)]/ raring main multiverse restricted universe
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
     6 deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
    11 deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team. Also, please note that software in universe WILL NOT receive any
    15 ## review or updates from the Ubuntu security team.
    16 deb http://archive.ubuntu.com/ubuntu/ trusty universe
    17 deb-src http://archive.ubuntu.com/ubuntu/ trusty universe
    18 deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe
    19 deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates universe
    20
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    22 ## team, and may not be under a free licence. Please satisfy yourself as to
    23 ## your rights to use the software. Also, please note that software in
    24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    25 ## security team.
    26 deb http://archive.ubuntu.com/ubuntu/ trusty multiverse
    27 deb-src http://archive.ubuntu.com/ubuntu/ trusty multiverse
    28 deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    29 deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    30
    31 ## N.B. software from this repository may not have been tested as
    32 ## extensively as that contained in the main release, although it includes
    33 ## newer versions of some applications which may provide useful features.
    34 ## Also, please note that software in backports WILL NOT receive any review
    35 ## or updates from the Ubuntu security team.
    36 deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    37 deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    38
    39 deb http://security.ubuntu.com/ubuntu trusty-security main restricted
    40 deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
    41 deb http://security.ubuntu.com/ubuntu trusty-security universe
    42 deb-src http://security.ubuntu.com/ubuntu trusty-security universe
    43 deb http://security.ubuntu.com/ubuntu trusty-security multiverse
    44 deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
    45
    46 ## Uncomment the following two lines to add software from Canonical's
    47 ## 'partner' repository.
    48 ## This software is not part of Ubuntu, but is offered by Canonical and the
    49 ## respective vendors as a service to Ubuntu users.
    50 deb http://archive.canonical.com/ubuntu trusty partner
    51 # deb-src http://archive.canonical.com/ubuntu raring partner
    52
    53 ## This software is not part of Ubuntu, but is offered by third-party
    54 ## developers who want to ship their latest software.
    55 deb http://extras.ubuntu.com/ubuntu trusty main
    56 deb-src http://extras.ubuntu.com/ubuntu trusty main
    57 # deb http://www.openprinting.org/download/printdriver/debian/ lsb3.2 main-nonfree # Bei Aktualisierung zu saucy deaktiviert

/etc/apt/sources.list.d/opera.list

     1 # This file makes sure that Opera Browser is kept up-to-date
     2 # as part of regular system upgrades
     3
     4 deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases)
     5
     6 # The line above will make sure you get all final public releases.
     7 # Uncomment the following line if you want to get alpha and beta
     8 # releases, too.
     9
    10 # deb http://deb.opera.com/opera-beta/ stable non-free #Opera Browser (beta releases)

/etc/apt/sources.list.d/linrunner-tlp-trusty.list

     1 deb http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main

/etc/apt/sources.list.d/ffdiaporamateam-stable-raring.list

     1 # deb http://ppa.launchpad.net/ffdiaporamateam/stable/ubuntu saucy main # Bei Aktualisierung zu saucy deaktiviert
     2 # deb-src http://ppa.launchpad.net/ffdiaporamateam/stable/ubuntu raring main
     3 # deb-src http://ppa.launchpad.net/ffdiaporamateam/stable/ubuntu raring main
     4 # deb-src http://ppa.launchpad.net/ffdiaporamateam/stable/ubuntu raring main

/etc/apt/sources.list.d/alexmurray-indicator-sensors-daily-trusty.list

     1 deb http://ppa.launchpad.net/alexmurray/indicator-sensors-daily/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/alexmurray/indicator-sensors-daily/ubuntu trusty main

/etc/apt/sources.list.d/geogebra.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb http://www.geogebra.net/linux/ stable main # Bei Aktualisierung zu saucy deaktiviert

/etc/apt/sources.list.d/igotu2gpx-daily-trusty.list

     1 deb http://ppa.launchpad.net/igotu2gpx/daily/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/igotu2gpx/daily/ubuntu trusty main

/etc/apt/sources.list.d/opera-developer.list

     1 # This file makes sure that Opera Browser is kept up-to-date
     2 # as part of regular system upgrades
     3
     4 deb http://deb.opera.com/opera-developer/ stable non-free #Opera Browser (final releases)
     5
     6

/etc/apt/sources.list.d/wuala.list

     1 # Wuala repository
     2 # deb http://repo.wuala.com stable main # Bei Aktualisierung zu saucy deaktiviert

/etc/apt/sources.list.d/cdemu-ppa-trusty.list

     1 deb http://ppa.launchpad.net/cdemu/ppa/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/cdemu/ppa/ubuntu trusty main
     3 # deb-src http://ppa.launchpad.net/cdemu/ppa/ubuntu trusty main

/etc/apt/sources.list.d/wseverin-ppa-trusty.list

     1 deb http://ppa.launchpad.net/wseverin/ppa/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/wseverin/ppa/ubuntu trusty main

/etc/apt/sources.list.d/dropbox.list

     1 deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu trusty main

/etc/apt/sources.list.d/webupd8team-java-raring.list

     1 # deb http://ppa.launchpad.net/webupd8team/java/ubuntu saucy main # Bei Aktualisierung zu saucy deaktiviert
     2 # deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu raring main

/etc/apt/sources.list.d/logari81-ppa-raring.list

     1 # deb http://ppa.launchpad.net/logari81/ppa/ubuntu saucy main # Bei Aktualisierung zu saucy deaktiviert
     2 # deb-src http://ppa.launchpad.net/logari81/ppa/ubuntu raring main

/etc/apt/sources.list.d/skunk-pepper-flash-saucy.list

     1 # deb http://ppa.launchpad.net/skunk/pepper-flash/ubuntu trusty main # Bei Aktualisierung zu trusty deaktiviert
     2 # deb-src http://ppa.launchpad.net/skunk/pepper-flash/ubuntu saucy main

/etc/apt/sources.list.d/webupd8team-y-ppa-manager-trusty.list

     1 deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu trusty main
     2 # deb-src http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu trusty main

/etc/apt/sources.list.d/jitsi.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb http://download.jitsi.org/deb unstable/ # Bei Aktualisierung zu trusty deaktiviert
etienne@Aspire-E1-571:~$ sudo dpkg --audit
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
 dpkg Debian package management system

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 php5-cli command-line interpreter for the php5 scripting language

etienne@Aspire-E1-571:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

As these are clearly part of both bugs linked, you don't need a question. All discussion should be on the bug to keep it in one place.

Revision history for this message
Etienne Ruedin (ruedin) said :
#2

Thank you for your confirmation. I was not sure , because I have no experience in the evaluation of the information from the terminal.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What is the output of the command

apt-cache policy dpkg

Revision history for this message
Etienne Ruedin (ruedin) said :
#4

etienne@Aspire-E1-571:~$ apt-cache policy dpkg
dpkg:
  Installiert: 1.17.5ubuntu5.5
  Installationskandidat: 1.17.5ubuntu5.5
  Versionstabelle:
 *** 1.17.5ubuntu5.5 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1.17.5ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
etienne@Aspire-E1-571:~$

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#5

Try downloading http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.17.5ubuntu5.5_amd64.deb to your Downloads folder

Open a terminal and issue the command

dpkg -i ~/Downloads/dpkg_1.17.5ubuntu5.5_amd64.deb

and report the results.

Revision history for this message
Etienne Ruedin (ruedin) said :
#6

etienne@Aspire-E1-571:~$ dpkg -i ~/Downloads/dpkg_1.17.5ubuntu5.5_amd64.deb
dpkg: Fehler: Angeforderte Operation benötigt Superuser-Rechte

etienne@Aspire-E1-571:~$ sudo dpkg -i ~/Downloads/dpkg_1.17.5ubuntu5.5_amd64.deb
[sudo] password for etienne:
Vormals nicht ausgewähltes Paket dpkg wird gewählt.
(Lese Datenbank ... 691503 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../dpkg_1.17.5ubuntu5.5_amd64.deb ...
Entpacken von dpkg (1.17.5ubuntu5.5) über (1.17.5ubuntu5.5) ...
dpkg (1.17.5ubuntu5.5) wird eingerichtet ...
Trigger für man-db (2.6.7.1-1ubuntu1) werden verarbeitet ...
etienne@Aspire-E1-571:~$

After that, I had an Error message:

Das Paketsystem ist beschädigt

Überprüfen Sie, ob Sie Software-Paketquellen von Drittanbietern nutzen. Wenn dies der Fall ist, so deaktivieren Sie diese, da sie häufig eine Fehlerquelle sind.
Führen Sie außerdem in einem Terminal den folgenden Befehl aus: apt-get install -f

Die folgenden Pakete haben nicht erfüllte Abhängigkeiten:

php5-cli: Depends: zlib1g (>= 1:1.1.4) aber 1:1.2.8.dfsg-1ubuntu1 ist bereits installiert
          Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.14) aber 5.5.9+dfsg-1ubuntu4.11 ist bereits installiert
php5-readline: Depends: phpapi-20121212 es ist jedoch ein virtuelles Paket
               Depends: php5-common (= 5.5.9+dfsg-1ubuntu4.11) aber 5.5.9+dfsg-1ubuntu4.11 ist bereits installiert
               Depends: php5-cli (= 5.5.9+dfsg-1ubuntu4.11) aber 5.5.9+dfsg-1ubuntu4.14 ist bereits installiert

Then I followed the instructions from the error message: apt-get install -f
I was surprised to see that this works, as it did not work several times before (before downloading #5).

After that, Software Updated worked well, with no error message.
I write this now after restarting the computer.

Thank you very much for your help.

Revision history for this message
Etienne Ruedin (ruedin) said :
#7

Thanks Manfred Hampl, that solved my question.