update error

Asked by Emad Bahrami on 2021-03-28

i think i have a problem in linux-image-5.4.0-65-generic i do portial update but even now i cannot update or something

when i use apt update or upgrade

/usr/sbin/grub-probe: error: failed to get canonical path of `rpool/ROOT/ubuntu_wb8794'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.4.0-65-generic (--remove):
 installed linux-image-5.4.0-65-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.4.0-65-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

and also i cant change and refresh my repositories and i gave an odd error when refresh it

and also it is output of sudo dpkg --configure -a

Setting up linux-image-5.4.0-67-generic (5.4.0-67.75) ...
^Cdpkg: error processing package linux-image-5.4.0-67-generic (--configure):
 installed linux-image-5.4.0-67-generic package post-installation script subprocess was interrupted
Setting up grub-pc (2.04-1ubuntu26.9) ...
^Cdpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess was interrupted
Setting up linux-image-5.4.0-70-generic (5.4.0-70.78) ...
^Cdpkg: error processing package linux-image-5.4.0-70-generic (--configure):
 installed linux-image-5.4.0-70-generic package post-installation script subprocess was interrupted
Errors were encountered while processing:
 linux-image-5.4.0-67-generic
 grub-pc
 linux-image-5.4.0-70-generic

and even in auto remove

Removing linux-image-5.4.0-65-generic (5.4.0-65.73) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-65-generic
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-probe: error: failed to get canonical path of `rpool/ROOT/ubuntu_wb8794'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.4.0-65-generic (--remove):
 installed linux-image-5.4.0-65-generic package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.4.0-65-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

someone help me

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2021-03-29
Last reply:
2021-04-14
Manfred Hampl (m-hampl) said : #1

For diagnostic purposes please provide the full output that you receive for the following commands:

uname -a
lsb_release -crid
sudo apt update
sudo dpkg --audit
sudo update-grub

Emad Bahrami (bashma) said : #3

#### uname -a

Linux emad-All-Series 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

####lsb_release -crid

Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

####sudo dpkg --audit

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 grub-pc GRand Unified Bootloader, version 2 (PC/BIOS version)
 linux-image-5.4.0-67-generic Signed kernel image generic
 linux-image-5.4.0-70-generic Signed kernel image generic

The following packages are only half installed, due to problems during
installation. The installation can probably be completed by retrying it;
the packages can be removed using dselect or dpkg --remove:
 linux-image-5.4.0-65-generic Signed kernel image generic

####sudo update-grub

/usr/sbin/grub-probe: error: failed to get canonical path of `rpool/ROOT/ubuntu_wb8794'.

Emad Bahrami (bashma) said : #4

my problem is about last kernel version but no comment cannot delete it

dpkg: error processing package linux-image-5.4.0-65-generic (--remove):

Manfred Hampl (m-hampl) said : #5

What is the output of the commands

fdisk -l
zfs list
zpool list

Launchpad Janitor (janitor) said : #6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.