linux – apt软件包尚未配置

前端之家收集整理的这篇文章主要介绍了linux – apt软件包尚未配置前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
运行apt-get时,我得到以下输出: @H_404_2@apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded,0 newly installed,0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation,0B of additional disk space will be used. Do you want to continue [Y/n]? Setting up linux-image-2.6.32-31-server (2.6.32-31.61) ... Running depmod. update-initramfs: Generating /boot/initrd.img-2.6.32-31-server gzip: stdout: No space left on device update-initramfs: Failed for /boot/initrd.img-2.6.32-31-server Failed to create initrd image. dpkg: error processing linux-image-2.6.32-31-server (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of linux-image-server: linux-image-server depends on linux-image-2.6.32-31-server; however: Package linux-image-2.6.32-31-server is not configured yet. dpkg: error processing linux-image-server (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a prevIoUs failure. Errors were encountered while processing: linux-image-2.6.32-31-server linux-image-server E: Sub-process /usr/bin/dpkg returned an error code (1)

我看到它说“gzip:stdout:设备上没有剩余空间” – “df”显示/ dev / sda1已满.

我该怎么办?

解决方法

从apt-get clean开始,确保你没有一堆旧的.deb文件.如果没有足够的空间,请将文件移动到另一个分区或设备以释放空间.如果您没有其他分区,请将它们移动到闪存驱动器或网络共享位置.我将从/ var / log中的旧日志文件开始.

如果这没有消除足够的空间,那么开始卸载你没有使用的软件包.或者为/ dev / sda1的文件系统上的大型目录带来更多的磁盘空间,这些文件系统可以移动到另一个分区(/ home,/ tmp等)

对于/ boot,这主要是linux-image-versionnumber包的内容.您可以删除与您不打算再次使用的旧内核关联的内容.也许这是每个内核,但你现在的内核,但这是你的呼唤,而不是我的.

要获得系统的运行内核版本:

@H_404_2@ root@host:/boot# uname -r 2.6.32-27-generic

要查看您拥有的linux-image-versionnumber包:

@H_404_2@ root@host:/boot# dpkg -l | grep linux-image ii linux-image-2.6.20-15-generic 2.6.20-15.27 Linux kernel image for version 2.6.20 on x86/x86_64 ii linux-image-2.6.20-16-generic 2.6.20-16.35 Linux kernel image for version 2.6.20 on x86/x86_64 ii linux-image-2.6.20-17-generic 2.6.20-17.39 Linux kernel image for version 2.6.20 on x86/x86_64 ii linux-image-2.6.22-14-386 2.6.22-14.52 Linux kernel image for version 2.6.22 on i386 ii linux-image-2.6.22-16-generic 2.6.22-16.61 Linux kernel image for version 2.6.22 on x86/x86_64 ii linux-image-2.6.24-23-generic 2.6.24-23.48 Linux kernel image for version 2.6.24 on x86/x86_64 ii linux-image-2.6.24-24-generic 2.6.24-24.53 Linux kernel image for version 2.6.24 on x86/x86_64 ii linux-image-2.6.24-25-generic 2.6.24-25.63 Linux kernel image for version 2.6.24 on x86/x86_64 ii linux-image-2.6.24-26-generic 2.6.24-26.64 Linux kernel image for version 2.6.24 on x86/x86_64 ii linux-image-2.6.24-27-generic 2.6.24-27.65 Linux kernel image for version 2.6.24 on x86/x86_64 ii linux-image-2.6.32-27-generic 2.6.32-27.49 Linux kernel image for version 2.6.32 on x86/x86_64 ii linux-image-generic 2.6.32.27.29 Generic Linux kernel image

在这里,我有11个内核包,其中10个我永远不可能再次使用.要删除旧的:

@H_404_2@ apt-get remove linux-image-2.6.20-15-generic

不要触摸linux-image-generic,只需要linux-image-versionnumber包.

原文链接:https://www.f2er.com/linux/396970.html

猜你在找的Linux相关文章