dpkg: erro processando pacotes depois de reinstalar o dpkg

1

De alguma forma eu quebrei o gerenciador de pacotes no meu servidor Ubuntu. Primeiro recebi o seguinte erro:

root@vmd11340:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  apt apt-transport-https apt-utils dosfstools firefox google-chrome-stable imagemagick imagemagick-6.q16 imagemagick-common libapache2-mod-php5 libapt-inst1.7 libapt-pkg4.16 libarchive13 libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev
  libexpat1 libgd3 libimage-magick-perl libimage-magick-q16-perl libldap-2.4-2 libmagick++-6.q16-5v5 libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra libmagickwand-6.q16-2 libndp0 libsmbclient libwbclient0 libxml2 linux-libc-dev
  multiarch-support php5 php5-cli php5-common php5-gd php5-mysql php5-readline samba-libs thunderbird
41 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/157 MB of archives.
After this operation, 5,339 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: unknown force/refuse option 'unsafe-io'

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'dselect' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@vmd11340:~#

Mas poderia corrigir isso primeiro executando rm -rf /var/lib/apt/lists/* e reinstalando o dpkg (veja não consigo instalar o software - posso consertar o dpkg em falta? ). Depois disso, o servidor reclamou de algumas dobras em falta. Eu os criei com

mkdir /var/lib/dpkg/info/format-new/
mkdir /var/lib/dpkg/info/
mkdir /var/lib/dpkg/info/format-new/
rm -rf /var/lib/dpkg/info/format-new

Mas agora estou recebendo o seguinte erro executando sudo apt-get install –f ou sudo dpkg --configure -a e não tenho ideia de como corrigir isso.

root@vmd11340:~# 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 1413 not upgraded.
14 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package libc6:amd64 (--configure):
 package libc6:amd64 2.23-0ubuntu3 cannot be configured because libc6:i386 is at a different version (2.21-0ubuntu4.1)
dpkg: dependency problems prevent configuration of libc-bin:
 libc-bin depends on libc6 (>> 2.23); however:
  Package libc6:amd64 is not configured yet.
 libc-bin depends on libc6 (<< 2.24); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing package libc-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of locales:
 locales depends on libc-bin (>> 2.23); however:
  Package libc-bin is not configured yet.

dpkg: error processing package locales (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libplymouth4:amd64:
 libplymouth4:amd64 depends on libc6 (>= 2.14); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing package libplymouth4:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpango-1.0-0:amd64:
 libpango-1.0-0:amd64 depends on libc6 (>= 2.14); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing package libpango-1.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plymouth:
 plymouth depends on libc6 (>= 2.14); however:
  Package libc6:amd64 is not configured yet.
 plymouth depends on libplymouth4 (>= 0.9.2); however:
  Package libplymouth4:amd64 is not configured yet.

dpkg: error processing package plymouth (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plymouth-theme-ubuntu-text:
 plymouth-theme-ubuntu-text depends on libc6 (>= 2.2.5); however:
  Package libc6:amd64 is not configured yet.
 plymouth-theme-ubuntu-text depends on libplymouth4 (>= 0.9.2); however:
  Package libplymouth4:amd64 is not configured yet.
 plymouth-theme-ubuntu-text depends on plymouth (= 0.9.2-3ubuntu13.1); however:
  Package plymouth is not configured yet.

dpkg: error processing package plymouth-theme-ubuntu-text (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc-dev-bin:
 libc-dev-bin depends on libc6 (>> 2.23); however:
  Package libc6:amd64 is not configured yet.
 libc-dev-bin depends on libc6 (<< 2.24); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing package libc-dev-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dev:amd64:
 libc6-dev:amd64 depends on libc6 (= 2.23-0ubuntu3); however:
  Package libc6:amd64 is not configured yet.
 libc6-dev:amd64 depends on libc-dev-bin (= 2.23-0ubuntu3); however:
  Package libc-dev-bin is not configured yet.

dpkg: error processing package libc6-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpangoft2-1.0-0:amd64:
 libpangoft2-1.0-0:amd64 depends on libc6 (>= 2.4); however:
  Package libc6:amd64 is not configured yet.
 libpangoft2-1.0-0:amd64 depends on libpango-1.0-0 (>= 1.37.2); however:
  Package libpango-1.0-0:amd64 is not configured yet.

dpkg: error processing package libpangoft2-1.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpangoxft-1.0-0:amd64:
 libpangoxft-1.0-0:amd64 depends on libc6 (>= 2.4); however:
  Package libc6:amd64 is not configured yet.
 libpangoxft-1.0-0:amd64 depends on libpango-1.0-0 (>= 1.22.0); however:
  Package libpango-1.0-0:amd64 is not configured yet.
 libpangoxft-1.0-0:amd64 depends on libpangoft2-1.0-0 (>= 1.14.0); however:
  Package libpangoft2-1.0-0:amd64 is not configured yet.

dpkg: error processing package libpangoxft-1.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpangocairo-1.0-0:amd64:
 libpangocairo-1.0-0:amd64 depends on libc6 (>= 2.4); however:
  Package libc6:amd64 is not configured yet.
 libpangocairo-1.0-0:amd64 depends on libpango-1.0-0 (>= 1.37.5); however:
  Package libpango-1.0-0:amd64 is not configured yet.
 libpangocairo-1.0-0:amd64 depends on libpangoft2-1.0-0 (>= 1.28.1); however:
  Package libpangoft2-1.0-0:amd64 is not configured yet.

dpkg: error processing package libpangocairo-1.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpango1.0-0:amd64:
 libpango1.0-0:amd64 depends on libpango-1.0-0 (= 1.38.1-1); however:
  Package libpango-1.0-0:amd64 is not configured yet.
 libpango1.0-0:amd64 depends on libpangocairo-1.0-0 (= 1.38.1-1); however:
  Package libpangocairo-1.0-0:amd64 is not configured yet.
 libpango1.0-0:amd64 depends on libpangoft2-1.0-0 (= 1.38.1-1); however:
  Package libpangoft2-1.0-0:amd64 is not configured yet.
 libpango1.0-0:amd64 depends on libpangoxft-1.0-0 (= 1.38.1-1); however:
  Package libpangoxft-1.0-0:amd64 is not configured yet.

dpkg: error processing package libpango1.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libc6-dbg:amd64:
 libc6-dbg:amd64 depends on libc6 (= 2.23-0ubuntu3); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing package libc6-dbg:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6:amd64
 libc-bin
 locales
 libplymouth4:amd64
 libpango-1.0-0:amd64
 plymouth
 plymouth-theme-ubuntu-text
 libc-dev-bin
 libc6-dev:amd64
 libpangoft2-1.0-0:amd64
 libpangoxft-1.0-0:amd64
 libpangocairo-1.0-0:amd64
 libpango1.0-0:amd64
 libc6-dbg:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vmd11340:~#

Alguém tem uma ideia de como corrigir isso?

    
por ocin007 18.06.2016 / 23:55

0 respostas