debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.14.2/x86_64-linux /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/x86_64-linux /usr/local/lib/perl5/5.14.2 .) at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
正在设置 debconf (1.5.66ubuntu1) ...
Can't locate Debconf/Db.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.14.2/x86_64-linux /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/5.14.2/x86_64-linux /usr/local/lib/perl5/5.14.2 .) at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: 处理软件包 debconf (--configure)时出错:
installed debconf package post-installation script subprocess returned error exit status 2
在处理时有错误发生:
debconf
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方法:
1、下载perl-base_5.26.1-6ubuntu0.3_amd64.deb文件
2、下载debconf-doc_1.5.73_all.deb文件
屏幕截图.png
上面这两个文件要从网页上下载,要看自己的Ubuntu版本,下载对应的版本
3、下载完之后,dpkg -i *.deb安装这两个包
4、安装完成之后,就可以正常使用apt-get了
网友评论