我有一个 ssh 进入的 Ubuntu 12.04 服务器版本。
我在这台服务器上运行 Perl 脚本,但在加载时失败
'use LWP::UserAgent;' with error message:
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /home/hermann/scripts/modules/ /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at 1_standalone line 5.
BEGIN failed--compilation aborted at 1_standalone line 5.
Run Code Online (Sandbox Code Playgroud)
所以为了解决这个问题,我正在尝试安装 LWP::UserAgent,我被告知是这样的:sudo apt-get install libwww-perl
但是当我运行该命令时,出现以下错误:
Failed to fetch http://is.archive.ubuntu.com/ubuntu/pool/main/libf/libfont-afm-perl/libfont-afm-perl_1.20-1_all.deb Size mismatch
Failed to fetch http://is.archive.ubuntu.com/ubuntu/pool/main/libh/libhtml-tagset-perl/libhtml-tagset-perl_3.20-2_all.deb Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)
现在我尝试执行 sudo apt-get update,它似乎运行良好但没有任何改变。而且我也做了'sudo apt-get install …