For several weeks now, daily attempts to run updates stalls in the middle of downloading update files. Error message each time it stalls:
Package failed to install:
Error while installing package: installed linux-image-6.17.0-29-generic package post-removal script subprocess returned error exit status 127.
Thank you, rubi1200. The output is below. I have tried this same command sequence many times … but this time, the update actually ran! Although the same 127 error appears at the end.
/it:1 http://us.archive.ubuntu.com/ubun
tu noble InRelease
Hit:2 http://us.archive.ubuntu.com/ubun
tu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu
noble InRelease
Hit:4 http://security.ubuntu.com/ubuntu
noble-security InRelease
Hit:5 http://us.archive.ubuntu.com/ubun
tu noble-backports InRelease
Hit:6 http://archive.ubuntu.com/ubuntu
noble-updates InRelease
Hit:7 https://brave-browser-apt-release
.s3.brave.com stable InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
35 packages can be upgraded. Run ‘apt l
ist --upgradable’ to see them.
$ sudo apt upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
Get more security updates through Ubunt
u Pro with ‘esm-apps’ enabled:
libqt5webengine-data vlc-plugin-qt li
bvlc5 libimage-magick-perl
libdcmtk17t64 libmagickcore-6.q16-7t6
4 python3-flask-cors libzvbi-common
liburiparser1 vlc-data libqt5quickwid
gets5 libopenimageio2.4t64
libqt5xml5t64 qml-module-qtquick-shap
es qml-module-qtquick-layouts
libqt5webenginewidgets5 libvlccore9 q
ml-module-qtquick-window2
qt5-gtk-platformtheme libmagick+±6.q
16-9t64 vlc qml-module-qt-labs-settings
imagemagick libqt5sql5t64 vlc-bin lib
magickcore-6.q16-7-extra libqt5qml5
libqt5test5t64 python3-waitress vlc-l
10n libqt5quickshapes5
libwebsockets19t64 gimp-data libcjson
1 libavdevice60 ffmpeg libqt5quick5
libqt5quickparticles5 libopenexr-3-1-
30 libpostproc57 python3-wheel
vlc-plugin-samba libqt5gui5t64 libmbe
dcrypto7t64 gimp libmbedtls14t64
libavcodec60 libgstreamer-plugins-bad
1.0-0 qml-module-qtwebengine
libzvbi0t64 libimage-magick-q16-perl
libqt5printsupport5t64
vlc-plugin-notify libqt5webengine5 li
bgraphicsmagick+±q16-12t64
libqt5concurrent5t64 libavutil58 libq
t5widgets5t64 imagemagick-6.q16
libswscale7 qml-module-qt-labs-folder
listmodel libqt5dbus5t64
vlc-plugin-access-extra libqt5network
5t64 vlc-plugin-skins2
qml-module-qtqml-models2 libqt5opengl
5t64 vlc-plugin-video-splitter
libgimp2.0t64 libswresample4 imagemag
ick-6-common
qml-module-qt-labs-qmlmodels fig2dev
vlc-plugin-video-output
libqt5sql5-sqlite libqt5webenginecore
5 libqt5qmlmodels5 7zip libavformat60
gstreamer1.0-plugins-bad mupdf-tools
libglut3.12 qml-module-qtquick2
libgraphicsmagick-q16-3t64 libqt5qmlw
orkerscript5 libqt5sql5-mysql
libvlc-bin libmbedx509-1t64 libqt5cor
e5t64 qml-module-qtqml vlc-plugin-base
vlc-plugin-visualization qml-module-q
tquick-particles2 libavfilter9
libmagickwand-6.q16-7t64
Learn more about Ubuntu Pro at https://
ubuntu.com/pro
The following NEW packages will be inst
alled:
linux-headers-7.0.0-30-generic
linux-hwe-7.0-headers-7.0.0-30
linux-hwe-7.0-tools-7.0.0-30
linux-image-7.0.0-30-generic
linux-modules-7.0.0-30-generic
linux-tools-7.0.0-30-generic
The following packages will be upgraded
:
bind9-dnsutils bind9-host
bind9-libs brave-browser
console-setup console-setup-linux
curl keyboard-configuration
krb5-locales libcurl3t64-gnutls
libcurl4t64 libgit2-1.7
libgssapi-krb5-2
libheif-plugin-aomdec
libheif-plugin-aomenc
libheif-plugin-libde265
libheif-plugin-x265 libheif1
libk5crypto3 libkrb5-3
libkrb5support0 libpq5 libunbound8
linux-firmware
linux-headers-generic-hwe-24.04
linux-image-generic-hwe-24.04
linux-libc-dev
linux-lowlatency-hwe-24.04
linux-tools-common
power-profiles-daemon snapd
vim-common vim-tiny wget xxd
35 upgraded, 6 newly installed, 0 to re
move and 0 not upgraded.
1 not fully installed or removed.
22 standard LTS security updates
Need to get 16.0 MB/1,075 MB of archive
s.
After this operation, 367 MB of additio
nal disk space will be used.
Do you want to continue? \[Y/n\] y
Get:1 http://us.archive.ubuntu.com/ubun
tu noble-updates/main amd64 linux-image
-6.17.0-29-generic amd64 6.17.0-29.29\~2
4.04.1 \[16.0 MB\]
Fetched 16.0 MB in 4s (4,317 kB/s)
Extracting templates from packages: 100
%
Preconfiguring packages …
(Reading database … 505640 files and
directories currently installed.)
Preparing to unpack …/00-console-setu
p-linux_1.226ubuntu1.1_all.deb …
Unpacking console-setup-linux (1.226ubu
ntu1.1) over (1.226ubuntu1) …
Preparing to unpack …/01-console-setu
p_1.226ubuntu1.1_all.deb …
Unpacking console-setup (1.226ubuntu1.1
) over (1.226ubuntu1) …
Preparing to unpack …/02-keyboard-con
figuration_1.226ubuntu1.1_all.deb …
Unpacking keyboard-configuration (1.226
ubuntu1.1) over (1.226ubuntu1) …
Preparing to unpack …/03-libgssapi-kr
b5-2_1.20.1-6ubuntu2.8_amd64.deb …
Unpacking libgssapi-krb5-2:amd64 (1.20.
1-6ubuntu2.8) over (1.20.1-6ubuntu2.7)
…
Preparing to unpack …/04-libkrb5-3_1.
20.1-6ubuntu2.8_amd64.deb …
Unpacking libkrb5-3:amd64 (1.20.1-6ubun
tu2.8) over (1.20.1-6ubuntu2.7) …
Preparing to unpack …/05-libkrb5suppo
rt0_1.20.1-6ubuntu2.8_amd64.deb …
Unpacking libkrb5support0:amd64 (1.20.1
-6ubuntu2.8) over (1.20.1-6ubuntu2.7) .
..
Preparing to unpack …/06-libk5crypto3
\_1.20.1-6ubuntu2.8_amd64.deb …
Unpacking libk5crypto3:amd64 (1.20.1-6u
buntu2.8) over (1.20.1-6ubuntu2.7) …
Preparing to unpack …/07-libcurl3t64-
gnutls_8.5.0-2ubuntu10.12_amd64.deb …
Unpacking libcurl3t64-gnutls:amd64 (8.5
.0-2ubuntu10.12) over (8.5.0-2ubuntu10.
11) …
Preparing to unpack …/08-curl_8.5.0-2
ubuntu10.12_amd64.deb …
Unpacking curl (8.5.0-2ubuntu10.12) ove
r (8.5.0-2ubuntu10.11) …
Preparing to unpack …/09-libcurl4t64\_
8.5.0-2ubuntu10.12_amd64.deb …
Unpacking libcurl4t64:amd64 (8.5.0-2ubu
ntu10.12) over (8.5.0-2ubuntu10.11) …
Preparing to unpack …/10-wget_1.21.4-
1ubuntu4.5_amd64.deb …
Unpacking wget (1.21.4-1ubuntu4.5) over
(1.21.4-1ubuntu4.4) …
Preparing to unpack …/11-brave-browse
r_1.93.138_amd64.deb …
Unpacking brave-browser (1.93.138) over
(1.93.134) …
Preparing to unpack …/12-krb5-locales
\_1.20.1-6ubuntu2.8_all.deb …
Unpacking krb5-locales (1.20.1-6ubuntu2
.8) over (1.20.1-6ubuntu2.7) …
Preparing to unpack …/13-vim-tiny_2%3
a9.1.0016-1ubuntu7.19_amd64.deb …
Unpacking vim-tiny (2:9.1.0016-1ubuntu7
.19) over (2:9.1.0016-1ubuntu7.18) …
Preparing to unpack …/14-vim-common_2
%3a9.1.0016-1ubuntu7.19_all.deb …
Unpacking vim-common (2:9.1.0016-1ubunt
u7.19) over (2:9.1.0016-1ubuntu7.18) ..
.
Preparing to unpack …/15-xxd_2%3a9.1.
0016-1ubuntu7.19_amd64.deb …
Unpacking xxd (2:9.1.0016-1ubuntu7.19)
over (2:9.1.0016-1ubuntu7.18) …
Preparing to unpack …/16-bind9-dnsuti
ls_1%3a9.18.39-0ubuntu0.24.04.6_amd64.d
eb …
Unpacking bind9-dnsutils (1:9.18.39-0ub
untu0.24.04.6) over (1:9.18.39-0ubuntu0
.24.04.5) …
Preparing to unpack …/17-bind9-host_1
%3a9.18.39-0ubuntu0.24.04.6_amd64.deb .
..
Unpacking bind9-host (1:9.18.39-0ubuntu
0.24.04.6) over (1:9.18.39-0ubuntu0.24.
04.5) …
Preparing to unpack …/18-bind9-libs_1
%3a9.18.39-0ubuntu0.24.04.6_amd64.deb .
..
Unpacking bind9-libs:amd64 (1:9.18.39-0
ubuntu0.24.04.6) over (1:9.18.39-0ubunt
u0.24.04.5) …
Preparing to unpack …/19-libgit2-1.7\_
1.7.2+ds-1ubuntu3.1_amd64.deb …
Unpacking libgit2-1.7:amd64 (1.7.2+ds-1
ubuntu3.1) over (1.7.2+ds-1ubuntu3) …
Preparing to unpack …/20-libheif-plug
in-x265_1.17.6-1ubuntu4.7_amd64.deb …
Unpacking libheif-plugin-x265:amd64 (1.
17.6-1ubuntu4.7) over (1.17.6-1ubuntu4.
6) …
Preparing to unpack …/21-libheif-plug
in-libde265_1.17.6-1ubuntu4.7_amd64.deb
…
Unpacking libheif-plugin-libde265:amd64
(1.17.6-1ubuntu4.7) over (1.17.6-1ubun
tu4.6) …
Preparing to unpack …/22-libheif-plug
in-aomenc_1.17.6-1ubuntu4.7_amd64.deb .
..
Unpacking libheif-plugin-aomenc:amd64 (
1.17.6-1ubuntu4.7) over (1.17.6-1ubuntu
4.6) …
Preparing to unpack …/23-libheif-plug
in-aomdec_1.17.6-1ubuntu4.7_amd64.deb .
..
Unpacking libheif-plugin-aomdec:amd64 (
1.17.6-1ubuntu4.7) over (1.17.6-1ubuntu
4.6) …
Preparing to unpack …/24-libheif1_1.1
7.6-1ubuntu4.7_amd64.deb …
Unpacking libheif1:amd64 (1.17.6-1ubunt
u4.7) over (1.17.6-1ubuntu4.6) …
Preparing to unpack …/25-libpq5_16.15
-0ubuntu0.24.04.1_amd64.deb …
Unpacking libpq5:amd64 (16.15-0ubuntu0.
24.04.1) over (16.14-0ubuntu0.24.04.1)
…
Preparing to unpack …/26-libunbound8\_
1.19.2-1ubuntu3.9_amd64.deb …
Unpacking libunbound8:amd64 (1.19.2-1ub
untu3.9) over (1.19.2-1ubuntu3.8) …
Preparing to unpack …/27-linux-firmwa
re_20240318.git3b128b60-0ubuntu2.29_amd
64.deb …
Unpacking linux-firmware (20240318.git3
b128b60-0ubuntu2.29) over (20240318.git
3b128b60-0ubuntu2.27) …
Selecting previously unselected package
linux-hwe-7.0-headers-7.0.0-30.
Preparing to unpack …/28-linux-hwe-7.
0-headers-7.0.0-30_7.0.0-30.30\~24.04.1\_
all.deb …
Unpacking linux-hwe-7.0-headers-7.0.0-3
0 (7.0.0-30.30\~24.04.1) …
Selecting previously unselected package
linux-headers-7.0.0-30-generic.
Preparing to unpack …/29-linux-header
s-7.0.0-30-generic_7.0.0-30.30\~24.04.1\_
amd64.deb …
Unpacking linux-headers-7.0.0-30-generi
c (7.0.0-30.30\~24.04.1) …
Selecting previously unselected package
linux-modules-7.0.0-30-generic.
Preparing to unpack …/30-linux-module
s-7.0.0-30-generic_7.0.0-30.30\~24.04.1\_
amd64.deb …
Unpacking linux-modules-7.0.0-30-generi
c (7.0.0-30.30\~24.04.1) …
Selecting previously unselected package
linux-image-7.0.0-30-generic.
Preparing to unpack …/31-linux-image-
7.0.0-30-generic_7.0.0-30.30\~24.04.1_am
d64.deb …
Unpacking linux-image-7.0.0-30-generic
(7.0.0-30.30\~24.04.1) …
Preparing to unpack …/32-linux-lowlat
ency-hwe-24.04_7.0.0-30.30\~24.04.1_amd6
4.deb …
Unpacking linux-lowlatency-hwe-24.04 (7
.0.0-30.30\~24.04.1) over (7.0.0-28.28\~2
4.04.1) …
Preparing to unpack …/33-linux-image-
generic-hwe-24.04_7.0.0-30.30\~24.04.1_a
md64.deb …
Unpacking linux-image-generic-hwe-24.04
(7.0.0-30.30\~24.04.1) over (7.0.0-28.2
8\~24.04.1) …
Preparing to unpack …/34-linux-header
s-generic-hwe-24.04_7.0.0-30.30\~24.04.1
\_amd64.deb …
Unpacking linux-headers-generic-hwe-24.
04 (7.0.0-30.30\~24.04.1) over (7.0.0-28
.28\~24.04.1) …
Preparing to unpack …/35-linux-tools-
common_6.8.0-138.138_all.deb …
Unpacking linux-tools-common (6.8.0-138
.138) over (6.8.0-137.137) …
Selecting previously unselected package
linux-hwe-7.0-tools-7.0.0-30.
Preparing to unpack …/36-linux-hwe-7.
0-tools-7.0.0-30_7.0.0-30.30\~24.04.1_am
d64.deb …
Unpacking linux-hwe-7.0-tools-7.0.0-30
(7.0.0-30.30\~24.04.1) …
Preparing to unpack …/37-linux-libc-d
ev_6.8.0-138.138_amd64.deb …
Unpacking linux-libc-dev:amd64 (6.8.0-1
38.138) over (6.8.0-137.137) …
Selecting previously unselected package
linux-tools-7.0.0-30-generic.
Preparing to unpack …/38-linux-tools-
7.0.0-30-generic_7.0.0-30.30\~24.04.1_am
d64.deb …
Unpacking linux-tools-7.0.0-30-generic
(7.0.0-30.30\~24.04.1) …
Preparing to unpack …/39-power-profil
es-daemon_0.21-1ubuntu2_amd64.deb …
Unpacking power-profiles-daemon (0.21-1
ubuntu2) over (0.21-1ubuntu1) …
Preparing to unpack …/40-snapd_2.76.3
+ubuntu24.04_amd64.deb …
Unpacking snapd (2.76.3+ubuntu24.04) ov
er (2.76+ubuntu24.04.1) …
Setting up snapd (2.76.3+ubuntu24.04) .
..
snapd.failure.service is a disabled or
a static unit not running, not starting
it.
snapd.gpio-chardev-setup.target is a di
sabled or a static unit not running, no
t starting it.
snapd.snap-repair.service is a disabled
or a static unit not running, not star
ting it.
Setting up wget (1.21.4-1ubuntu4.5) …
Setting up linux-firmware (20240318.git
3b128b60-0ubuntu2.29) …
Setting up linux-hwe-7.0-headers-7.0.0-
30 (7.0.0-30.30\~24.04.1) …
Setting up linux-headers-7.0.0-30-gener
ic (7.0.0-30.30\~24.04.1) …
Setting up power-profiles-daemon (0.21-
1ubuntu2) …
Setting up linux-libc-dev:amd64 (6.8.0-
138.138) …
Setting up krb5-locales (1.20.1-6ubuntu
2.8) …
Setting up xxd (2:9.1.0016-1ubuntu7.19)
…
Setting up libkrb5support0:amd64 (1.20.
1-6ubuntu2.8) …
Setting up libunbound8:amd64 (1.19.2-1u
buntu3.9) …
Setting up vim-common (2:9.1.0016-1ubun
tu7.19) …
Setting up libk5crypto3:amd64 (1.20.1-6
ubuntu2.8) …
Setting up linux-headers-generic-hwe-24
.04 (7.0.0-30.30\~24.04.1) …
Setting up libkrb5-3:amd64 (1.20.1-6ubu
ntu2.8) …
Setting up linux-modules-7.0.0-30-gener
ic (7.0.0-30.30\~24.04.1) …
Setting up keyboard-configuration (1.22
6ubuntu1.1) …
Your console font configuration will be
updated the next time your system
boots. If you want to update it now, ru
n ‘setupcon’ from a virtual console.
update-initramfs: deferring update (tri
gger activated)
Setting up linux-tools-common (6.8.0-13
8.138) …
Setting up vim-tiny (2:9.1.0016-1ubuntu
7.19) …
Setting up linux-image-7.0.0-30-generic
(7.0.0-30.30\~24.04.1) …
I: /boot/vmlinuz.old is now a symlink t
o vmlinuz-7.0.0-28-generic
I: /boot/initrd.img.old is now a symlin
k to initrd.img-7.0.0-28-generic
I: /boot/vmlinuz is now a symlink to vm
linuz-7.0.0-30-generic
I: /boot/initrd.img is now a symlink to
initrd.img-7.0.0-30-generic
Setting up linux-hwe-7.0-tools-7.0.0-30
(7.0.0-30.30\~24.04.1) …
Setting up libgssapi-krb5-2:amd64 (1.20
.1-6ubuntu2.8) …
Setting up linux-tools-7.0.0-30-generic
(7.0.0-30.30\~24.04.1) …
Setting up libgit2-1.7:amd64 (1.7.2+ds-
1ubuntu3.1) …
Setting up console-setup-linux (1.226ub
untu1.1) …
Setting up console-setup (1.226ubuntu1.
1. …
update-initramfs: deferring update (tri
gger activated)
Setting up libcurl4t64:amd64 (8.5.0-2ub
untu10.12) …
Setting up bind9-libs:amd64 (1:9.18.39-
0ubuntu0.24.04.6) …
Setting up linux-image-generic-hwe-24.0
4 (7.0.0-30.30\~24.04.1) …
Setting up linux-lowlatency-hwe-24.04 (
7.0.0-30.30\~24.04.1) …
Setting up libpq5:amd64 (16.15-0ubuntu0
.24.04.1) …
Setting up libcurl3t64-gnutls:amd64 (8.
5.0-2ubuntu10.12) …
Setting up brave-browser (1.93.138) …
Setting up curl (8.5.0-2ubuntu10.12) ..
.
Setting up bind9-host (1:9.18.39-0ubunt
u0.24.04.6) …
Setting up bind9-dnsutils (1:9.18.39-0u
buntu0.24.04.6) …
Setting up libheif-plugin-aomdec:amd64
(1.17.6-1ubuntu4.7) …
Setting up libheif1:amd64 (1.17.6-1ubun
tu4.7) …
Setting up libheif-plugin-libde265:amd6
4 (1.17.6-1ubuntu4.7) …
Setting up libheif-plugin-x265:amd64 (1
.17.6-1ubuntu4.7) …
Setting up libheif-plugin-aomenc:amd64
(1.17.6-1ubuntu4.7) …
Processing triggers for libc-bin (2.39-
0ubuntu8.8) …
Processing triggers for man-db (2.12.0-
4build2) …
Processing triggers for dbus (1.14.10-4
ubuntu4.1) …
Processing triggers for install-info (7
.1-3build2) …
Processing triggers for desktop-file-ut
ils (0.27-2build1) …
Processing triggers for hicolor-icon-th
eme (0.17-2) …
Processing triggers for initramfs-tools
(0.142ubuntu25.8) …
update-initramfs: Generating /boot/init
rd.img-7.0.0-28-generic
Processing triggers for linux-image-7.0
.0-30-generic (7.0.0-30.30\~24.04.1) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/init
rd.img-7.0.0-30-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file \`/etc/default/grub’
/usr/sbin/grub-mkconfig: 10: /etc/defau
lt/grub: i915.enable_dc=0: not found
run-parts: /etc/kernel/postinst.d/zz-up
date-grub exited with return code 127
**dpkg:** error processing package linux-im
age-7.0.0-30-generic (–configure):
installed linux-image-7.0.0-30-generic
package post-installation script subpr
ocess returned error exit status 127
Errors were encountered while processin
g:
linux-image-7.0.0-30-generic
**E:** Sub-process /usr/bin/dpkg returned a
n error code (1)
You seem to have messed up the /etc/default/grub file … can you paste it here (and please use proper formatting with the </> button at the top of the input field for your pasted content …)
Thank you, ogra. Though I began my digital life formatting data on punch cards, then writing BASIC programs for HP desktop systems (with cassette tape memory), and then fine tuning AUTOEXEC.BAT and CONFIG.SYS boot files for our DOS PCs, I am new to Linux and Ubuntu (and enjoying it). Thanks for the assist and formatting tip. As requested:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" i915.enable_dc=0 i915.enable_psr=0
GRUB_CMDLINE_LINUX=""
# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
This line is wrong, everything after the equal sign needs to be between the quotes, any stuff that comes afterwards is considered a syntax error, move the i915 options (or simply move the second quote sign to the end of the line).