[SOLVED] linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Mia
Posts: 9
Joined: Tue Feb 20, 2018 8:22 am

[SOLVED] linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#1 Post by Mia »

Doing the usual MX23 update/upgrade on a live usb stick with root persistence:

sudo apt update && sudo apt upgrade

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

Not sure what to do. The full process below:

sudo apt 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:
linux-headers-6.1.0-11-amd64 linux-headers-6.1.0-11-common
linux-image-6.1.0-11-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-image-6.1.0-12-amd64 (6.1.52-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-12-amd64.
/usr/sbin/dkms.mx autoinstall --kernelver 6.1.0-12-amd64
Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git2
0230504/source/dkms.conf)
Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git2
0230504/source/dkms.conf)
Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git2
0230504/source/dkms.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
./dkms-make.sh................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-12-amd64 (x
86_64)
Consult /var/lib/dkms/8812au/5.13.6/build/make.log for more informatio
n.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-12-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.1.0-12-amd64 (--configure
):
installed linux-image-6.1.0-12-amd64 package post-installation script
subprocess returned error exit status 1
Setting up linux-headers-6.1.0-12-amd64 (6.1.52-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-12-amd64.
/usr/sbin/dkms.mx autoinstall --kernelver 6.1.0-12-amd64
Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git2
0230504/source/dkms.conf)
Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git2
0230504/source/dkms.conf)
Deprecated feature: MODULES_CONF (/var/lib/dkms/rtl8821ce/5.5.2.1+git2
0230504/source/dkms.conf)
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
./dkms-make.sh................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-12-amd64 (x
86_64)
Consult /var/lib/dkms/8812au/5.13.6/build/make.log for more informatio
n.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-12-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code
11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/
linux-headers-6.1.0-12-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-12-amd64 (--configu
re):
installed linux-headers-6.1.0-12-amd64 package post-installation scri
pt subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64
:
linux-headers-amd64 depends on linux-headers-6.1.0-12-amd64 (= 6.1.52
-1); however:
Package linux-headers-6.1.0-12-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.1.0-12-amd64 (= 6.1.52-1);
however:
Package linux-image-6.1.0-12-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.1.0-12-amd64
linux-headers-6.1.0-12-amd64
linux-headers-amd64
linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
demo@mx1:~
Last edited by Mia on Sat Sep 09, 2023 10:03 pm, edited 1 time in total.

User avatar
dolphin_oracle
Developer
Posts: 22125
Joined: Sun Dec 16, 2007 12:17 pm

Re: linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#2 Post by dolphin_oracle »

ok, the rtl8812au-dkms package is apparently not building on the 6.1.0-12 kernel. short term answer is to remove the rtl8812au-dkms package. during removal, the kernel update should complete.

if you need the rtl8812au driver, then temporarily enable the ahs repo (use mx-repo-manager, or uncomment the line in /etc/apt/sources.list.d/mx.list) , update sources (sudo apt update) and only install the rtl8812au-dkms package (sudo apt install rtl8812au-dkms). the kernel update should also finish as the driver is installed. then disable the ahs repo again.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Mia
Posts: 9
Joined: Tue Feb 20, 2018 8:22 am

Re: [SOLVED] linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#3 Post by Mia »

Dolphin-Oracle solution worked. Everything good.

User avatar
operadude
Posts: 877
Joined: Tue Nov 05, 2019 12:08 am

Re: linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#4 Post by operadude »

dolphin_oracle wrote: Sat Sep 09, 2023 9:07 pm ok, the rtl8812au-dkms package is apparently not building on the 6.1.0-12 kernel. short term answer is to remove the rtl8812au-dkms package. during removal, the kernel update should complete.

if you need the rtl8812au driver, then temporarily enable the ahs repo (use mx-repo-manager, or uncomment the line in /etc/apt/sources.list.d/mx.list) , update sources (sudo apt update) and only install the rtl8812au-dkms package (sudo apt install rtl8812au-dkms). the kernel update should also finish as the driver is installed. then disable the ahs repo again.
@dolphin_oracle :wavehello:

I got the same error message this morning, and am interested if it is necessary to remove the rtl8812au driver, and if so, how do I do that?

First, my QSI:

Code: Select all

System:
  Kernel: 6.1.0-11-amd64 [6.1.38-4] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-11-amd64 root=UUID=<filter> ro quiet splash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel, plank wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23_x64 Libretto July 31  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Desktop System: Gigabyte product: H270-HD3 v: N/A serial: <superuser required>
  Mobo: Gigabyte model: H270-HD3-CF v: x.x serial: <superuser required> UEFI: American Megatrends
    v: F5 date: 04/24/2017
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse PID:0080 serial: N/A
    charge: 5% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: Intel Core i3-7100 bits: 64 type: MT MCP arch: Kaby Lake gen: core 7 level: v3
    note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158) stepping: 9
    microcode: 0x42
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 800 min/max: 800/3900 scaling: driver: intel_pstate governor: powersave
    cores: 1: 800 2: 800 3: 800 4: 800 bogomips: 31199
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Vulnerable: No microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT
    vulnerable
  Type: retbleed status: Vulnerable
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Oland PRO [Radeon R7 240/340 / Radeon 520] vendor: Micro-Star MSI driver: radeon
    v: kernel alternate: amdgpu arch: GCN-1 code: Southern Islands process: TSMC 28nm built: 2011-20
    pcie: gen: 3 speed: 8 GT/s lanes: 8 ports: active: HDMI-A-1 empty: DVI-D-1,VGA-1
    bus-ID: 01:00.0 chip-ID: 1002:6613 class-ID: 0300 temp: 40.0 C
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X: loaded: radeon
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22") s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-0 model: Samsung built: 2007 res: 1920x1080 hz: 60 dpi: 305
    gamma: 1.2 size: 160x90mm (6.3x3.54") diag: 184mm (7.2") ratio: 16:9 modes: max: 1920x1080
    min: 640x480
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: OLAND ( LLVM 15.0.6 DRM 2.50 6.1.0-11-amd64)
    direct-render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:a2f0 class-ID: 0403
  Device-2: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series]
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 1002:aab0 class-ID: 0403
  API: ALSA v: k6.1.0-11-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 7.72 TiB used: 5.13 TiB (66.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 250GB size: 232.89 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 1B2QEXE7 temp: 31.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 model: SATA SSD size: 111.79 GiB block-size: physical: 512 B
    logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 61.3 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Kingston model: SA400S37120G size: 111.79 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 61K1 scheme: MBR
  ID-4: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST3000DM001-1ER166 size: 2.73 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: CC25 scheme: GPT
  ID-5: /dev/sdd maj-min: 8:48 vendor: Toshiba model: DT01ACA050 size: 465.76 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: A750
    scheme: GPT
  ID-6: /dev/sde maj-min: 8:64 vendor: Western Digital model: WD5000AADS-00S9B0 size: 465.76 GiB
    block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: 0A01
    scheme: GPT
  ID-7: /dev/sdf maj-min: 8:80 type: USB vendor: Seagate model: Expansion Desk size: 3.64 TiB
    block-size: physical: 4096 B logical: 4096 B type: N/A serial: <filter> rev: 0739 scheme: MBR
Partition:
  ID-1: / raw-size: 30 GiB size: 29.36 GiB (97.87%) used: 9.43 GiB (32.1%) fs: ext4
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 1.6 MiB (0.7%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 20 GiB size: 19.52 GiB (97.59%) used: 6.97 GiB (35.7%) fs: ext4
    dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 45.0 C mobo: N/A gpu: radeon temp: 40.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2329 libs: 1218 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://ftp.linux.org.tr/mx/repo/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https://repo.skype.com/deb stable main
Info:
  Processes: 264 Uptime: 38m wakeups: 4 Memory: 31.3 GiB used: 2.4 GiB (7.7%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12 Client: shell wrapper
  v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Also, here's the output of my attempt at determining if I have that driver installed:

Code: Select all

opera-dude@GA-H270-HD3:~
$ apt show rtl8812au-dkms
Package: rtl8812au-dkms
Version: 5.13.6+git20230615-1~mx23
Priority: optional
Section: misc
Source: rtl8812au
Maintainer: Timothy E. Harris <maintainer@mxrepo.com>
Installed-Size: 15.5 MB
Depends: dkms
Homepage: https://github.com/morrownr/8812au-20210629
Download-Size: 1,866 kB
APT-Manual-Installed: yes
APT-Sources: http://ftp.linux.org.tr/mx/repo/mx/repo bookworm/main amd64 Packages
Description: rtl8812au driver in DKMS format.
 The rtl8812au driver provides the driver for Realtek 802.11ac (rtl8812au).
 This package contains the DKMS files to build and install rtl8812au.

opera-dude@GA-H270-HD3:~
$ 
And, here's the output of that error message:

Code: Select all

Apt Do Install

['Traceback (most recent call last):\n', '  File "/usr/lib/python3/dist-packages/nala/dpkg.py", line 465, in run_install\n    os._exit(apt.do_install(self.write_stream.fileno()))  # type: ignore[attr-defined]\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', 'apt_pkg.Error: E:Sub-process /usr/bin/dpkg returned an error code (1)\n']
Interestingly, even though I got the exit status 1 (error), my MX-Updater Icon is NOT green, and "says" that there are no updates available. So, it looks like I did get the new image.

So, should I just let things be, and NOT remove the rtl8812au driver?

Lastly, if I should remove it, what is the command to do that?

Interested in your thoughts :exclamation:

User avatar
MikeR
Posts: 199
Joined: Sun Jun 25, 2023 6:42 am

Re: [SOLVED] linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#5 Post by MikeR »

See if you can find which drivers are active
On my system the results are:
$ sudo inxi -i
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: eth0 state: up speed: 100 Mbps duplex: full mac: 84:a9:3e:18:da:a6
IP v4: 192.168.1.20/24 type: noprefixroute scope: global
Device-2: Realtek RTL8192CU 802.11n WLAN Adapter type: USB
driver: rtl8192cu
IF: wlan0 state: up mac: 00:e0:4c:81:ac:5e
IP v4: 192.168.1.102/24 type: dynamic noprefixroute scope: global
IP v6: fe80::d432:c595:d671:ae1e/64 type: noprefixroute scope:
(With a USB WiFi adapter plugged in, rtl8812 does not appear)

Removed rtl8812 using synaptic --> search rtl8812 --> remove completely
Rebooted -- all seems OK
Old RSTS hack
Registered Linux user #542196

User avatar
operadude
Posts: 877
Joined: Tue Nov 05, 2019 12:08 am

Re: [SOLVED] linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#6 Post by operadude »

@dolphin_oracle :

I see this:

https://forum.mxlinux.org/viewtopic.ph ... 6#p743966

Will wait for the update.

Thanks to you and all the devs for the hard work :number1:

User avatar
dolphin_oracle
Developer
Posts: 22125
Joined: Sun Dec 16, 2007 12:17 pm

Re: [SOLVED] linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#7 Post by dolphin_oracle »

main mx repos are now up to date, so checking for updates again should do the trick.

mirrors will catch up over time.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.



User avatar
Eadwine Rose
Administrator
Posts: 14489
Joined: Wed Jul 12, 2006 2:10 am

Re: [SOLVED] linux-image-6.1.0-12-amd64 - Sub-process /usr/bin/dpkg returned an error code (1)

#10 Post by Eadwine Rose »

The kernel did update for me, with the message of that thing being deprecated.. IIRC.

*scratches head* I guess something will kick loose lol
MX-23.6_x64 July 31 2023 * 6.1.0-35amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Post Reply

Return to “MX Help”