内核更新后软件安装出现问题

内核更新后软件安装出现问题

我使用的是 Ubuntu 13.04 64 位。我决定安装最近发布的 Linux 内核 3.10,因此我从kernel.ubuntu.comraring 存储库中下载了内核和头文件包。我可以毫无问题地安装头文件,但当我尝试安装内核时,出现了此错误

root@pulkit-Vostro-1014:/home/pulkit/Downloads# dpkg -i kernel.deb
(Reading database ... 222087 files and directories currently installed.)
Preparing to replace linux-image-3.10.0-031000-generic 3.10.0-031000.201306301935         (using kernel.deb) ...
Use of uninitialized value in concatenation (.) or string at   /usr/share/perl5/Debconf/DbDriver/File.pm line 44, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in -e at /usr/share/perl5/Debconf/DbDriver/File.pm line 46, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Debconf/DbDriver/File.pm line 47, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in -d at /usr/share/perl5/Debconf/DbDriver/File.pm line 48, <DEBCONF_CONFIG> chunk 3.
Use of uninitialized value $directory in concatenation (.) or string at /usr/share/perl5/Debconf/DbDriver/File.pm line 49, <DEBCONF_CONFIG> chunk 3.
debconf: DbDriver "config": mkdir :No such file or directory
dpkg: error processing kernel.deb (--install):
subprocess new pre-installation script returned error exit status 1
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.10.0-031000-generic   /boot/vmlinuz-3.10.0-031000-generic
run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.10.0-031000-generic   /boot/vmlinuz-3.10.0-031000-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.9.7-030907-generic...
P: Writing config for /boot/vmlinuz-3.8.0-25-generic...
P: Writing config for /boot/vmlinuz-3.10.0-031000-generic...
P: Writing config for Windows 7 (loader) on /dev/sda1...
P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-   wheezy/extlinux/memtest.bin’: No such file or directory
run-parts: /etc/kernel/postrm.d/zz-extlinux exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/tmp.ci/postrm line 328.
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 1
Errors were encountered while processing:
kernel.deb

此外,每当我尝试安装/删除任何软件时,都会出现此信息:

root@pulkit-Vostro-1014:/home/pulkit/Downloads# sudo apt-get install vlc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package linux-image-3.10.0-031000-generic needs to be reinstalled, but I can't     find an archive for it.

请帮帮我!

答案1

P: Installing debian theme...cp: cannot stat ‘/usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin’: No such file or directory

我用大胆的话来反驳这一点:

touch /usr/share/syslinux/themes/debian-wheezy/extlinux/memtest.bin

使用风险自负,但对我来说它很有用。

附言:我没有尝试启动到 memtest

相关内容