linux – apt-get install期间debconf或perl错误

我使用 Linux Mint 16并且在通过apt-get install安装软件包时总是出错:

Reading package lists… Done Building dependency tree Reading
state information… Done sqlitebrowser is already the newest version.
0 upgraded,0 newly installed,0 to remove and 26 not upgraded. 1 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 Use of
uninitialized value in concatenation (.) or string at
/usr/share/perl5/Debconf/DbDriver/File.pm line 44,
chunk 3. Use of uninitialized value in -e at
/usr/share/perl5/Debconf/DbDriver/File.pm line 46,
chunk 3. Use of uninitialized value in pattern match (m//) at
/usr/share/perl5/Debconf/DbDriver/File.pm line 47,
chunk 3. Use of uninitialized value $directory in -d at
/usr/share/perl5/Debconf/DbDriver/File.pm line 48,
chunk 3. Use of uninitialized value $directory in concatenation (.) or
string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49,
chunk 3. debconf: DbDriver “config”: mkdir :No such
file or directory Setting up man-db (2.6.5-2) … Use of uninitialized
value in concatenation (.) or string at
/usr/share/perl5/Debconf/DbDriver/File.pm line 44,
chunk 3. debconf: DbDriver “config”: mkdir :No such
file or directory dpkg: error processing man-db (–configure):
subprocess installed post-installation script returned error exit
status 1 Errors were encountered while processing: man-db E:
Sub-process /usr/bin/dpkg returned an error code (1)

运行

sudo apt-get install debconf --reinstall

要么

sudo apt-get update --fix-missing
sudo apt-get autoremove && sudo apt-get clean && sudo apt-get install -f

解决了暂时(直到下次重启)

也许我已经安装了perl一次,而不是使用apt-get.我也尝试用synaptic重新安装perl,但它没有帮助.我能做什么?

解决方法

我自己发现了这个问题.

我正在使用SSD.这就是我将/ var / cache挂载到RAM(通过tmpfs)以限制SSD上的写访问的原因. Debconf在安装它时将它的缓存放到/ var / cache / debconf.但这是在RAM上.因此,每次重启后apt-get只有在重新安装deconf时才有效.

当然,在这种情况下,确定的@R_301_463@案是运行

mkdir /var/cache/debconf

在启动脚本中.

相关文章

文件查找(find) 1 find 简单的说,就是实时查找指定的内容或条件。特点:最新、最快、最准确。 用法:...
非交互式添加分区 方法一 添加/deb/sdb 下的分区,其实位置为1到1000M,第二个分区位置为1001至3000M,...
编译安装httpd 1 去官网下载源码包 为避免非法软件,一定要去官网下载http://www.apache.org httpd-2.4...
gdisk用法 gdisk - InteractiveGUIDpartitiontable (GPT) manipulator GPTfdisk (akagdisk) isatext-mo...
1 一定用快捷键 这里简单的说下几个常用的快捷按键。 1.1 移动光标快捷键 Crtl + a 光标回到命令行...
bash shell中测试命令 test命令提供了if-than语句中测试不同条件的途径。如果test命令中列出的条件成立...