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

NobinPegasus

Member
Joined
Feb 4, 2022
Messages
50
Reaction score
0
Credits
447
After typing the following command:
sudo apt install mainline -y

I'm getting the following error:

Code:
After this operation, 0 B of additional disk space will be used.
Setting up rtl8822ce-dkms (5.7.3~jammy5) ...
Removing old rtl8822ce-5.7.3~ppa DKMS files...
Deleting module rtl8822ce-5.7.3~ppa completely from the DKMS tree.
Loading new rtl8822ce-5.7.3~ppa DKMS files...
Building for 5.19.0-38-generic
Building initial module for 5.19.0-38-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rtl8822ce-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.19.0-38-generic (x86_64)
Consult /var/lib/dkms/rtl8822ce/5.7.3~ppa/build/make.log for more information.
dpkg: error processing package rtl8822ce-dkms (--configure):
 installed rtl8822ce-dkms package post-installation script subprocess returned error exit status 10
Setting up rtl88x2ce-dkms (35403) ...
Removing old rtl88x2ce-35403 DKMS files...
Deleting module rtl88x2ce-35403 completely from the DKMS tree.
Loading new rtl88x2ce-35403 DKMS files...
Building for 5.19.0-38-generic
Building for architecture x86_64
Building initial module for 5.19.0-38-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rtl88x2ce-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.19.0-38-generic (x86_64)
Consult /var/lib/dkms/rtl88x2ce/35403/build/make.log for more information.
dpkg: error processing package rtl88x2ce-dkms (--configure):
 installed rtl88x2ce-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 rtl8822ce-dkms
 rtl88x2ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
How can I fix this?
 


Perhaps follow the advice in the first instance from the messages:
Consult /var/lib/dkms/rtl8822ce/5.7.3~ppa/build/make.log for more information
...
Consult /var/lib/dkms/rtl88x2ce/35403/build/make.log for more information
See if there is anything useful in those logs.

The wifi driver is not able to be compiled for some reason. This can occur if the kernel is updated but the driver itself hasn't been updated to work with that new kernel. Do the logs throw any light on that?

Edit: I just saw the other thread where the networking is a problem: https://www.linux.org/threads/i-acc...buntu-22-04-for-rtw_8822ce.44584/#post-188800. I guess that issue has to be resolved before this one, and if that one is resolved, this one may follow automatically.
 
Last edited:

Members online


Latest posts

Top