невстреченная зависимость и debconf: проблема, настраивающая базу данных, определенную строкой файла конфигурации 3 из/etc/debconf.conf

все! Я искал решение этой проблемы в течение многих недель теперь, но ничто, что я попробовал, не работало. Я выполняю версию ARM Сервера Ubuntu 14.04 на Odroid XU4. Я не делаю очень с сервером, и он хорошо работал, пока я не попытался обновить и обновить день, которым уязвимости OpenSSH были найдены (это было некоторое время...). Во всяком случае я продолжаю получать ошибки, которые заставляют компиляцию прерываться во время обновления, даже когда вызвано. Существует также невстреченная проблема зависимости.

Это - мой первый раз, отправляя на эти форумы, таким образом, я, возможно, нуждался бы в небольшой помощи, находящей необходимые журналы для Вас парни, но я скопирую начальный вывод 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)

Вывод /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: вывод apt-cache policy debconf

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

Я не отредактировал debconf.conf сам.

EDIT3: вывод 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).

склонный - добираются, обновление хорошо работает. содержание/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: После выполнения apt-get download debconf && sudo dpkg -i --force-confmiss debconf_*.deb Я получил это как вывод:

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

Это - то, что я видел много. Явные имена пакета, требуемые устанавливать что-либо.

EDIT5: После выполнения следующий ряд команд

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

Я получил следующий вывод. (За первыми 3 шагами следуют. Заключительный шаг - то, где я получил эту ошибку),

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: После ручной перезаписи debconf.conf файла с тем я смог извлечь из .deb от repo, я попытался 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 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: После перезаписи debconf.conf и рабочей 'политики способного кэша debconf' у меня наконец есть некоторый вывод!

Вот:

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
1
задан 29 February 2016 в 04:33

0 ответов

Другие вопросы по тегам:

Похожие вопросы: