软件包 extlinux 仅部分安装,导致软件包安装和 apt 更新出现问题

软件包 extlinux 仅部分安装,导致软件包安装和 apt 更新出现问题

我已经运行 12.04 x64 LTS 桌面大约一年了,没有任何问题,但最近我做了一些事情 - 不知道是什么 - 似乎导致了 extlinux 包损坏或部分安装。

现在,我运行的大多数 apt 安装或日常更新都会失败或部分失败,并出现类似以下的错误。

我尝试过apt-get clean,,apt-get autoclean使用 aptitude ncurses 界面来查找损坏的软件包(没有结果)并完成部分安装的 extlinux 的安装(失败并出现以下错误),但没有成功。

有人知道可能是什么问题以及如何解决它吗?

$> aptitude

(Reading database ... 681145 files and directories currently installed.)

Removing libio-pty-perl ...

Removing libllvm3.0:i386 ...

Removing linux-headers-3.2.0-31-generic ...

Removing linux-headers-3.2.0-31 ...

Removing sdparm ...

Removing ttf-umefont ...

Removing ttf-unfonts-core ...

Removing wine-gecko1.7 ...

Removing wine-gecko1.7:i386 ...

Removing wine-mono0.0.4 ...

Processing triggers for man-db ...

Processing triggers for libc-bin ...

ldconfig deferred processing now taking place

Setting up extlinux (2:4.05+dfsg-2) ...

P: Checking for EXTLINUX directory... found.

P: Writing config for /boot/vmlinuz-3.2.0-51-generic...

P: Writing config for /boot/vmlinuz-3.2.0-49-generic...

P: Writing config for /boot/vmlinuz-3.2.0-48-generic...

P: Writing config for /boot/vmlinuz-3.2.0-45-generic...

P: Writing config for /boot/vmlinuz-3.2.0-44-generic...

P: Writing config for /boot/vmlinuz-3.2.0-43-generic...

P: Writing config for /boot/vmlinuz-3.2.0-41-generic...

P: Writing config for /boot/vmlinuz-3.2.0-40-generic...

P: Writing config for /boot/vmlinuz-3.2.0-39-generic...

P: Writing config for /boot/vmlinuz-3.2.0-38-generic...

P: Writing config for /boot/vmlinuz-3.2.0-37-generic...

P: Writing config for /boot/vmlinuz-3.2.0-36-generic...

P: Writing config for /boot/vmlinuz-3.2.0-35-generic...

P: Writing config for /boot/vmlinuz-3.2.0-34-generic...

P: Writing config for /boot/vmlinuz-3.2.0-33-generic...

P: Writing config for /boot/vmlinuz-3.2.0-32-generic...

P: Writing config for /boot/vmlinuz-3.2.0-31-generic...

P: Writing config for Windows 7 (loader) on /dev/sda1...

P: Writing config for Windows Recovery Environment (loader) on /dev/sda2...

P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory

dpkg: error processing extlinux (--configure):

subprocess installed post-installation script returned error exit status 1

No apport report written because MaxReports is reached already

Errors were encountered while processing:

extlinux

E: Sub-process /usr/bin/dpkg returned an error code (1)

A package failed to install.  Trying to recover:

Setting up extlinux (2:4.05+dfsg-2) ...

P: Checking for EXTLINUX directory... found.

P: Writing config for /boot/vmlinuz-3.2.0-51-generic...

P: Writing config for /boot/vmlinuz-3.2.0-49-generic...

P: Writing config for /boot/vmlinuz-3.2.0-48-generic...

P: Writing config for /boot/vmlinuz-3.2.0-45-generic...

P: Writing config for /boot/vmlinuz-3.2.0-44-generic...

P: Writing config for /boot/vmlinuz-3.2.0-43-generic...

P: Writing config for /boot/vmlinuz-3.2.0-41-generic...

P: Writing config for /boot/vmlinuz-3.2.0-40-generic...

P: Writing config for /boot/vmlinuz-3.2.0-39-generic...

P: Writing config for /boot/vmlinuz-3.2.0-38-generic...

P: Writing config for /boot/vmlinuz-3.2.0-37-generic...

P: Writing config for /boot/vmlinuz-3.2.0-36-generic...

P: Writing config for /boot/vmlinuz-3.2.0-35-generic...

P: Writing config for /boot/vmlinuz-3.2.0-34-generic...

P: Writing config for /boot/vmlinuz-3.2.0-33-generic...

P: Writing config for /boot/vmlinuz-3.2.0-32-generic...

P: Writing config for /boot/vmlinuz-3.2.0-31-generic...

P: Writing config for Windows 7 (loader) on /dev/sda1...

P: Writing config for Windows Recovery Environment (loader) on /dev/sda2...

P: Installing debian theme...cp: cannot stat `/usr/share/syslinux/themes/debian-squeeze/extlinux/memtest.bin': No such file or directory

dpkg: error processing extlinux (--configure):

subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:

extlinux

Press return to continue.

答案1

它被安装联合国网启动作为依赖项。仅需要 UNetbootin 临时制作安装 USB,完成后无需保留其安装。

sudo apt-get purge unetbootin已修复,没有副作用。

答案2

我也遇到了同样的问题。我可以使用以下命令解决此问题:

apt-get remove --purge extlinux
apt-get install extlinux
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

确实有效!可能对某些人有帮助。谢谢。

相关内容