加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-14 02:22:50 所属栏目:Linux 来源:网络整理
导读:我使用 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 remov
我使用 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

在启动脚本中.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读