我试图在运行Linux 2的旧机器上升级libc,但是我得到了一个错误:
(Reading database ... 7426 files and directories currently installed.)
Preparing to replace libc6 2.2.5-11.8 (using .../libc6_2.24-11+deb9u1_i386.deb) ...
debconf: Unable to load Debconf::Element::Dialog::Error. Failed because: Can't locate Debconf/Element/Dialog/Error.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at (eval 14) line 2, <GEN1> line 5.
BEGIN failed--compilation aborted at (eval 14) line 2, <GEN1> line 5.
dpkg: error processing /var/cache/apt/archives/libc6_2.24-11+deb9u1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
/var/lib/dpkg/tmp.ci/postrm: dpkg-maintscript-helper: command not found
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.24-11+deb9u1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)与perl类似,但我不知道该做什么。你能告诉我该怎么做吗?我的目标是升级Perl,为此,我还必须升级libc iiuc。
发布于 2017-08-14 14:25:55
您应该升级perl。暂时忽略debconf (稍后,您将告诉debconf您希望再次收到这些问题)。
作为第一步,我会安装bash静态,只是为了有一个紧急工具,以防你不能定期启动系统。(从Debian站点下载,并使用dpkg -i安装)。
检查您需要的perl模块(在Debian包站点上导航,只检查必需的perl包)。安装它们(ev )。强迫他们使用dpkg -强制- )。不时地,尝试dpkg --配置--挂起,设置它缺少的内容。最后,您应该有一个工作的系统,并尝试定期更新包。
https://unix.stackexchange.com/questions/386041
复制相似问题