On Ubuntu 22.04.2 LTS, whenever I install a package, the installation process ends with a number of seemingly extraneous messages and errors, but the requested package is actually installed.
Here's an example installing python3-openssl
tim@Tethys-Lx64:~/git-dev$ sudo apt-get -y install python3-openssl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-generic-hwe-20.04 linux-image-generic-hwe-20.04
Use 'sudo apt autoremove' to remove them.
Suggested packages:
python-openssl-doc python3-openssl-dbg
The following NEW packages will be installed:
python3-openssl
0 upgraded, 1 newly installed, 0 to remove and 471 not upgraded.
1 not fully installed or removed.
Need to get 45.2 kB of archives.
After this operation, 244 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 python3-openssl all 21.0.0-1 [45.2 kB]
Fetched 45.2 kB in 0s (121 kB/s)
Selecting previously unselected package python3-openssl.
(Reading database ... 282394 files and directories currently installed.)
Preparing to unpack .../python3-openssl_21.0.0-1_all.deb ...
Unpacking python3-openssl (21.0.0-1) ...
Setting up python3-openssl (21.0.0-1) ...
Setting up linux-image-6.8.0-47-generic (6.8.0-47.47~22.04.1) ...
Processing triggers for linux-image-6.8.0-47-generic (6.8.0-47.47~22.04.1) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 6.8.0-47-generic
Kernel preparation unnecessary for this kernel. Skipping...
applying patch buildfix_kernel_5.13_armhf.patch...patching file common/inc/nv-linux.h
patching file nvidia-drm/nvidia-drm-linux.c
Hunk #1 succeeded at 85 (offset 10 lines).
patching file nvidia-modeset/nvidia-modeset-linux.c
Building module:
cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j2 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.8.0-47-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.8.0-47-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules....................(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-390.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-47-generic (x86_64)
Consult /var/lib/dkms/nvidia/390.157/build/make.log for more information.
...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.8.0-47-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file /etc/default/grub' Sourcing file/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-47-generic
Found initrd image: /boot/initrd.img-6.8.0-47-generic
Found linux image: /boot/vmlinuz-5.15.0-71-generic
Found initrd image: /boot/initrd.img-5.15.0-71-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 10 on /dev/sda1
Found Windows 10 on /dev/sdi1
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Found Windows 10 on /dev/sda1
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-6.8.0-47-generic (--configure):
installed linux-image-6.8.0-47-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-6.8.0-47-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
$
There is a lot more output and error than normally resulting from installing. It appears to always install Setting up linux-image-6.8.0-47-generic which adds a lot of the output, getting into booting and grub, when I'm just installing a basic package.
I tried sudo apt autoremove but still got the output Setting up linux-image-6.8.0-47-generic and beyond.
Is there something I need to clean up or delete to restore "normal" installation behavior?
Edit - requested output from dpkg -l | grep nvidia
tim@Tethys-Lx64:~$ dpkg -l | grep nvidia
ii libnvidia-cfg1-390:amd64 390.157-0ubuntu0.22.04.2 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-390 390.157-0ubuntu0.22.04.2 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-390:amd64 390.157-0ubuntu0.22.04.2 amd64 NVIDIA libcompute package
ii libnvidia-compute-390:i386 390.157-0ubuntu0.22.04.2 i386 NVIDIA libcompute package
ii libnvidia-decode-390:amd64 390.157-0ubuntu0.22.04.2 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-390:i386 390.157-0ubuntu0.22.04.2 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-390:amd64 390.157-0ubuntu0.22.04.2 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-390:i386 390.157-0ubuntu0.22.04.2 i386 NVENC Video Encoding runtime library
ii libnvidia-fbc1-390:amd64 390.157-0ubuntu0.22.04.2 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-390:i386 390.157-0ubuntu0.22.04.2 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-390:amd64 390.157-0ubuntu0.22.04.2 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-390:i386 390.157-0ubuntu0.22.04.2 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-ifr1-390:amd64 390.157-0ubuntu0.22.04.2 amd64 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii libnvidia-ifr1-390:i386 390.157-0ubuntu0.22.04.2 i386 NVIDIA OpenGL-based Inband Frame Readback runtime library
ii nvidia-compute-utils-390 390.157-0ubuntu0.22.04.2 amd64 NVIDIA compute utilities
iF nvidia-dkms-390 390.157-0ubuntu0.22.04.2 amd64 NVIDIA DKMS package
ii nvidia-driver-390 390.157-0ubuntu0.22.04.2 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-390 390.157-0ubuntu0.22.04.2 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-390 390.157-0ubuntu0.22.04.2 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 510.47.03-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-390 390.157-0ubuntu0.22.04.2 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-390 390.157-0ubuntu0.22.04.2 amd64 NVIDIA binary Xorg driver
tim@Tethys-Lx64:~$