libxml dependency problems

Asked by Par

I tried upgrading libxml by way of the update-manager, but got

The following packages have unmet dependencies:

libxml2: Depends: libc6 (>= 2.15) but 2.15-0ubuntu10.7 is installed
         Depends: zlib1g (>= 1:1.2.3.3.dfsg) but 1:1.2.3.4.dfsg-3ubuntu4 is installed
libxml2-dbg: Depends: libxml2 (= 2.7.8.dfsg-5.1ubuntu4.11) but 2.7.8.dfsg-5.1ubuntu4.9 is installed
libxml2:i386: Depends: libc6 (>= 2.15) but 2.15-0ubuntu10.7 is installed
              Depends: zlib1g (>= 1:1.2.3.3.dfsg) but 1:1.2.3.4.dfsg-3ubuntu4 is installed

apt-get install -f returns an error (se below). Any advice for how to fix this?

par@corvus:~$ 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:
  libxml2
The following packages will be upgraded:
  libxml2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
15 not fully installed or removed.
Need to get 0 B/674 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: error processing libxml2 (--configure):
 libxml2:amd64 2.7.8.dfsg-5.1ubuntu4.9 cannot be configured because libxml2:i386 is in a different version (2.7.8.dfsg-5.1ubuntu4.11)
dpkg: error processing libxml2:i386 (--configure):
 libxml2:i386 2.7.8.dfsg-5.1ubuntu4.11 cannot be configured because libxml2:amd64 is in a different version (2.7.8.dfsg-5.1ubuntu4.9)
dpkg: dependency problems prevent configuration of libedataserver-1.2-15:
 libedataserver-1.2-15 depends on libxml2 (>= 2.7.4); however:
  Package libxml2 is not configured yet.
dpkg: error processing libedataserver-1.2-15 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcamel-1.2-29:
 libcamel-1.2-29 depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
dpkg: error processing libcamel-1.2-29 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libebackend-1.2-1:
 libebackend-1.2-1 depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
dpkg: error processing libebackend-1.2-1 (--configurNo apport report written because the error message indicates its a followup error from a previous failure.
                                                                              No apport report written because the error message indicates its a followup error from a previous failure.
                        No apport report written because MaxReports is reached already
      No apport report written because MaxReports is reached already
                                                                    No apport report written because MaxReports is reached already
                                                  No apport report written because MaxReports is reached already
                                No apport report written because MaxReports is reached already
              No apport report written because MaxReports is reached already
                                                                            No apport report written because MaxReports is reached already
                                                          No apport report written because MaxReports is reached already
                                        e):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libebook-1.2-12:
 libebook-1.2-12 depends on libcamel-1.2-29 (>= 3.2); however:
  Package libcamel-1.2-29 is not configured yet.
 libebook-1.2-12 depends on libcamel-1.2-29 (<< 3.3); however:
  Package libcamel-1.2-29 is not configured yet.
 libebook-1.2-12 depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
 libebook-1.2-12 depends on libxml2 (>= 2.7.4); however:
  Package libxml2 is not configured yet.
dpkg: error processing libebook-1.2-12 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libecal-1.2-10:
 libecal-1.2-10 depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
dpkg: error processing libecal-1.2-10 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libeNo apport report written because MaxReports is reached already
                                     No apport report written because MaxReports is reached already
                   No apport report written because MaxReports is reached already
 data-book-1.2-11:
 libedata-book-1.2-11 depends on libebackend-1.2-1 (>= 3.2.3); however:
  Package libebackend-1.2-1 is not configured yet.
 libedata-book-1.2-11 depends on libebook-1.2-12 (>= 3.2.3); however:
  Package libebook-1.2-12 is not configured yet.
 libedata-book-1.2-11 depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
dpkg: error processing libedata-book-1.2-11 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libedata-cal-1.2-13:
 libedata-cal-1.2-13 depends on libebackend-1.2-1 (>= 3.2.3); however:
  Package libebackend-1.2-1 is not configured yet.
 libedata-cal-1.2-13 depends on libecal-1.2-10 (>= 3.2.3); however:
  Package libecal-1.2-10 is not configured yet.
 libedata-cal-1.2-13 depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
dpkg: error processing libedata-cal-1.2-13 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of evolution-data-server:
 evolution-data-server depends on libcamel-1.2-29 (= 3.2.3-0ubuntu7.2); however:
  Package libcamel-1.2-29 is not configured yet.
 evolution-data-server depends on libebackend-1.2-1 (>= 3.2.3); however:
  Package libebackend-1.2-1 is not configured yet.
 evolution-data-server depends on libebook-1.2-12 (>= 3.2.3); however:
  Package libebook-1.2-12 is not configured yet.
 evolution-data-server depends on libecal-1.2-10 (>= 3.2.3); however:
  Package libecal-1.2-10 is not configured yet.
 evolution-data-server depends on libedata-book-1.2-11 (>= 3.2.3); however:
  Package libedata-book-1.2-11 is not configured yet.
 evolution-data-server depends on libedata-cal-1.2-13 (>= 3.2.3); however:
  Package libedata-cal-1.2-13 is not configured yet.
 evolution-data-server depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
 evolution-data-server depends on libxml2 (>= 2.7.4); however:
  Package libxml2 is not configured yet.
dpkg: error processing evolution-data-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libedataserverui-3.0-1:
 libedataserverui-3.0-1 depends on libcamel-1.2-29 (>= 3.2); however:
  Package libcamel-1.2-29 is not configured yet.
 libedataserverui-3.0-1 depends on libcamel-1.2-29 (<< 3.3); however:
  Package libcamel-1.2-29 is not configured yet.
 libedataserverui-3.0-1 depends on libebook-1.2-12 (>= 3.2.3); however:
  Package libebook-1.2-12 is not configured yet.
 libedataserverui-3.0-1 depends on libecal-1.2-10 (>= 3.2.3); however:
  Package libecal-1.2-10 is not configured yet.
 libedataserverui-3.0-1 depends on libedataserver-1.2-15 (>= 3.2.3); however:
  Package libedataserver-1.2-15 is not configured yet.
dpkg: error processing libedataserverui-3.0-1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpurple0:
 libpurple0 depends on libxml2 (>= 2.7.4); however:
  Package libxml2 is not configured yet.
dpkg: error processing libpurple0 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxml2-utils:
 libxml2-utils depends on libxml2 (>= 2.7.4); however:
  Package libxml2 is not configured yet.
dpkg: error processing libxml2-utils (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-libxml2:
 python-libxml2 depends on libxml2 (>= 2.7.4); however:
  Package libxml2 is not configured yet.
dpkg: error processing python-libxml2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxml2-dbg:
 libxml2-dbg depends on libxml2 (= 2.7.8.dfsg-5.1ubuntu4.11); however:
  Version of libxml2 on system is 2.7.8.dfsg-5.1ubuntu4.9.
dpkg: error processing libxml2-dbg (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libxml2
 libxml2:i386
 libedataserver-1.2-15
 libcamel-1.2-29
 libebackend-1.2-1
 libebook-1.2-12
 libecal-1.2-10
 libedata-book-1.2-11
 libedata-cal-1.2-13
 evolution-data-server
 libedataserverui-3.0-1
 libpurple0
 libxml2-utils
 python-libxml2
 libxml2-dbg
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

Try

sudo dpkg --install /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb

and copy/paste all output into this question document.

Revision history for this message
Par (8-par) said :
#2

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Par (8-par) said :
#3

This is what I got:

$ sudo dpkg --install /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb
dpkg: error processing /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb (--install):
 cannot access archive: No such file or directory
(Reading database ... 902334 files and directories currently installed.)
Preparing to replace libxml2 2.7.8.dfsg-5.1ubuntu4.9 (using .../libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb) ...
Unpacking replacement libxml2 ...
Setting up libxml2 (2.7.8.dfsg-5.1ubuntu4.11) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb

Looking into /var/cache/apt/archives I found libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb , a file named lock from 2012 and an empty partial-directory. OS I downloaded the files and tried again:

$ sudo dpkg --install /home/par/libxml/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb /home/par/libxml/libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb
(Reading database ... 902334 files and directories currently installed.)
Preparing to replace libxml2:i386 2.7.8.dfsg-5.1ubuntu4.11 (using .../libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb) ...
Unpacking replacement libxml2:i386 ...
Preparing to replace libxml2 2.7.8.dfsg-5.1ubuntu4.11 (using .../libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb) ...
Unpacking replacement libxml2 ...
Setting up libxml2:i386 (2.7.8.dfsg-5.1ubuntu4.11) ...
Setting up libxml2 (2.7.8.dfsg-5.1ubuntu4.11) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

So that solved the problem -- thank you! -- and only leaves the question of "why were they missing in the first place?" for me to ponder.

Revision history for this message
Par (8-par) said :
#4

This is what I got:

$ sudo dpkg --install /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb
dpkg: error processing /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb (--install):
 cannot access archive: No such file or directory
(Reading database ... 902334 files and directories currently installed.)
Preparing to replace libxml2 2.7.8.dfsg-5.1ubuntu4.9 (using .../libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb) ...
Unpacking replacement libxml2 ...
Setting up libxml2 (2.7.8.dfsg-5.1ubuntu4.11) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 /var/cache/apt/archives/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb

Looking into /var/cache/apt/archives I found libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb , a file named lock from 2012 and an empty partial-directory. OS I downloaded the files and tried again:

$ sudo dpkg --install /home/par/libxml/libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb /home/par/libxml/libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb
(Reading database ... 902334 files and directories currently installed.)
Preparing to replace libxml2:i386 2.7.8.dfsg-5.1ubuntu4.11 (using .../libxml2_2.7.8.dfsg-5.1ubuntu4.11_i386.deb) ...
Unpacking replacement libxml2:i386 ...
Preparing to replace libxml2 2.7.8.dfsg-5.1ubuntu4.11 (using .../libxml2_2.7.8.dfsg-5.1ubuntu4.11_amd64.deb) ...
Unpacking replacement libxml2 ...
Setting up libxml2:i386 (2.7.8.dfsg-5.1ubuntu4.11) ...
Setting up libxml2 (2.7.8.dfsg-5.1ubuntu4.11) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

So that solved the problem -- thank you! -- and only leaves the question of "why were they missing in the first place?" for me to ponder.

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

Re: "why were they missing in the first place?"
I assume they both were there (from some apt-get commands), but apparently just the amd64 one was there. There is nothing to worry about. You successfully identify the files to download, and the re-installation of libxml2 went ok.
Just to make sure everything else in the package management is also working as it should, do the commands

sudo apt-get dist-upgrade
sudo apt-get dist-upgrade
sudo dpkg --audit

work well (i.e. provide "0 packages" at the second run of apt-get, resp. no output at all for dpkg)?

Revision history for this message
Par (8-par) said :
#6

First run it added a few packages, the second had nohting left to do, and the audit gave no output. All clean and fixed. Once again, thank you for your assistance.

$ sudo apt-get dist-upgrade
[sudo] password for par:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
13 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
Setting up libedataserver-1.2-15 (3.2.3-0ubuntu7.2) ...
Setting up libcamel-1.2-29 (3.2.3-0ubuntu7.2) ...
Setting up libebackend-1.2-1 (3.2.3-0ubuntu7.2) ...
Setting up libebook-1.2-12 (3.2.3-0ubuntu7.2) ...
Setting up libecal-1.2-10 (3.2.3-0ubuntu7.2) ...
Setting up libedata-book-1.2-11 (3.2.3-0ubuntu7.2) ...
Setting up libedata-cal-1.2-13 (3.2.3-0ubuntu7.2) ...
Setting up evolution-data-server (3.2.3-0ubuntu7.2) ...
Setting up libedataserverui-3.0-1 (3.2.3-0ubuntu7.2) ...
Setting up libpurple0 (1:2.10.3-0ubuntu1.6) ...
Setting up libxml2-utils (2.7.8.dfsg-5.1ubuntu4.11) ...
Setting up python-libxml2 (2.7.8.dfsg-5.1ubuntu4.11) ...
Setting up libxml2-dbg (2.7.8.dfsg-5.1ubuntu4.11) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
par@corvus:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
par@corvus:~$ sudo dpkg --audit
par@corvus:~$