How to remove kernel image (4.7-RC3) after failed installation on 16.04

Following a spate of total freezes on my Acer B116 after upgrading to Ubuntu 16.04, I read this post and decided to upgrade the kernel to 4.7-RC3 using these instructions.

However, there were errors when installing. I tried to then uninstall the kernel using the instruction (from the previous link):

$ sudo apt-get remove 'linux-headers-4.7*' 'linux-image-4.7*'

From the terminal, the error messages are:

/usr/sbin/grub-probe: error: failed to get canonical path of `aufs'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.7.0-040700rc3-generic.postrm line 328.
dpkg: error processing package linux-image-4.7.0-040700rc3-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-headers-4.7.0-040700rc3-generic (4.7.0-040700rc3.201606121131) ...
Removing linux-headers-4.7.0-040700rc3 (4.7.0-040700rc3.201606121131) ...
Errors were encountered while processing:
linux-image-4.7.0-040700rc3-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've also tried to remove the kernel image via Synaptic Package Manager but similar error messages occur.

Advice on how to remove the kernel image would be greatly appreciated. For the record, I now know that installing this kernel is not the solution, and I don't want it installed.

0
задан 13 April 2017 в 15:25

1 ответ

Я продолжил искать после регистрации проблемы и нашел ответ, который позволил мне, продолжают установку и обновление. Я не испытан достаточно, чтобы знать, лучше ли ответ, за которым я следовал (ниже) или решение, отправленное Zanna (Спасибо!).

решение, которое я использовал, было отправлено в этот поток , где Ox450 отвечает на его собственный вопрос, который является следующие:

причина проблемы:

я проверил dpkg состояние пакетов:

dpkg --status linux-image-3.13.0.57-generic  
dpkg --status linux-image-extra-3.13.0-57-generic  

вывод ясно указал, что пакеты были в плохом состоянии. Они не были "полностью установлены", как я записал в вопросе выше.

решение:

записи этих пакетов должны быть удалены из файла состояния dpkg в склонном порядке - добираются для функционирования обычно. Шаги следующие:

Удостоверяются, что составили заднюю часть файла состояния, если что-то идет не так, как надо.

sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.backupOpen /var/lib/dpkg/status with your preferred text editor and search and delete ONLY the references of the broken packages. You must not delete anything else!

Выполнение sudo склонный - заставляет обновление удостоверяться, что все фиксируется.

0
ответ дан 28 September 2019 в 18:35

Другие вопросы по тегам:

Похожие вопросы: