sunwenhaiwindy 发表于 2015-7-13 11:20:52

Ubuntu 14.04.2 LTS 系统安装LNMP 失败

Ubuntu 14.04.2 LTS 系统安装LNMP 失败

sunwenhaiwindy 发表于 2015-7-13 11:29:40

LNMP 安装失败

现在是所有apt-get 安装失败

apt-get -f install 之后是这样的
Preparing to unpack .../linux-image-3.13.0-57-generic_3.13.0-57.95_amd64.deb ...
Can't locate Debconf/Client/ConfModule.pm in @INC (you may need to install the Debconf::Client::ConfModule module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /var/lib/dpkg/tmp.ci/preinst line 20.
BEGIN failed--compilation aborted at /var/lib/dpkg/tmp.ci/preinst line 20.
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-57-generic_3.13.0-57.95_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
Can't locate strict.pm in @INC (you may need to install the strict module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/lib/perl/5.18/Cwd.pm line 3.
BEGIN failed--compilation aborted at /usr/lib/perl/5.18/Cwd.pm line 3.
Compilation failed in require at /var/lib/dpkg/tmp.ci/postrm line 21.
BEGIN failed--compilation aborted at /var/lib/dpkg/tmp.ci/postrm line 21.
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 2
Preparing to unpack .../x11-common_1%3a7.7+1ubuntu8.1_all.deb ...
/var/lib/dpkg/tmp.ci/preinst: 10: .: Can't open /usr/share/debconf/confmodule
dpkg: error processing archive /var/cache/apt/archives/x11-common_1%3a7.7+1ubuntu8.1_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.13.0-57-generic_3.13.0-57.95_amd64.deb
/var/cache/apt/archives/x11-common_1%3a7.7+1ubuntu8.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

licess 发表于 2015-7-13 21:40:58

使用find 命令查找Can't locate 后面提示的文件,然后ln -s 连接到 @INC的目录,然后再试试

应该是你这系统模板有问题

sunwenhaiwindy 发表于 2015-7-14 11:44:10

根本就找不到strict.pm   这个文件

licess 发表于 2015-7-14 16:09:56

你系统模板的问题,别无他法
页: [1]
查看完整版本: Ubuntu 14.04.2 LTS 系统安装LNMP 失败