系统更新,安装新的内核时,配置有问题,每次 apt 安装软件,都会提示内核软件包: be configured

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
VolcanoX
帖子: 82
注册时间: 2008-06-15 15:00
联系:

系统更新,安装新的内核时,配置有问题,每次 apt 安装软件,都会提示内核软件包: be configured

#1

帖子 VolcanoX » 2011-10-27 15:32

search linux-image

代码: 全选

p   linux-image                                       - Generic Linux kernel image.
v   linux-image-2.6                                   -
i A linux-image-2.6.38-10-generic                     - Linux kernel image for version 2.6.38 on x86/x86_64
C A linux-image-2.6.38-11-generic                     - Linux kernel image for version 2.6.38 on x86/x86_64
C A linux-image-2.6.38-12-generic                     - Linux kernel image for version 2.6.38 on x86/x86_64
uname -a

代码: 全选

Linux king 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
每次执行 apt 操作是,总会提示会配置内核软件包
install amarok-utils amarok-common amarok

代码: 全选

The following NEW packages will be installed:
  amarok amarok-common amarok-utils
The following partially installed packages will be configured:
  initramfs-tools linux-generic linux-image-2.6.38-11-generic linux-image-2.6.38-12-generic
  linux-image-generic
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
每次都是配置失败:

代码: 全选

gzip: stdout: No space left on device
cpio: write error: Broken pipe
E: mkinitramfs failure cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-2.6.38-11-generic
Failed to create initrd image.
dpkg: error processing linux-image-2.6.38-11-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.38-12-generic; however:
  Package linux-image-2.6.38-12-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.38.12.27); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.38-11-generic
cryptsetup: WARNING: failed to detect canonical device of /dev/sda5
cryptsetup: WARNING: could not determine root device from /etc/fstab

gzip: stdout: No space left on device
cpio: write error: Broken pipe
E: mkinitramfs failure cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-2.6.38-11-generic
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.38-12-generic
 linux-image-2.6.38-11-generic
 linux-image-generic
 linux-generic
 initramfs-tools
我的系统分区如下:
df -h

代码: 全选

Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda5     ext4     19G  3.5G   14G  21% /
none      devtmpfs    971M  740K  970M   1% /dev
none         tmpfs    981M  100K  981M   1% /dev/shm
none         tmpfs    981M  108K  981M   1% /var/run
none         tmpfs    981M     0  981M   0% /var/lock
/dev/sda2     ext2     90M   87M     0 100% /boot
/dev/sda7     ext4    4.6G  163M  4.2G   4% /tmp
/dev/sda3     ext4     19G  2.7G   15G  16% /home
/dev/sda6     ext4    4.6G  634M  3.8G  15% /var
头像
npnufn
帖子: 1847
注册时间: 2005-10-14 15:56

Re: 系统更新,安装新的内核时,配置有问题,每次 apt 安装软件,都会提示内核软件包: be configured

#2

帖子 npnufn » 2011-10-27 16:51

/dev/sda2 ext2 90M 87M 0 100% /boot
这里没地方放新的内核?
删除旧内核文件吧。我只有一个版本的内核似乎只用了20-30M
头像
VolcanoX
帖子: 82
注册时间: 2008-06-15 15:00
联系:

Re: 系统更新,安装新的内核时,配置有问题,每次 apt 安装软件,都会提示内核软件包: be configured

#3

帖子 VolcanoX » 2011-10-27 19:08

du -sh *

代码: 全选

717K    abi-2.6.38-8-generic
718K    abi-2.6.38-10-generic
718K    abi-2.6.38-11-generic
718K    abi-2.6.38-12-generic
129K    config-2.6.38-8-generic
129K    config-2.6.38-10-generic
129K    config-2.6.38-11-generic
129K    config-2.6.38-12-generic
1.5M    grub
18M     initrd.img-2.6.38-8-generic
19M     initrd.img-2.6.38-10-generic
19M     initrd.img-2.6.38-11-generic
12K     lost+found
159K    memtest86+.bin
161K    memtest86+_multiboot.bin
2.6M    System.map-2.6.38-8-generic
2.6M    System.map-2.6.38-10-generic
2.6M    System.map-2.6.38-11-generic
2.6M    System.map-2.6.38-12-generic
2.0K    vmcoreinfo-2.6.38-8-generic
2.0K    vmcoreinfo-2.6.38-10-generic
2.0K    vmcoreinfo-2.6.38-11-generic
2.0K    vmcoreinfo-2.6.38-12-generic
4.4M    vmlinuz-2.6.38-8-generic
4.4M    vmlinuz-2.6.38-10-generic
4.4M    vmlinuz-2.6.38-11-generic
4.4M    vmlinuz-2.6.38-12-generic
这是我的 /boot 分区文件!
onlylove
论坛版主
帖子: 5371
注册时间: 2007-01-14 16:23

Re: 系统更新,安装新的内核时,配置有问题,每次 apt 安装软件,都会提示内核软件包: be configured

#4

帖子 onlylove » 2011-10-27 21:05

好多,去synaptic看看,把不用的卸载
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
头像
VolcanoX
帖子: 82
注册时间: 2008-06-15 15:00
联系:

Re: 系统更新,安装新的内核时,配置有问题,每次 apt 安装软件,都会提示内核软件包: be configured

#5

帖子 VolcanoX » 2011-10-27 21:14

兄台,我现在用的 11,如果想用 12 要卸载 11 吗?
没关系吗?
头像
VolcanoX
帖子: 82
注册时间: 2008-06-15 15:00
联系:

Re: 系统更新,安装新的内核时,配置有问题,每次 apt 安装软件,都会提示内核软件包: be configured

#6

帖子 VolcanoX » 2011-11-02 11:38

各位,我卸载老的 kernel

代码: 全选

# search linux-image

p   linux-image                        - Generic Linux kernel image.
v   linux-image-2.6                    -
i A linux-image-2.6.38-10-generic      - Linux kernel image for version 2.6.38 on x86/x86_64
C A linux-image-2.6.38-11-generic      - Linux kernel image for version 2.6.38 on x86/x86_64
C A linux-image-2.6.38-12-generic      - Linux kernel image for version 2.6.38 on x86/x86_64
i   linux-image-2.6.38-8-generic       - Linux kernel image for version 2.6.38 on x86/x86_64
卸载 老的 内核:

代码: 全选

# uninstall linux-image-2.6.38-10-generic

# search linux-image

p   linux-image                        - Generic Linux kernel image.
v   linux-image-2.6                    -
p   linux-image-2.6.38-10-generic      - Linux kernel image for version 2.6.38 on x86/x86_64
i A linux-image-2.6.38-11-generic      - Linux kernel image for version 2.6.38 on x86/x86_64
i A linux-image-2.6.38-12-generic      - Linux kernel image for version 2.6.38 on x86/x86_64
i   linux-image-2.6.38-8-generic       - Linux kernel image for version 2.6.38 on x86/x86_64
i   linux-image-generic                - Generic Linux kernel image
但是之后,执行 apt 进行安装 / 卸载操作,还是有个软件包 配置 提示:

代码: 全选

· sudo aptitude purge amarok-utils amarok-common  amarok

The following packages will be REMOVED:
  amarok{p} amarok-common{p} amarok-utils{p}
The following partially installed packages will be configured:
  initramfs-tools
0 packages upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 40.9 MB will be freed.

代码: 全选

# search   initramfs-tools

C   initramfs-tools                                   - tools for generating an initramfs                          
i   initramfs-tools-bin                               - binaries used by initramfs-tools                           
p   live-boot-initramfs-tools                         - Debian Live - System Boot Scripts (initramfs-tools backend)
请问是否也要卸载
initramfs-tools

谢谢各位!
回复