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

前端之家收集整理的这篇文章主要介绍了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时才有效.

当然,在这种情况下,确定的解决方案是运行

mkdir /var/cache/debconf

在启动脚本中.

猜你在找的Linux相关文章