Error when updating or installing anything (linux-image-5.15.0-72-generic)

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
Frankooseb
Level 1
Level 1
Posts: 2
Joined: Sun May 28, 2023 11:32 pm

Error when updating or installing anything (linux-image-5.15.0-72-generic)

Post by Frankooseb »

I'm getting this error that won't let me install or update anything on my system, I've already tried doing a sudo
apt --fix-broken install
or with
sudo apt install --reinstall linux-image-5.15.0-72-generic
and in both I got the same error with linux-image-5.15.0-72-generic

Code: Select all

sudo apt upgrade
Reading list of packages... Done
Creating dependency tree... Done
Reading status information... Done
Calculating update... Done
The packages listed below were installed automatically and are no longer needed.
  innoextract libboost-program-options1.74.0 python3-usb
Use "sudo apt autoremove" to remove them.
0 upgraded, 0 new will be installed, 0 to remove and 0 not upgraded.
1 not installed at all or removed.
0 B of additional disk space will be used after this operation.
Do you want to continue? [Y/n] y
Configuring linux-image-5.15.0-72-generic (5.15.0-72.79) ...
Processing triggers for linux-image-5.15.0-72-generic (5.15.0-72.79) ...
/etc/kernel/postinst.d/dkms:
run-parts: failed to exec /etc/kernel/postinst.d/dkms: No such file or directory
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing linux-image-5.15.0-72-generic package (--configure):
 the installed subprocess linux-image-5.15.0-72-generic package post-insta script
llation returned the error exit code 1
Errors were encountered while processing:
 linux-image-5.15.0-72-generic
Last edited by LockBot on Wed Nov 29, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14561
Joined: Thu May 25, 2017 3:22 pm

Re: Error when updating or installing anything (linux-image-5.15.0-72-generic)

Post by sleeper12 »

Try this & post any errors:

Code: Select all

sudo dpkg --configure -a
Frankooseb
Level 1
Level 1
Posts: 2
Joined: Sun May 28, 2023 11:32 pm

Re: Error when updating or installing anything (linux-image-5.15.0-72-generic)

Post by Frankooseb »

still does not work for me

Code: Select all

❯ sudo dpkg --configure -a
❯ sudo apt upgrade
Reading list of packages... Done
Creating dependency tree... Done
Reading status information... Done
Calculating update... Done
The following packages have been retained:
  gnome-session-canberra libcanberra-gtk3-0 libcanberra-gtk3-module
  libcanberra-pulse libcanberra0
0 updated, 0 new to be installed, 0 to be removed and 5 not updated.
1 not completely installed or removed.
0 B of additional disk space will be used after this operation.
Do you want to continue? [Y/n] y
Configuring linux-image-5.15.0-72-generic (5.15.0-72.79) ...
Processing triggers for linux-image-5.15.0-72-generic (5.15.0-72.79) ...
/etc/kernel/postinst.d/dkms:
run-parts: failed to exec /etc/kernel/postinst.d/dkms: No such file or directory
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing linux-image-5.15.0-72-generic package (--configure):
 the installed subprocess linux-image-5.15.0-72-generic package post-insta script
llation returned the error exit code 1
Errors were encountered while processing:
 linux-image-5.15.0-72-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
sleeper12
Level 21
Level 21
Posts: 14561
Joined: Thu May 25, 2017 3:22 pm

Re: Error when updating or installing anything (linux-image-5.15.0-72-generic)

Post by sleeper12 »

Best I can offer for now is ignore the update. Right click on it and select 'ignore the current update for this package'.
linux-rox
Level 10
Level 10
Posts: 3334
Joined: Sun Jul 19, 2020 9:17 pm

Re: Error when updating or installing anything (linux-image-5.15.0-72-generic)

Post by linux-rox »

How long ago did you install? Did you set up Timeshift? Either reinstalling or restoring with Timeshift might be the simplest solution.
User avatar
SMG
Level 25
Level 25
Posts: 31814
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error when updating or installing anything (linux-image-5.15.0-72-generic)

Post by SMG »

Frankooseb wrote: Sun May 28, 2023 11:41 pm I'm getting this error that won't let me install or update anything on my system, I've already tried doing a sudo
Please open the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Then click the Copy button in the lower right and paste the results into a reply window here so we can see how Linux Mint views your hardware.

Please also let us know how you installed (fresh install or upgrade from a prior release).
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Beginner Questions”