Article 6PYG2 E: Sub-process /usr/bin/dpkg returned an error code (1)

E: Sub-process /usr/bin/dpkg returned an error code (1)

by
poojasaxena
from LinuxQuestions.org on (#6PYG2)
Hi there,
I have been facing this error message (subject) since sometime. I am not that knowledgeable at what extent its affecting my system, so would like to know the proper solution.

About my system: Lenovo Thinkpad L13 Yoga Gen4
Processor: AMD Ryzen 5 Pro 7530u with radeon graphics x12
OS : 64 bit Ubuntu 22.04.4 LTS

Code:$uname -a
Linux pooja-yoga4 6.5.0-1027-oem #28-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 25 13:32:46 UTC 2024 x86_64 x86_64 x86_64 GNU/LinuxNormally this error happens to show up whenever I try to install something or do some update/Upgrade. A bit of google asked me to upgrade my dist, however did not help, here is the log of 'dist-upgrade' [1]
Here is the content of the log file mentioned in the dist-upgrade command [2].

I would appreciate any suggestions to fix this issue please. Maybe this would also fix my issue with front-camera.

Best Regards,

[1]
----------------------------------------------------------------------

Code:$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libbroxton-ia-pal0 libgcss0 libia-aiq0 libia-aiqb-parser0 libia-bcomp0 libia-cca0 libia-ccat0 libia-cmc-parser0 libia-coordinate0
libia-dvs0 libia-emd-decoder0 libia-exc0 libia-isp-bxt0 libia-lard0 libia-log0 libia-ltm0 libia-mkn0 libia-nvm0
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
python3-update-manager ubuntu-minimal ubuntu-standard update-manager update-manager-core
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 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 intel-ipu6-dkms (0~git202211220708.278b7e3d-0ubuntu0.22.04.1) ...
Removing old ipu6-drivers-0~git202211220708.278b7e3d-0ubuntu0.22.04.1 DKMS files...
Deleting module ipu6-drivers-0~git202211220708.278b7e3d-0ubuntu0.22.04.1 completely from the DKMS tree.
Loading new ipu6-drivers-0~git202211220708.278b7e3d-0ubuntu0.22.04.1 DKMS files...
Building for 6.5.0-1027-oem
Building initial module for 6.5.0-1027-oem
Error! Bad return status for module build on kernel: 6.5.0-1027-oem (x86_64)
Consult /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/make.log for more information.
dpkg: error processing package intel-ipu6-dkms (--configure):
installed intel-ipu6-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
intel-ipu6-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)[2]
----------------------------------------------------------------------
Code:$ emacs -nw /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/make.log
DKMS make.log for ipu6-drivers-0~git202211220708.278b7e3d-0ubuntu0.22.04.1 for kernel 6.5.0-1027-oem (x86_64)
Di 13. Aug 15:40:20 CEST 2024
make -C /lib/modules/6.5.0-1027-oem/build M=/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-1027-oem'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/hm11b1.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/ov01a1s.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/ov01a10.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/ov02c10.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/ov2740.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/hm2170.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/hi556.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-bus.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-dma.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-mmu.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-buttress.o
/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/ov01a1s.c: In function iov01a1s_probei:
/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/i2c/ov01a1s.c:973:13: warning: unused variable ilink_freqi [-Wunused-variable]
973 | s64 link_freq;
| ^~~~~~~~~
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-trace.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-cpd.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/ipu6.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-fw-com.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-bridge.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-csi2.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/ipu6-isys.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/ipu6-isys-phy.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/ipu6-isys-dwc-phy.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.o
/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-csi2.c:477:1: warning: icsi2_try_fmti defined but not used [-Wunused-function]
477 | csi2_try_fmt(struct ipu_isys_video *av,
| ^~~~~~~~~~~~
/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-bridge.c: In function iipu_isys_bridge_unregister_sensorsi:
/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-bridge.c:280:17: error: implicit declaration of function isoftware_node_unregister_nodesi; did you mean isoftware_node_unregisteri? [-Werror=implicit-function-declaration]
280 | software_node_unregister_nodes(sensor->swnodes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| software_node_unregister
/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-bridge.c: In function iipu_isys_bridge_connect_sensori:
/var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-bridge.c:339:23: error: implicit declaration of function isoftware_node_register_nodesi; did you mean isoftware_node_registeri? [-Werror=implicit-function-declaration]
339 | ret = software_node_register_nodes(sensor->swnodes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| software_node_register
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/ipu6-isys-gpc.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-csi2-be-soc.o
CC [M] /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-fw-isys.o
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:251: /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6/../ipu-isys-bridge.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [scripts/Makefile.build:488: /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel/ipu6] Error 2
make[3]: *** [scripts/Makefile.build:488: /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build/drivers/media/pci/intel] Error 2
make[2]: *** [/usr/src/linux-headers-6.5.0-1027-oem/Makefile:2039: /var/lib/dkms/ipu6-drivers/0~git202211220708.278b7e3d-0ubuntu0.22.04.1/build] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-1027-oem'
make: *** [Makefile:37: all] Error 2
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments