Trying to remove old kernel fails

Every time I try to update I get this error

If I try auto remove I get this error

This PC was upgraded from Ubuntu 21.10 (Impish Indri) to 22.04 JJ

It seems to get upset with the 5.13.0-39 kernel so
first, dpkg -l | grep linux-
then sudo dpkg --purge filename
(eg. sudo dpkg --purge linux-image-5.13.0-39-generic)

One by one, remove any files, modules that have 5.13.0-39 in the filename.

Then sudo apt update, is it clean (no errors)?

You have to remove strange binary GRUB proxy file by

sudo rm /etc/grub.d/bin/grubcfg_proxy

and then update GRUB menu with

sudo update-grub

Then finally remove old kernels by commands like

sudo apt-get autoremove --purge
sudo apt-get install byobu
sudo purge-old-kernels

And please next time use text output instead of screenshots.

Thanks for trying to help but it didn't work.
I backed up my home partition and fresh installed.
All good again.

Thanks for offering assistance but It still didn't fix it.
Clean installed after backup of home folder.
Working fine again