自升级到12.04后出现Apt错误
我一直在寻找解决方案,并找到了[这] [1]。 但由于没有来自线程启动器的反馈,这不是我的解决方案,我想再问一次。
我有更新到Ubuntu 12.04,我正在使用Gnome 3桌面。 更新后,我有一些来自apport-gtk的错误消息(或来自apport关于gtk?!?)。 提交错误日志给了我更多错误。
系统现在可以工作,但每次我使用apt或aptitude时,我都会收到以下消息。
wowa @ wowapc:〜$ sudo apt-get upgrade 阅读包裹清单......完成 构建依赖树 阅读国家信息......完成 0升级,0新安装,0删除,0未升级。 4未完全安装或移除。 执行此操作后,将使用0 B的额外磁盘空间。 你想继续[Y / n]吗? ÿ 设置initramfs-tools(0.99ubuntu13)...... update-initramfs:延迟更新(触发激活) 设置linux-image-3.2.0-24-generic(3.2.0-24.37)... 运行depmod。 update-initramfs:延迟更新(稍后将调用hook) 检查/etc/kernel/postinst.d。 run-parts:执行/etc/kernel/postinst.d/dkms 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic run-parts:执行/etc/kernel/postinst.d/initramfs-tools 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic update-initramfs:生成/boot/initrd.img-3.2.0-24-generic run-parts:执行/etc/kernel/postinst.d/pm-utils 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic run-parts:执行/etc/kernel/postinst.d/update-notifier 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic run-parts:执行/etc/kernel/postinst.d/zz-runlilo 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic 致命:没有定义图像。 run-parts:/etc/kernel/postinst.d/zz-runlilo退出,返回码为1 无法在/var/lib/dpkg/info/linux-image-3.2.0-24-generic.postinst第1010行处理/etc/kernel/postinst.d。 dpkg:error handlinglinux-image-3.2.0-24-generic( - configure): 安装后的子进程安装后脚本返回错误退出状态2 dpkg:依赖性问题会阻止linux-image-generic的配置: linux-image-generic依赖于linux-image-3.2.0-24-generic; 然而: 包linux-image-3.2.0-24-generic尚未配置。 dpkg:error handlinglinux-image-generic( - configure): 依赖性问题 - 保持未配置状态 dpkg:依赖性问题会阻止linux-generic的配置: linux-generic依赖于linux-image-generic(= 3.2.0.24.26); 然而: 尚未配置包linux-image-generic。 dpkg:error handlinglinux-generic( - configure): 依赖性问题 - 保持未配置状态 处理initramfs-tools的触发器...... 没有编写apport报告,因为已经到达MaxReports 没有编写apport报告,因为已经到达MaxReports 没有编写apport报告,因为已经到达MaxReports update-initramfs:生成/boot/initrd.img-3.2.0-24-generic 致命:没有定义图像。 run-parts:/etc/initramfs/post-update.d//runlilo退出,返回码为1 dpkg:error handlinginitramfs-tools( - configure): 安装后的子进程安装后脚本返回错误退出状态1 没有编写apport报告,因为已经到达MaxReports 处理时遇到错误: 的linux-image-3.2.0-24generics Linux的图像一般 Linux的通用 initramfs的工具 E:子进程/ usr / bin / dpkg返回错误代码(1)
我希望有人能提供帮助。
我认为问题是由于与lilo
软件包发生冲突, lilo
软件包似乎安装在您的系统上。 Ubuntu的默认启动加载程序是Grub2
,您可能不需要lilo
。
试试sudo apt-get remove lilo
。 然后尝试,例如。 sudo dpkg --configure initramfs-tools
。 错误消息应该消失。