xiaofengfeng 发表于 2017-7-20 19:01:57

lnmp安装失败

服务器已安装nginx,所以安装的时候选择的lamp模式。
服务器信息:Linux 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


log日志内容已上传至服务器。

服务器有安装gitlab,不知道是否是这个原因造成。

xiaofengfeng 发表于 2017-7-20 19:30:21

贴图

附件是图片

licess 发表于 2017-7-20 21:35:47

发图片没用处,日志就可以了
Fetched 1,274 kB in 52s (24.1 kB/s)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/PackagesHash Sum mismatch

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-amd64/PackagesHash Sum mismatch

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/multiverse/binary-amd64/PackagesHash Sum mismatch

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-i386/PackagesHash Sum mismatch

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/multiverse/binary-i386/PackagesHash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-extra-3.13.0-125-generic : Depends: linux-image-3.13.0-125-generic but it is not installed
linux-image-extra-3.13.0-96-generic : Depends: linux-image-3.13.0-96-generic but it is not installed
linux-image-generic : Depends: linux-image-3.13.0-125-generic but it is not installed
E: Unmet dependencies. Try using -f.
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-85 linux-headers-3.13.0-85-generic
linux-headers-3.13.0-86 linux-headers-3.13.0-86-generic
linux-headers-3.13.0-87 linux-headers-3.13.0-87-generic
linux-headers-3.13.0-88 linux-headers-3.13.0-88-generic
linux-headers-3.13.0-91 linux-headers-3.13.0-91-generic
linux-headers-3.13.0-93 linux-headers-3.13.0-93-generic
linux-headers-3.13.0-96 linux-headers-3.13.0-96-generic
linux-image-3.13.0-85-generic linux-image-3.13.0-86-generic
linux-image-3.13.0-87-generic linux-image-3.13.0-88-generic
linux-image-3.13.0-91-generic linux-image-3.13.0-93-generic
linux-image-3.13.0-96-generic linux-image-extra-3.13.0-85-generic
linux-image-extra-3.13.0-86-generic linux-image-extra-3.13.0-87-generic
linux-image-extra-3.13.0-88-generic linux-image-extra-3.13.0-91-generic
linux-image-extra-3.13.0-93-generic linux-image-extra-3.13.0-96-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-image-3.13.0-125-generic linux-image-3.13.0-96-generic
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
linux-image-3.13.0-125-generic linux-image-3.13.0-96-generic
0 upgraded, 2 newly installed, 0 to remove and 210 not upgraded.
15 not fully installed or removed.
Need to get 0 B/30.7 MB of archives.
After this operation, 86.7 MB of additional disk space will be used.
(Reading database ... 439304 files and directories currently installed.)
Preparing to unpack .../linux-image-3.13.0-125-generic_3.13.0-125.174_amd64.deb ...
Done.
Unpacking linux-image-3.13.0-125-generic (3.13.0-125.174) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-125-generic_3.13.0-125.174_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-3.13.0-125-generic' to '/boot/System.map-3.13.0-125-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-125-generic /boot/vmlinuz-3.13.0-125-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-125-generic /boot/vmlinuz-3.13.0-125-generic
Preparing to unpack .../linux-image-3.13.0-96-generic_3.13.0-96.143_amd64.deb ...
Done.
Unpacking linux-image-3.13.0-96-generic (3.13.0-96.143) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-96-generic_3.13.0-96.143_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-3.13.0-96-generic' to '/boot/System.map-3.13.0-96-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-96-generic /boot/vmlinuz-3.13.0-96-generic
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.13.0-125-generic_3.13.0-125.174_amd64.deb
/var/cache/apt/archives/linux-image-3.13.0-96-generic_3.13.0-96.143_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version.
gcc is already the newest version.
make is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
linux-image-extra-3.13.0-125-generic : Depends: linux-image-3.13.0-125-generic but it is not going to be installed
linux-image-extra-3.13.0-96-generic : Depends: linux-image-3.13.0-96-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-3.13.0-125-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Hash Sum mismatch 可以尝试 apt-get clean && apt-get update --fix-missing ,也可以尝试更换国内ubuntu的源,也可能你网络有劫持无法获取到正确的文件

而且你/boot 分区有点小,导致前面你可能安装过linux-image无法继续

主要就是源的问题,解决掉后确保 apt-get 能正常安装软件
页: [1]
查看完整版本: lnmp安装失败