Ошибки Debconf при настройке mysql-сервера
Когда я пытаюсь запустить обновление sudo apt-get, я получаю сообщение об ошибке ниже.
Я также получаю похожую ошибку при запуске sudo перенастроить postfix, который мне действительно нужно запустить, так как исходящая электронная почта больше не работает. Я также запустил sudo apt-get autoclean, sudo apt-getclean, sudo apt-get install debconf --reinstall и sudo apt-get install -f без успеха.
magento@ubuntu:~$ sudo apt-get install debconf --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
mysql-server-5.5
Suggested packages:
tinyca mailx
The following packages will be upgraded:
mysql-server-5.5
1 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded.
28 not fully installed or removed.
Need to get 149 kB/8,990 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://no.archive.ubuntu.com/ubuntu/ quantal/main debconf all 1.5.46ubuntu1 [149 kB]
Fetched 149 kB in 0s (472 kB/s)
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
(Reading database ... 81482 files and directories currently installed.)
Preparing to replace mysql-server-5.5 5.5.28-0ubuntu0.12.10.1 (using .../mysql- server-5.5_5.5.28-0ubuntu0.12.10.2_amd64.deb) ...
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: error processing /var/cache/apt/archives/mysql-server-5.5_5.5.28- 0ubuntu0.12.10.2_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.5_5.5.28-0ubuntu0.12.10.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Запуск Ubuntu 12.10.
Команда df дает:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/magento-root 53613052 6529812 44359812 13% /
udev 3978932 4 3978928 1% /dev
tmpfs 1595380 264 1595116 1% /run
none 5120 0 5120 0% /run/lock
tmpfs 3988440 0 3988440 0% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 233191 53511 167239 25% /boot
Мне показалось сообщение, в котором предлагалось не использовать tmpfs для / var / cahce, если это проблема, как я могу настроить Ubuntu для использования моего жесткого диска (и SSD) для /var/cache.
Заранее спасибо за любую помощь, и простите меня за мое новшество..
Обновить:
Бег
sudo apt-get update --fix-missing
sudo apt-get autoremove && sudo apt-get clean && sudo apt-get install -f
дает:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.5
Suggested packages:
tinyca mailx
The following packages will be REMOVED:
linux-headers-3.5.0-17 linux-headers-3.5.0-17-generic
The following packages will be upgraded:
mysql-server-5.5
1 upgraded, 0 newly installed, 2 to remove and 8 not upgraded.
28 not fully installed or removed.
Need to get 0 B/8,840 kB of archives.
After this operation, 69.9 MB disk space will be freed.
Do you want to continue [Y/n]? y
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
(Reading database ... 81482 files and directories currently installed.)
Preparing to replace mysql-server-5.5 5.5.28-0ubuntu0.12.10.1 (using .../mysql- server-5.5_5.5.28-0ubuntu0.12.10.2_amd64.deb) ...
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: error processing /var/cache/apt/archives/mysql-server-5.5_5.5.28- 0ubuntu0.12.10.2_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.5_5.5.28-0ubuntu0.12.10.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
3 ответа
Наверное, я немного опоздал... но я все равно опубликую это, если кто-то придет сюда в поисках решения той же проблемы.
debconf: DbDriver "config": mkdir :No such file or directory
средства debconf
отсутствует его каталог в /var/cache
который был каким-то образом удален (до сих пор не могу понять, как, учитывая, что раньше он работал нормально).
Одним из очевидных решений было бы воссоздать его (sudo mkdir /var/cache/debconf
), или переустановите debconf из пакета (на самом деле в этом нет необходимости).
У меня была эта проблема (Ubuntu 13.04), это потому, что я удалил (случайно) /var/cache/debconf, я просто воссоздал ее, и все снова стало блестящим... так: /var/cache/debconf: missing = плохой подарок = хорошо
PS: вырезать и вставлять, если вы ленивы, как я:
sudo mkdir / var / cache / debconf
и я обнаружил, что некоторые инструменты, которые утверждают, что очищают жесткие диски, позволяют удалять пустые папки в таких местах, как / var / cache, так что...
sudo touch /var/cache/debconf/.dont-delete-this-directory
что, конечно, тогда rmdir будет заблокирован, когда кто-то / что-то придет и попытается избавиться от этого... конечно, опытный пользователь НИКОГДА не использует инструменты оптимизации, особенно в системах на основе -nix, такого рода дерьмо лучше всего оставить для толпы -dows и их новичков, так что большинство людей, читающих это, вероятно, будут смеяться над мыслью сделать это... я в том числе (просто скучно, я думаю). Надеюсь это поможет.
Попробуйте запустить:
sudo apt-get update --fix-missing
sudo apt-get autoremove && sudo apt-get clean && sudo apt-get install -f