unmet dependency e debconf: Problema ao configurar o banco de dados definido pela sub-rotina 3 do /etc/debconf.conf

1

todos! Eu tenho procurado por uma solução para este problema há semanas, mas nada que eu tentei funcionou. Eu estou executando uma versão ARM do Ubuntu 14.04 Server em um XU4 Odroid. Eu não estou fazendo muito com o servidor, e ele estava funcionando bem até que eu tentei atualizar e atualizar o dia em que as vulnerabilidades do OpenSSH foram encontradas (já faz um tempo ...). De qualquer forma, eu continuo recebendo erros que fazem com que a compilação seja cancelada durante a atualização, mesmo quando forçada. Há também um problema de dependência não atendido.

Esta é a minha primeira vez postando nesses fóruns, então eu posso precisar de um pouco de ajuda para encontrar os registros necessários para vocês, mas vou copiar a saída inicial de 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:
   libc6
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3,905 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: Problem setting up the database defined by stanza 3 of /etc/debconf.conf.
Global symbol "$env_unix_rpt" requires explicit package name at /usr/lib/perl/5.18/Cwd.pm line 58, <DEBCONF_CONFIG> chunk 3.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.18/Cwd.pm line 647, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at (eval 24) line 2, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at (eval 24) line 2, <DEBCONF_CONFIG> chunk 3.
Setting up debconf (1.5.51ubuntu2) ...
debconf: Problem setting up the database defined by stanza 3 of /etc/debconf.conf.
Global symbol "$env_unix_rpt" requires explicit package name at /usr/lib/perl/5.18/Cwd.pm line 58, <DEBCONF_CONFIG> chunk 3.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.18/Cwd.pm line 647, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at (eval 23) line 2, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at (eval 23) line 2, <DEBCONF_CONFIG> chunk 3.
dpkg: error processing package debconf (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)

Saída de /etc/debconf.conf :

Name: configdb
Driver: Stack
Stack: config, passwords

# Set up the templatedb database, which is a single flat text file
# by default.
Name: templatedb
Driver: File
Mode: 644
Filename: /var/cache/debconf/templates.dat

# Well that was pretty straightforward, and it will be enough for most
# people's needs, but debconf's database drivers can be used to do much
# more interesting things. For example, suppose you want to use config
# data from another host, which is mounted over nfs or perhaps the database
# is accessed via LDAP. You don't want to write to the remote debconf database,
# just read from it, so you still need a local database for local changes.
#
# A remote NFS mounted database, read-only. It is optional; if debconf
# fails to use it it will not abort.
#Name: remotedb
#Driver: DirTree
#Directory: /mnt/otherhost/var/cache/debconf/config
#Readonly: true
#Required: false
#
# A remote LDAP database. It is also read-only. The password is really
# only necessary if the database is not accessible anonymously.
# Option KeyByKey instructs the backend to retrieve keys from the LDAP
# server individually (when they are requested), instead of loading all
# keys at startup. The default is 0, and should only be enabled if you
# want to track accesses to individual keys on the LDAP server side.
#Name: remotedb
#Driver: LDAP
#Server: remotehost
#BaseDN: cn=debconf,dc=domain,dc=com
#BindDN: uid=admin,dc=domain,dc=com
#BindPasswd: secret
#KeyByKey: 0
#
# A stack consisting of two databases. Values will be read from
# the first database in the stack to contain a value. In this example,
# writes always go to the first database.
#Name: fulldb
#Driver: Stack
#Stack: configdb, remotedb
#
# In this example, we'd use Config: fulldb at the top of the file
# to make it use the combination of the databases.
#
# Even more complex and interesting setups are possible, see the
# debconf.conf(5) page for details.

EDIT2: saída de apt-cache policy debconf

debconf:
  Installed: 1.5.51ubuntu2
  Candidate: 1.5.51ubuntu2
  Version table:
 *** 1.5.51ubuntu2 0
        100 /var/lib/dpkg/status

Eu não editei o debconf.conf sozinho.

EDIT3: saída de apt-get install --reinstall -o Dpkg::Options::=--force-confmiss debconf

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:
 libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.7) but 2.19-0ubuntu6.6 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

O apt-get update funciona bem. conteúdo de /etc/apt/sources.list:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted

deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse

deb http://deb.torproject.org/torproject.org trusty main
deb-src http://deb.torproject.org/torproject.org trusty main

EDIT4: depois de executar apt-get download debconf && sudo dpkg -i --force-confmiss debconf_*.deb Eu tenho isso como uma saída:

Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main debconf all 1.5.51ubuntu2 [136 kB]
Fetched 136 kB in 0s (149 kB/s)   
(Reading database ... 26519 files and directories currently installed.)
Preparing to unpack debconf_1.5.51ubuntu2_all.deb ...
Unpacking debconf (1.5.51ubuntu2) over (1.5.51ubuntu2) ...
Setting up debconf (1.5.51ubuntu2) ...
debconf: Problem setting up the database defined by stanza 3 of /etc/debconf.conf.
Global symbol "$env_unix_rpt" requires explicit package name at /usr/lib/perl/5.18/Cwd.pm line 58, <DEBCONF_CONFIG> chunk 3.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.18/Cwd.pm line 647, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at (eval 23) line 2, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at (eval 23) line 2, <DEBCONF_CONFIG> chunk 3.
dpkg: error processing package debconf (--install):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 debconf

Isso é o que eu tenho visto muito. Nomes de pacotes explícitos necessários para instalar qualquer coisa.

EDIT5: Depois de executar a seguinte série de comandos

sudo apt-get download debconf
sudo dpkg-deb -x debconf_1.5.51ubuntu2_all.deb /
sudo dpkg -i --force-confmiss debconf_*.deb
sudo apt-get install -f

Eu recebi a seguinte saída. (Os 3 primeiros passos foram bem sucedidos. O passo final é onde eu recebi este erro)

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6 ubuntu-minimal
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6 ubuntu-minimal
2 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3,907 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: Problem setting up the database defined by stanza 3 of /etc/debconf.conf.
Global symbol "$env_unix_rpt" requires explicit package name at /usr/lib/perl/5.18/Cwd.pm line 58, <DEBCONF_CONFIG> chunk 3.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.18/Cwd.pm line 647, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at (eval 24) line 2, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at (eval 24) line 2, <DEBCONF_CONFIG> chunk 3.
E: Sub-process /usr/bin/dpkg received a segmentation fault.

EDIT6: Depois de sobrescrever manualmente o arquivo debconf.conf com o que eu consegui extrair do .deb do repositório, eu tentei sudo apt-get -f install

A saída foi

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc6
1 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3,905 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
debconf: Problem setting up the database defined by stanza 3 of /etc/debconf.conf.
Global symbol "$env_unix_rpt" requires explicit package name at /usr/lib/perl/5.18/Cwd.pm line 58, <DEBCONF_CONFIG> chunk 3.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.18/Cwd.pm line 647, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at (eval 24) line 2, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at (eval 24) line 2, <DEBCONF_CONFIG> chunk 3.
Setting up debconf (1.5.51ubuntu2) ...
debconf: Problem setting up the database defined by stanza 3 of /etc/debconf.conf.
Global symbol "$env_unix_rpt" requires explicit package name at /usr/lib/perl/5.18/Cwd.pm line 58, <DEBCONF_CONFIG> chunk 3.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.18/Cwd.pm line 647, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/DbDriver/File.pm line 8, <DEBCONF_CONFIG> chunk 3.
Compilation failed in require at (eval 23) line 2, <DEBCONF_CONFIG> chunk 3.
BEGIN failed--compilation aborted at (eval 23) line 2, <DEBCONF_CONFIG> chunk 3.
dpkg: error processing package debconf (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)

EDIT7: Depois de sobrescrever o debconf.conf e rodar o 'debconf de política do apt-cache' eu finalmente tenho alguma saída!

Aqui está:

debconf:
  Installed: 1.5.51ubuntu2
  Candidate: 1.5.51ubuntu2
  Version table:
 *** 1.5.51ubuntu2 0
        500 http://ports.ubuntu.com/ubuntu-ports/ trusty/main armhf Packages
        100 /var/lib/dpkg/status
    
por Michael 23.02.2016 / 03:12

0 respostas