unable to upgrade

– Please Write here your help request –

how can solve this issue

  • ParrotOS iso in use:

5.3 Electro Ara

  • Application used for flashing the iso:

USB - Rufas

  • Logs/Terminal output (use pastebin or similar services):

┌─[ai@parrot]─[~]

└──╼ $sudo apt upgrade

APT on Parrot behaves differently than Debian.

apt upgrade is equivalent to apt full-upgrade in Debian,

and performs a complete system update.

Use apt safe-upgrade to perform a partial upgrade.

Reading package lists… Done

Building dependency tree… Done

Reading state information… Done

Calculating upgrade… Done

The following packages have been kept back:

gsad gvm gvmd powershell-empire

0 upgraded, 0 newly installed, 0 to remove and 4 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] y

Setting up linux-headers-6.5.0-3parrot1-amd64 (6.5.3-3parrot1) …

/etc/kernel/header_postinst.d/dkms:

dkms: running auto installation service for kernel 6.5.0-3parrot1-amd64.

Sign command: /lib/modules/6.5.0-3parrot1-amd64/build/scripts/sign-file

Signing key: /var/lib/dkms/mok.key

Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:

Cleaning build area…

‘make’ -j4 KVER=6.5.0-3parrot1-amd64 KSRC=/lib/modules/6.5.0-3parrot1-amd64/build…

…(bad exit status: 2)

Error! Bad return status for module build on kernel: 6.5.0-3parrot1-amd64 (x86_64)

Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20230101.f8ead57/build/make.log for more information.

Error! One or more modules failed to install during autoinstall.

Refer to previous errors for more information.

dkms: autoinstall for kernel: 6.5.0-3parrot1-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.5.0-3parrot1-amd64.postinst line 11.

dpkg: error processing package linux-headers-6.5.0-3parrot1-amd64 (–configure):

installed linux-headers-6.5.0-3parrot1-amd64 package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of linux-headers-amd64:

linux-headers-amd64 depends on linux-headers-6.5.0-3parrot1-amd64 (= 6.5.3-3parrot1); however:

Package linux-headers-6.5.0-3parrot1-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (–configure):

dependency problems - leaving unconfigured

Setting up linux-image-6.5.0-3parrot1-amd64 (6.5.3-3parrot1) …

/etc/kernel/postinst.d/dkms:

dkms: running auto installation service for kernel 6.5.0-3parrot1-amd64.

Sign command: /lib/modules/6.5.0-3parrot1-amd64/build/scripts/sign-file

Signing key: /var/lib/dkms/mok.key

Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:

Cleaning build area…

‘make’ -j4 KVER=6.5.0-3parrot1-amd64 KSRC=/lib/modules/6.5.0-3parrot1-amd64/build…(bad exit status: 2)

Error! Bad return status for module build on kernel: 6.5.0-3parrot1-amd64 (x86_64)

Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20230101.f8ead57/build/make.log for more information.

Error! One or more modules failed to install during autoinstall.

Refer to previous errors for more information.

dkms: autoinstall for kernel: 6.5.0-3parrot1-amd64 failed!

run-parts: /etc/kernel/postinst.d/dkms exited with return code 11

dpkg: error processing package linux-image-6.5.0-3parrot1-amd64 (–configure):

installed linux-image-6.5.0-3parrot1-amd64 package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of linux-image-amd64:

linux-image-amd64 depends on linux-image-6.5.0-3parrot1-amd64 (= 6.5.3-3parrot1); however:

Package linux-image-6.5.0-3parrot1-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (–configure):

dependency problems - leaving unconfigured

Errors were encountered while processing:

linux-headers-6.5.0-3parrot1-amd64

linux-headers-amd64

linux-image-6.5.0-3parrot1-amd64

linux-image-amd64

Scanning application launchers

Removing duplicate launchers or broken launchers

Launchers are updated

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

Reading package lists… Done

Building dependency tree… Done

Reading state information… Done

Calculating upgrade… Done

The following packages have been kept back:

gsad gvm gvmd powershell-empire

0 upgraded, 0 newly installed, 0 to remove and 4 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] y

Setting up linux-headers-6.5.0-3parrot1-amd64 (6.5.3-3parrot1) …

/etc/kernel/header_postinst.d/dkms:

dkms: running auto installation service for kernel 6.5.0-3parrot1-amd64.

Sign command: /lib/modules/6.5.0-3parrot1-amd64/build/scripts/sign-file

Signing key: /var/lib/dkms/mok.key

Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:

Cleaning build area…

‘make’ -j4 KVER=6.5.0-3parrot1-amd64 KSRC=/lib/modules/6.5.0-3parrot1-amd64/build…(bad exit status: 2)

Error! Bad return status for module build on kernel: 6.5.0-3parrot1-amd64 (x86_64)

Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20230101.f8ead57/build/make.log for more information.

Error! One or more modules failed to install during autoinstall.

Refer to previous errors for more information.

dkms: autoinstall for kernel: 6.5.0-3parrot1-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.5.0-3parrot1-amd64.postinst line 11.

dpkg: error processing package linux-headers-6.5.0-3parrot1-amd64 (–configure):

installed linux-headers-6.5.0-3parrot1-amd64 package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of linux-headers-amd64:

linux-headers-amd64 depends on linux-headers-6.5.0-3parrot1-amd64 (= 6.5.3-3parrot1); however:

Package linux-headers-6.5.0-3parrot1-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (–configure):

dependency problems - leaving unconfigured

Setting up linux-image-6.5.0-3parrot1-amd64 (6.5.3-3parrot1) …

/etc/kernel/postinst.d/dkms:

dkms: running auto installation service for kernel 6.5.0-3parrot1-amd64.

Sign command: /lib/modules/6.5.0-3parrot1-amd64/build/scripts/sign-file

Signing key: /var/lib/dkms/mok.key

Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:

Cleaning build area…

‘make’ -j4 KVER=6.5.0-3parrot1-amd64 KSRC=/lib/modules/6.5.0-3parrot1-amd64/build…(bad exit status: 2)

Error! Bad return status for module build on kernel: 6.5.0-3parrot1-amd64 (x86_64)

Consult /var/lib/dkms/realtek-rtl8188eus/5.3.9~git20230101.f8ead57/build/make.log for more information.

Error! One or more modules failed to install during autoinstall.

Refer to previous errors for more information.

dkms: autoinstall for kernel: 6.5.0-3parrot1-amd64 failed!

run-parts: /etc/kernel/postinst.d/dkms exited with return code 11

dpkg: error processing package linux-image-6.5.0-3parrot1-amd64 (–configure):

installed linux-image-6.5.0-3parrot1-amd64 package post-installation script subprocess returned error exit status 1

dpkg: dependency problems prevent configuration of linux-image-amd64:

linux-image-amd64 depends on linux-image-6.5.0-3parrot1-amd64 (= 6.5.3-3parrot1); however:

Package linux-image-6.5.0-3parrot1-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (–configure):

dependency problems - leaving unconfigured

Errors were encountered while processing:

linux-headers-6.5.0-3parrot1-amd64

linux-headers-amd64

linux-image-6.5.0-3parrot1-amd64

linux-image-amd64

Scanning application launchers

Removing duplicate launchers or broken launchers

Launchers are updated

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

┌─[✗]─[ai@parrot]─[~]

└──╼ $

  • Screenshots:

Hi @Faizyab_Khan

You are experiencing a known issue when Parrot 5.x gets updated to Parrot 6.0. You will need to remove realtek-rtl8188eus-dkms for Kernel 6.5 to build correctly.

sudo apt remove realtek-rtl8188eus-dkms
sudo parrot-upgrade
2 Likes

thanks, it worked @Masmer

Thanks, that work when upgrade to 6.0 from 5.2. same error above apprars and remove realtek solve the problem for me.

Thanks again @Masmer

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.