Update manager fail

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Update manager fail

Post by Potshot »

I keep getting these error msg's when I update. I don't know what these mean and how to fix them.

Code: Select all

E: linux-image-5.15.0-52-generic: installed linux-image-5.15.0-52-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-48-generic: installed linux-image-5.15.0-48-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-58-generic: installed linux-image-5.15.0-58-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-50-generic: installed linux-image-5.15.0-50-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-47-generic: installed linux-image-5.15.0-47-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-56-generic: installed linux-image-5.15.0-56-generic package post-installation script subprocess returned error exit status 1
Last edited by LockBot on Thu Jul 13, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14317
Joined: Thu May 25, 2017 3:22 pm

Re: Update manager fail

Post by sleeper12 »

What does this show:

Code: Select all

 sudo dpkg --configure -a 
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

All this and more:

Code: Select all

[sudo] password for john:     
Setting up linux-image-5.15.0-52-generic (5.15.0-52.58) ...
Setting up linux-image-5.15.0-48-generic (5.15.0-48.54) ...
Setting up grub-pc (2.06-2ubuntu7.1) ...
sudo: update: command not found
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.15.0-58-generic (5.15.0-58.64) ...
Setting up linux-image-5.15.0-50-generic (5.15.0-50.56) ...
Setting up linux-image-5.15.0-47-generic (5.15.0-47.51) ...
Setting up linux-image-5.15.0-56-generic (5.15.0-56.62) ...
Processing triggers for linux-image-5.15.0-52-generic (5.15.0-52.58) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.15.0-52-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-52-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
sudo: update: command not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.15.0-52-generic (--configure):
 installed linux-image-5.15.0-52-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.15.0-48-generic (5.15.0-48.54) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.15.0-48-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-48-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
sudo: update: command not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.15.0-48-generic (--configure):
 installed linux-image-5.15.0-48-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.15.0-58-generic (5.15.0-58.64) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.15.0-58-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-58-generic
and more of this
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

Finally ended with this:

Code: Select all

Errors were encountered while processing:
 grub-pc
 linux-image-5.15.0-52-generic
 linux-image-5.15.0-48-generic
 linux-image-5.15.0-58-generic
 linux-image-5.15.0-50-generic
 linux-image-5.15.0-47-generic
 linux-image-5.15.0-56-generic
sleeper12
Level 21
Level 21
Posts: 14317
Joined: Thu May 25, 2017 3:22 pm

Re: Update manager fail

Post by sleeper12 »

Can you remove any old kernels in Update Manager, View, Linux Kernels?
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

I will try to do that. If I can't get this system to work I may just dl the latest Mint and start all over.
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

I tried to remove a image but got the error msg:

Code: Select all

E: linux-image-5.15.0-41-generic: installed linux-image-5.15.0-41-generic package post-removal script subprocess returned error exit status 1
So not having any luck with that.
User avatar
Pjotr
Level 23
Level 23
Posts: 19802
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Update manager fail

Post by Pjotr »

Try this:

Code: Select all

sudo rm -v -R /var/cache/apt/*
Followed by:

Code: Select all

sudo apt-get update && sudo apt-get dist-upgrade
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

ok I done that and one other command it suggested at end but it gave error. However I will see if this made any difference
and get back with you later. Thanks again for the help.
User avatar
Pjotr
Level 23
Level 23
Posts: 19802
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Update manager fail

Post by Pjotr »

Potshot wrote: Mon Jan 23, 2023 4:34 am ok I done that and one other command it suggested at end but it gave error.
What error?
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

I believe the same as before.

subprocess returned error exit status 1
sleeper12
Level 21
Level 21
Posts: 14317
Joined: Thu May 25, 2017 3:22 pm

Re: Update manager fail

Post by sleeper12 »

Post what this shows:

Code: Select all

sudo apt autoremove
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

I ran that and afterwards it suggested I run "apt --fix-broken install etc" so I ran that and it said
after running that "there were too many errors" and it quit.
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

E: linux-image-5.15.0-41-generic: installed linux-image-5.15.0-41-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
grub-pc
linux-image-5.15.0-52-generic
linux-image-5.15.0-48-generic
linux-image-5.15.0-58-generic
linux-image-5.15.0-50-generic
linux-image-5.15.0-47-generic
linux-image-5.15.0-56-generic
All this after trying updates again. So guess Mint is buggy so may have to try another linux variety. Ubuntu was buggy too
so tried Mint but looks like it's same. Any other linux's I might try?
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

I decided to wipe laptop clean and start all over with Cinnamon 21.1 Vera. So far it's seems to be working ok. Hope it stays this way.
So thanks for all the help.
motoryzen
Level 10
Level 10
Posts: 3427
Joined: Sun Dec 08, 2019 12:25 am

Re: Update manager fail

Post by motoryzen »

nods to Potshot

Confirm that everything is working as it should be. THEN i recommend you do a system image backup or drive clone ( Foxclone has been rock solid for me and the actual dev. AndyMH..is an active forum member here who can answer whatever questions you may have about it) targeting a separate physical drive.

Also. create a Timeshift snapshot ;)

Never hurts to be prepared
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
User avatar
zcot
Level 9
Level 9
Posts: 2781
Joined: Wed Oct 19, 2016 6:08 pm

Re: Update manager fail

Post by zcot »

Potshot wrote: Sat Jan 21, 2023 3:07 am

Code: Select all

[sudo] password for john:     

Setting up grub-pc (2.06-2ubuntu7.1) ...
sudo: update: command not found
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 1
 
It seems like some specific issue. I guess this is not specific that Ubuntu and Mint are both buggy in general(or everybody would have these problems). I think something is happening in the user space that is causing a problem. There are too many lines showing that sudo: update: command not found and then the next lines will be failures because of something related to permission, or, I don't really know, but update not found -this is a problem.
Potshot
Level 1
Level 1
Posts: 16
Joined: Sun Aug 28, 2022 12:29 am
Location: OK

Re: Update manager fail

Post by Potshot »

motoryzen wrote: Wed Feb 01, 2023 5:56 pm nods to Potshot

Confirm that everything is working as it should be. THEN i recommend you do a system image backup or drive clone ( Foxclone has been rock solid for me and the actual dev. AndyMH..is an active forum member here who can answer whatever questions you may have about it) targeting a separate physical drive.

Also. create a Timeshift snapshot ;)

Never hurts to be prepared
I have Timeshift enabled automatically. I have an OWC external drive for backups. I use the backup software in Mint. I looked for Foxclone in the
Mint software file but couldn't find it.
motoryzen
Level 10
Level 10
Posts: 3427
Joined: Sun Dec 08, 2019 12:25 am

Re: Update manager fail

Post by motoryzen »

I looked for Foxclone in the
Mint software file but couldn't find it.
Foxclone wouldn't show up in Software Manager. It's a third party application developed by AndyMH ( that's his user name anyways..who is a forum member here at this site)

You'll need to go to Foxclone.org and download one of the top two or three selections, then you can use Mint's own " Usb Image Writer" application to put that on a usb thumb drive ( recommend 3.0 or faster) or even a ssd you formatted to fat32 ahead of time if you have a spare lying around.
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
Locked

Return to “Beginner Questions”