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

linux – apt-get install期间debconf或perl错误,第1张

概述我使用 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 i 我使用 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-missingsudo 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 – apt-get install期间debconf或perl错误全部内容,希望文章能够帮你解决linux – apt-get install期间debconf或perl错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/1033370.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存