【问题标题】:why is dpkg configuration running out of space on ubuntu 10.04 when there is space available?当有可用空间时,为什么 ubuntu 10.04 上的 dpkg 配置空间不足?
【发布时间】:2012-04-18 05:50:52
【问题描述】:

有 7Gb 可用,但是...

~ # dpkg --configure -a
Setting up linux-image-2.6.32-31-generic-pae (2.6.32-31.61) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-31-generic-pae

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-31-generic-pae
Failed to create initrd image.
dpkg: error processing linux-image-2.6.32-31-generic-pae (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic-pae:
 linux-image-generic-pae depends on linux-image-2.6.32-31-generic-pae; however:
  Package linux-image-2.6.32-31-generic-pae is not configured yet.
dpkg: error processing linux-image-generic-pae (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-pae:
 linux-generic-pae depends on linux-image-generic-pae (= 2.6.32.31.37); however:
  Package linux-image-generic-pae is not configured yet.
dpkg: error processing linux-generic-pae (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.32-31-generic-pae
 linux-image-generic-pae
 linux-generic-pae
~ # df
Filesystem           1K-blocks Used Available Use% Mounted on
/dev/sda3             18577148  10255512   7377972  59% /
none                   1026416       164   1026252   1% /dev
none                   1030624         0   1030624   0% /dev/shm
none                   1030624       100   1030524   1% /var/run
none                   1030624         4   1030620   1% /var/lock
none                   1030624         0   1030624   0% /lib/init/rw
/dev/sda1                93207     87960       435 100% /boot
~ # cat /etc/redhat-release
cat: /etc/redhat-release: No such file or directory
~ # cat /proc/version
Linux version 2.6.32-30-generic-pae (buildd@vernadsky) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #59-Ubuntu SMP Tue Mar 1 23:01:33 UTC 2011
~ # uname -a
Linux ws1.naturapet.com.au 2.6.32-30-generic-pae #59-Ubuntu SMP Tue Mar 1 23:01:33 UTC 2011 i686 GNU/Linux
~ # lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.2 LTS
Release:    10.04
Codename:   lucid

【问题讨论】:

  • 只是在黑暗中刺伤,但这可能是因为您正在尝试更新内核映像。如果您注意到,您的引导分区中还剩下大约 400k,它可能正在尝试复制到那里。

标签: ubuntu dpkg


【解决方案1】:

问题是您的 /boot 分区已 100% 满。新的 linux 内核将安装在那里,但如果该分区已满,它们显然不能安装。

检查您是否安装了旧内核并卸载它们。

dpkg -l | grep linux-image

会告诉你你安装了哪些 linux 内核。

uname -a

会告诉你当前使用的是什么内核。

【讨论】:

【解决方案2】:

因为 /boot 上没有剩余空间

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-01-03
    • 2018-03-09
    • 2022-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多