Error messages when performing update manager

On a secondary small HP laptop, was running some updates and got a set of error messages. Is this info too cryptic or can someone tell me what’s happening here? There was also a window that had a lot of info but I couldn’t copy it. Something about it affecting my system because of a option-C attempt.

E: grub-pc: installed grub-pc package post-installation script subprocess returned error exit status 127
E: grub-efi-amd64-signed: dependency problems - leaving unconfigured
E: shim-signed: dependency problems - leaving unconfigured
E: linux-image-5.15.0-75-generic: installed linux-image-5.15.0-75-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-78-generic: installed linux-image-5.15.0-78-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-57-generic: installed linux-image-5.15.0-57-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-67-generic: installed linux-image-5.15.0-67-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-60-generic: installed linux-image-5.15.0-60-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-76-generic: installed linux-image-5.15.0-76-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-72-generic: installed linux-image-5.15.0-72-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-73-generic: installed linux-image-5.15.0-73-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-69-generic: installed linux-image-5.15.0-69-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-79-generic: installed linux-image-5.15.0-79-generic package post-installation script subprocess returned error exit status 1



there might be a problem with the package installation or configuration process on your system. Guessing someone updated one of your updates while it was in mid-update.

Do you have a recent backup?

At any rate, you can try running sudo apt --fix-broken install from the command line, often fixes things right there.

1 Like

Hey, thank you for your response months ago. I finally got around to looking into this and saw you responded. I tried that command and the system went into 15 minutes of activity and when done, there was an error message that had this in it:

etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.s
o.1.1: cannot open shared object file: No such file or directory
Found Windows Boot Manager on /dev/mmcblk0p1@/EFI/Microsoft/Boot/bootmgfw.efi
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.15.0-83-generic (–configure):
installed linux-image-5.15.0-83-generic package post-installation script subpro
cess returned error exit status 1
Errors were encountered while processing:
grub-pc
grub-efi-amd64-signed
shim-signed
linux-image-5.15.0-75-generic
linux-image-5.15.0-82-generic
linux-image-5.15.0-78-generic
linux-image-5.15.0-57-generic
linux-image-5.15.0-79-generic
linux-image-5.15.0-67-generic
linux-image-5.15.0-60-generic
linux-image-5.15.0-76-generic
linux-image-5.15.0-91-generic
linux-image-5.15.0-72-generic
linux-image-5.15.0-58-generic
linux-image-5.15.0-73-generic
linux-image-5.15.0-89-generic
linux-image-5.15.0-69-generic
linux-image-5.15.0-83-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

We removed Windows from this laptop two years ago and it should be gone completely or so I thought. I’m not sure why this is a relevant error, but we’re still in errors after running system update again and rebooting. The update process is still ending in error messages.

This is the small laptop I learned how to convert to Linux on. We did the Mint update to Cinnamon 21 and it’s at 21.1 at the moment. It’s a 64GB HP small laptop so it’s very basic, used as a low-use computer when my wife is homeschooling. It’s not her main laptop with all her “main work”. So we’re wondering if we should just re-install everything fresh and start over again on the small laptop? Or is there a fix for this.

Here are other errors on one of the panels after running software updates:

E: grub-pc: installed grub-pc package post-installation script subprocess returned error exit status 127
E: grub-efi-amd64-signed: dependency problems - leaving unconfigured
E: shim-signed: dependency problems - leaving unconfigured
E: linux-image-5.15.0-75-generic: installed linux-image-5.15.0-75-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-82-generic: installed linux-image-5.15.0-82-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-78-generic: installed linux-image-5.15.0-78-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-57-generic: installed linux-image-5.15.0-57-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-79-generic: installed linux-image-5.15.0-79-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-67-generic: installed linux-image-5.15.0-67-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-60-generic: installed linux-image-5.15.0-60-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-76-generic: installed linux-image-5.15.0-76-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-91-generic: installed linux-image-5.15.0-91-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-72-generic: installed linux-image-5.15.0-72-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-73-generic: installed linux-image-5.15.0-73-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-89-generic: installed linux-image-5.15.0-89-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-69-generic: installed linux-image-5.15.0-69-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-83-generic: installed linux-image-5.15.0-83-generic package post-installation script subprocess returned error exit status 1
E: linux-image-5.15.0-92-generic: installed linux-image-5.15.0-92-generic package post-installation script subprocess returned error exit status 1

Possibly to many images and your running out of space?

df -h can give you your disk usage in a human readable format.

If this is the case you can clean up a bit, good read on the usages of apt clean/autoclean/autoremove

HTH

1 Like

It is a good idea to keep and eye on disk space.

I had an issue when I over ran my /var directory.

It would be nice to have an script or tool that put up a warning @ ~20% ?%

A cron script in bash script with df -h and grep might be the trick?

I just tried

df -h | grep /dev/sda4
Result shows my back up drive still has plenty of room to grow.
/dev/sda4 961G 429G 54% /recovery

Nice tip MrDeploableUSA !

Ill see if I can make this a bit more useful and human readable. Maybe send an alert if it is below X GB or %.

1 Like

NorseMan and Mr Deplorable, thanks for your comments. I ran the df -h command and got some number that I’m running a little over 50% of the hard drive right now. It’s a 64GB drive so I’ve got a lot of room left, at least I think I do. I wouldn’t think that running updates would require 32GB of free space or something. It’s really only used for surfing for the most part as it’s not my wife’s main laptop. It’s used when she teaches my daughter and looking up stuff. So running updates seems like it shouldn’t be a problem.

We’re thinking maybe we should just bite the bullet and just do a fresh install of Linux, like starting over. If there’s no simple or somewhat simple way of fixing this, we could just “start over”.

Have you attempted the apt autoremove and apt autoclean suggestions?

#!/bin/bash

# Set the threshold for %used
threshold=80

# Run df -h command and store the output in a variable
df_output=$(df -h)

# Process the output line by line
while IFS= read -r line; do
  # Skip the header line
  if [[ $line == Filesystem* ]]; then
    continue
  fi

  # Extract the %used column value using awk
  used_percentage=$(echo "$line" | awk '{print $5}' | tr -d '%')

  # Compare the %used value with the threshold
  if (( used_percentage > threshold )); then
    # Output a warning message
    echo "Warning: Disk usage exceeded $threshold% - $line"
  fi
done <<< "$df_output"

That line almost at the end (echo “Warning”…) , you can modify to send to a log file for instance.

Thank YOU for that script @mcron.

A very good lesson in the power of bash scripting (automating terminal commands).

I wasn’t familiar with IFS and the <<< redirection so learned a bit more bash!

I updated the script with comments so anyone else learning will have a bit more insight into how it works.

Copy this text to a new file, make it executable and off you go.

#!/bin/bash

#######
# Run this script to review disk use and warn of any drives that are getting full (threshold)
# original author @mcron
# comments @NorseMan
# https://forums.jeff.pro/t/error-messages-when-performing-update-manager/4046/8
#######
# make the script executable:  sudo chmod -x df_notice.sh

# Example output:
#   ❯ sh bin/df_notice.sh
#     Warning: Disk usage exceeded 80% - efivarfs        256K  231K   21K  92% /sys/firmware/efi/efivars
#     Warning: Disk usage exceeded 80% - /dev/sda5       480G  371G   85G  82% /run/media/user/HomeBU


# Set the threshold for %used
threshold=80

# Run df -h command and store the output in a variable $df_output
df_output=$(df -h)

# Process df_output  line by line
# The special shell variable IFS determines how Bash recognizes word boundaries
# while splitting a sequence of character strings.
# The default value of IFS is a three-character string comprising a space, tab, and newline
# https://www.baeldung.com/linux/ifs-shell-variable

while IFS= read -r line; do
  # Skip the header line
  if [[ $line == Filesystem* ]]; then
    continue
  fi

# Extract the %used column value using awk to pull the fifth (5) column
  used_percentage=$(echo "$line" | awk '{print $5}' | tr -d '%')

# Compare the %used value with the threshold
  if (( used_percentage > threshold )); then
    # Output a warning message
    echo "Warning: Disk usage exceeded $threshold% - $line"
  fi

# while loop ends by sending the result of the tests to the terminal as a here-string using <<< redirection
# https://tecadmin.net/bash-here-strings/
  done <<< "$df_output"

It would be great to have a repository here of similar scripts to learn and use.

Yes, I have attempted those autoremove and autoclean suggestions. I’ve still got 50% of the drive available it appears. So space should not be an issue, I think.