Yes. I have been unable to upgrade linux-image-
unsigned-5.15.0-119-generic, and more recently, it is also giving errors
about php8.1-common having dependency errors, although that package does
not show up as not being fully installed as linux-image-
unsigned-5.15.0-119-generic does.

I asked for help in the unofficial Ubuntu Hideout Discord server on
09-13-2024, so I will copy the explanation from there (note: since then,
sudo apt update && sudo apt upgrade will still install and upgrade other
packages, but always gets to saying that linux-image-
unsigned-5.15.0-119-generic needs to be reinstalled and then errors):

Just started happening yesterday; I have no idea what caused this.

I try to run `sudo apt update && sudo apt upgrade` but am told:
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or 
specify a solution).
```
Upon running this command:
```
c@localhost:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  linux-image-unsigned-5.15.0-119-generic
Suggested packages:
  fdutils linux-doc | linux-source-5.15.0 linux-tools
  linux-headers-5.15.0-119-generic linux-modules-extra-5.15.0-119-generic
The following packages will be REMOVED:
  linux-image-5.15.0-119-generic
The following NEW packages will be installed:
  linux-image-unsigned-5.15.0-119-generic
0 upgraded, 1 newly installed, 1 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 11.8 MB of archives.
After this operation, 723 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
linux-image-unsigned-5.15.0-119-generic amd64 5.15.0-119.129 [11.8 MB]
Fetched 11.8 MB in 2s (6,724 kB/s)                                  
dpkg: linux-image-5.15.0-119-generic: dependency problems, but removing anyway a
s you requested:
 linux-modules-5.15.0-119-generic depends on linux-image-5.15.0-119-generic | li
nux-image-unsigned-5.15.0-119-generic; however:
  Package linux-image-5.15.0-119-generic is to be removed.
  Package linux-image-unsigned-5.15.0-119-generic is not installed.

(Reading database ... 338701 files and directories currently installed.)
Removing linux-image-5.15.0-119-generic (5.15.0-119.129) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-119-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 36: /etc/default/grub: nouveau.config=NvGspRm=1: not fo
und
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.15.0-119-generic (--remove):
 installed linux-image-5.15.0-119-generic package post-removal script subprocess
 returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.15.0-119-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
None of the solutions I found online have worked; this is very frustrating as I 
need to install some things in APT. Trying to force removal in dpkg leads to 
this error:
```
dpkg: linux-image-5.15.0-119-generic: dependency problems, but removing anyway 
as you requested:
 linux-modules-5.15.0-119-generic depends on linux-image-5.15.0-119-generic | 
linux-image-unsigned-5.15.0-119-generic; however:
  Package linux-image-5.15.0-119-generic is to be removed.
  Package linux-image-unsigned-5.15.0-119-generic is not installed.

(Reading database ... 338701 files and directories currently installed.)
Removing linux-image-5.15.0-119-generic (5.15.0-119.129) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-119-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 36: /etc/default/grub: nouveau.config=NvGspRm=1: not 
found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.15.0-119-generic (--purge):
 installed linux-image-5.15.0-119-generic package post-removal script 
subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.15.0-119-generic
```

-----

I was told by someone on Discord that the most relevant log is:
```
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 36: /etc/default/grub: nouveau.config=NvGspRm=1: not fo
und
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
```
"This seems to be the most specific issue to yours. Something with update-grub 
is causing issues with kernel updates, because update-grub is failing to run."

I do not know what caused this to start occurring; in
https://bugs.launchpad.net/ubuntu/+source/php8.1/+bug/2083437, I was
told that the issues with php8.1-common were caused by me apparently
having installed Python from an unofficial source, but I do not know
when I did that or if that package failing to install is related.

I also had an issue updating LibreOffice (see
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/2081237), and
I since uninstalled LibreOffice because I don't really need it and
didn't want to troubleshoot the errors.

Here is the most recent log of what happens when trying to run sudo apt
update && sudo apt upgrade:

c@localhost:~$ sudo apt update && sudo apt upgrade
[sudo] password for c: 
Hit:1 http://prerelease.keybase.io/deb stable InRelease
Hit:2 http://download.virtualbox.org/virtualbox/debian jammy InRelease         
Hit:3 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                 
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease                  
Hit:5 https://repo.steampowered.com/steam stable InRelease                     
Hit:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease         
Hit:7 https://updates.signal.org/desktop/apt xenial InRelease                  
Hit:8 http://us.archive.ubuntu.com/ubuntu jammy InRelease                      
Err:5 https://repo.steampowered.com/steam stable InRelease                     
  The following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY F24AEA9FB05498B7
Get:9 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]      
Hit:10 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease             
Hit:11 https://repo.protonvpn.com/debian stable InRelease                      
Hit:12 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease           
Get:13 https://esm.ubuntu.com/cis/ubuntu jammy InRelease [4,575 B]             
Get:15 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security InRelease [7,553 
B]
Hit:14 https://hub-dist.unity3d.com/artifactory/hub-debian-prod-local stable 
InRelease
Get:16 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates InRelease [7,456 B]
Get:17 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease 
[7,450 B]
Hit:18 https://ppa.launchpadcontent.net/flatpak/stable/ubuntu jammy InRelease
Hit:19 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy 
InRelease
Get:20 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease [7,449 
B]
Hit:21 
https://ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy 
InRelease
Fetched 163 kB in 3s (65.2 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: http://prerelease.keybase.io/deb/dists/stable/InRelease: Key is stored in 
legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section 
in apt-key(8) for details.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as 
repository 'http://prerelease.keybase.io/deb stable InRelease' doesn't support 
architecture 'i386'
W: https://dl.winehq.org/wine-builds/ubuntu/dists/focal/InRelease: Key is 
stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the 
DEPRECATION section in apt-key(8) for details.
W: An error occurred during the signature verification. The repository is not 
updated and the previous index files will be used. GPG error: 
https://repo.steampowered.com/steam stable InRelease: The following signatures 
couldn't be verified because the public key is not available: NO_PUBKEY 
F24AEA9FB05498B7
W: https://hub.unity3d.com/linux/repos/deb/dists/stable/InRelease: Key is 
stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the 
DEPRECATION section in apt-key(8) for details.
W: Failed to fetch https://repo.steampowered.com/steam/dists/stable/InRelease  
The following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY F24AEA9FB05498B7
W: Some index files failed to download. They have been ignored, or old ones 
used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
16 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up linux-image-6.8.0-45-generic (6.8.0-45.45~22.04.1) ...
Setting up php8.1-common (8.1.2-1ubuntu2.19) ...
dpkg: error processing package php8.1-common (--configure):
 installed php8.1-common package post-installation script subprocess returned er
ror exit status 10
dpkg: dependency problems prevent configuration of php8.1-gd:
 php8.1-gd depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-gd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1:
 php8.1 depends on php8.1-common; however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1-curl:
 php8.1-curl depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-curl (--configure):
 dependency problems - leNo apport report written because the error message indi
cates its a followup error from a previous failure.
                                                   No apport report written beca
use the error message indicates its a followup error from a previous failure.
                                                                             No 
apport report written because MaxReports is reached already
                                                           No apport report writ
ten because MaxReports is reached already
                                         No apport report written because MaxRep
orts is reached already
                       No apport report written because MaxReports is reached al
ready
     No apport report written because MaxReports is reached already
                                                                   aving unconfi
gured
dpkg: dependency problems prevent configuration of php8.1-xml:
 php8.1-xml depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-xml (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1-fpm:
 php8.1-fpm depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-fpm (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1-mysql:
 php8.1-mysql depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-mysql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1-cli:
 php8.1-cli depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-cli (--configure):
 dependency problems - leaving unconfigured
Setting up linux-image-unsigned-5.15.0-119-generic (5.15.0-119.129) ...
Setting up linux-image-5.15.0-122-generic (5.15.0-122.132) ...
dpkg: dependency problems prevent configuration of php8.1-readline:
 php8.1-readline depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-readline (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php8.1:
 libapache2-mod-php8.1 depends on php8.1-cli; however:
  Package php8.1-cli is not configured yet.
 libapache2-mod-php8.1 depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package libapache2-mod-php8.1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1-opcache:
 php8.1-opcache depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

No apport report written because MaxReports is reached already
                                                              No apport report w
ritten because MaxReports is reached already
                                            No apport report written because Max
Reports is reached already
                          No apport report written because MaxReports is reached
 already
        No apport report written because MaxReports is reached already

                                                                       dependenc
y problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1-intl:
 php8.1-intl depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-intl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1-mbstring:
 php8.1-mbstring depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-mbstring (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-6.8.0-45-generic (6.8.0-45.45~22.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-45-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-45-generic

I: The initramfs will attempt to resume from 
/dev/dm-2####.........................................................................................................................................................
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 36: /etc/default/grub: nouveau.config=NvGspRm=1: not 
found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-6.8.0-45-generic (--configure):
 installed linux-image-6.8.0-45-generic package post-installation script 
subprocess returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing 
triggers for linux-image-unsigned-5.15.0-119-generic (5.15.0-119.129) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.15.0-119-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-119-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 36: /etc/default/grub: nouveau.config=NvGspRm=1: not 
found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-unsigned-5.15.0-119-generic 
(--configure):
 installed linux-image-unsigned-5.15.0-119-generic package post-installation 
script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing 
triggers for linux-image-5.15.0-122-generic (5.15.0-122.132) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.15.0-122-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-122-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 36: /etc/default/grub: nouveau.config=NvGspRm=1: not 
found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.15.0-122-generic (--configure):
 installed linux-image-5.15.0-122-generic package post-installation script 
subprocess returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were 
encountered while processing:
 php8.1-common
 php8.1-gd
 php8.1
 php8.1-curl
 php8.1-xml
 php8.1-fpm
 php8.1-mysql
 php8.1-cli
 php8.1-readline
 libapache2-mod-php8.1
 php8.1-opcache
 php8.1-intl
 php8.1-mbstring
 linux-image-6.8.0-45-generic
 linux-image-unsigned-5.15.0-119-generic
 linux-image-5.15.0-122-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


** Changed in: clamav (Ubuntu)
       Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080889

Title:
  package clamav-freshclam 0.103.12+dfsg-0ubuntu0.22.04.1 failed to
  install/upgrade: installed clamav-freshclam package post-installation
  script subprocess returned error exit status 10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/2080889/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to