[Parrot OS 5.0] - packages issue after upgrade

Hello,

I need help to fix a issue.
I upgrade my Parrot4.7 to the 5.0 (Vmware OS)

lsb_release =>

Distributor ID: Debian
Description: Parrot OS 5.0 (LTS)
Release: 5.0
Codename: bullseye

Linux Parrot47 5.14.0-2parrot1-amd64 #1 SMP Debian 5.14.6-2parrot1 (2021-09-25) x86_64 GNU/Linux

Version :

Linux version 5.14.0-2parrot1-amd64 (team@parrotsec.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.14.6-2parrot1 (2021-09-25)

But now I can continue the upgrade, I got the issue I already seen in the past

I tried =>

apt --fix-broken install
dpkg --configure -a
apt autoremove -y && apt autoclean

And I tried to remove the first incated package manualy => virtualbox-guest-dkms
to re install it from /var/cache/apt/archives/…
but same error when I remove it

Here all the logs

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up virtualbox-guest-dkms (6.1.22-dfsg-2) ...
Removing old virtualbox-guest-6.1.22 DKMS files...

------------------------------
Deleting module version: 6.1.22
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.1.22 DKMS files...
Building for 5.14.0-2parrot1-amd64
Building initial module for 5.14.0-2parrot1-amd64
Error! Bad return status for module build on kernel: 5.14.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.1.22/build/make.log for more information.
dpkg: error processing package virtualbox-guest-dkms (--configure):
 installed virtualbox-guest-dkms package post-installation script subprocess returned error exit status 10
Setting up initramfs-tools (0.140) ...
update-initramfs: deferring update (trigger activated)
Setting up zfs-dkms (2.0.3-9) ...
Removing old zfs-2.0.3 DKMS files...

------------------------------
Deleting module version: 2.0.3
completely from the DKMS tree.
------------------------------
Done.
Loading new zfs-2.0.3 DKMS files...
Building for 5.14.0-2parrot1-amd64
Building initial module for 5.14.0-2parrot1-amd64
configure: error:
        *** None of the expected "capability" interfaces were detected.
        *** This may be because your kernel version is newer than what is
        *** supported, or you are using a patched custom kernel with
        *** incompatible modifications.
        ***
        *** ZFS Version: zfs-2.0.3-9
        *** Compatible Kernels: 3.10 - 5.10

Error! Bad return status for module build on kernel: 5.14.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/zfs/2.0.3/build/make.log for more information.
dpkg: error processing package zfs-dkms (--configure):
 installed zfs-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of zfs-initramfs:
 zfs-initramfs depends on zfs-modules | zfs-dkms; however:
  Package zfs-modules is not installed.
  Package zfs-dkms which provides zfs-modules is not configured yet.
  Package zfs-dkms is not configured yet.

dpkg: error processing package zfs-initramfs (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zfs-zed:
 zfs-zed depends on zfs-modules | zfs-dkms; however:
  Package zfs-modules is not installed.
  Package zfs-dkms which provides zfs-modules is not configured yet.
  Package zfs-dkms is not configured yet.

dpkg: error processing package zfs-zed (--configure):
 dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.14.0-2parrot1-amd64
cat: write error: No space left on device
update-initramfs: failed for /boot/initrd.img-5.14.0-2parrot1-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 virtualbox-guest-dkms
 zfs-dkms
 zfs-initramfs
 zfs-zed
 initramfs-tools
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks for your help :wink:
Darmi

1 Like

Im having almost the same exact issue and verbose on my new installation.

Its a bare metal single boot set up though, so i tried to uninstall and reinstall the problematic virtual box guest dkms package, and both attempts failed. Correct me if I’m wrong, but i shouldn’t need it unless I install virtual box and run VMs from that install of Parrot?

I had failed installations all day from not correctly partitioning and setting up the manual partitioning. I didn’t have the option for guided installation. I’m guessing bc it was a sanitized SSD that was completely blank? There is surprisingly little documentation from Parrot on manual partitioning, however I may have missed it in my initial frustrations :flushed: but I finally got it installed and everything else seems to be working fine.

This is pretty good evidence there is a bug of sorts and not a faulty installation on my end.

Ill come back and edit in my exact details and logs when i get to my computer

Hello thanks for this answer.

I have to check the dependancies from this ‘virtual box guest dkms package’ :confused:

This package is to be installed on a guest Linux os running inside Virtual-Box only.

Operating System: Parrot OS 5.0 (LTS)
Kernel: Linux 5.14.0-2parrot1-amd64
Architecture: x86-64

bare metal install. single boot

Here’s my output from
sudo parrot-upgrade

[sudo] password for tarantino_q: 
Hit:1 https://deb.parrot.sh/parrot rolling InRelease
Hit:2 https://deb.parrot.sh/parrot rolling-security InRelease
Fetched 2,519 B in 1s (2,539 B/s)    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Setting up virtualbox-guest-dkms (6.1.22-dfsg-2) ...
Removing old virtualbox-guest-6.1.22 DKMS files...

------------------------------
Deleting module version: 6.1.22
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.1.22 DKMS files...
Building for 5.14.0-2parrot1-amd64
Building initial module for 5.14.0-2parrot1-amd64
Error! Bad return status for module build on kernel: 5.14.0-2parrot1-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.1.22/build/make.log for more information.
dpkg: error processing package virtualbox-guest-dkms (--configure):
 installed virtualbox-guest-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 virtualbox-guest-dkms
failed to fix interrupted upgrades
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up virtualbox-guest-dkms (6.1.22-dfsg-2) ...
Removing old virtualbox-guest-6.1.22 DKMS files...

------------------------------
Deleting module version: 6.1.22
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.1.22 DKMS files...
Building for 5.14.0-2parrot1-amd64
Building initial module for 5.14.0-2parrot1-amd64
Error! Bad return status for module build on kernel: 5.14.0-2parrot1-amd64 (x86_
64)
Consult /var/lib/dkms/virtualbox-guest/6.1.22/build/make.log for more informatio
n.
dpkg: error processing package virtualbox-guest-dkms (--configure):
 installed virtualbox-guest-dkms package post-installation script subprocess ret
urned error exit status 10
Errors were encountered while processing:
 virtualbox-guest-dkms
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to fix conflicts
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up virtualbox-guest-dkms (6.1.22-dfsg-2) ...
Removing old virtualbox-guest-6.1.22 DKMS files...

------------------------------
Deleting module version: 6.1.22
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.1.22 DKMS files...
Building for 5.14.0-2parrot1-amd64
Building initial module for 5.14.0-2parrot1-amd64
Error! Bad return status for module build on kernel: 5.14.0-2parrot1-amd64 (x86_
64)
Consult /var/lib/dkms/virtualbox-guest/6.1.22/build/make.log for more informatio
n.
dpkg: error processing package virtualbox-guest-dkms (--configure):
 installed virtualbox-guest-dkms package post-installation script subprocess ret
urned error exit status 10
Errors were encountered while processing:
 virtualbox-guest-dkms
Scanning application launchers
Removing duplicate launchers or broken launchers
Launchers are updated
E: Sub-process /usr/bin/dpkg returned an error code (1)

And here is the log it mentions to refer to

DKMS make.log for virtualbox-guest-6.1.22 for kernel 5.14.0-2parrot1-amd64 (x86_64)*
*Tue 12 Oct 2021 05:02:28 PM EDT*
*make: Entering directory '/usr/src/linux-headers-5.14.0-2parrot1-amd64'*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/VBoxGuest-linux.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/VBoxGuest.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/common/string/strformatrt.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/combined-agnostic.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/combined-os-specific.o*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/combined-os-specific.o: warning: objtool: VBoxGuest_RTR0MemKernelCopyFrom()+0x11: redundant CLD*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/combined-os-specific.o: warning: objtool: VBoxGuest_RTR0MemKernelCopyTo()+0x11: redundant CLD*
*  LD [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxguest/vboxguest.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/vfsmod.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/dirops.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/lnkops.o*
*  CC [M]  /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.o*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.c: In function ‘vbsf_iter_lock_pages’:*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.c:2129:15: error: ‘struct iov_iter’ has no member named ‘type’*
* 2129 |     if (!(iter->type & ITER_KVEC)) {*
*      |               ^~*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.c: In function ‘vbsf_iter_max_span_of_pages’:*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.c:2376:37: error: ‘struct iov_iter’ has no member named ‘type’*
* 2376 |     if (iter_is_iovec(iter) || (iter->type & ITER_KVEC)) {*
*      |                                     ^~*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.c:2439:28: error: ‘struct iov_iter’ has no member named ‘type’*
* 2439 |         size_t cSegs = iter->type & ITER_BVEC ? RT_MAX(1, iter->nr_segs) : 1;*
*      |                            ^~*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.c: At top level:*
*/var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.c:3796:23: error: ‘simple_write_end’ undeclared here (not in a function); did you mean ‘simple_write_begin’?*
* 3796 |     .write_end      = simple_write_end,*
*      |                       ^~~~~~~~~~~~~~~~*
*      |                       simple_write_begin*
*make[3]: *** [/usr/src/linux-headers-5.14.0-2parrot1-common/scripts/Makefile.build:276: /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf/regops.o] Error 1*
*make[3]: *** Waiting for unfinished jobs....*
*make[2]: *** [/usr/src/linux-headers-5.14.0-2parrot1-common/scripts/Makefile.build:519: /var/lib/dkms/virtualbox-guest/6.1.22/build/vboxsf] Error 2*
*make[1]: *** [/usr/src/linux-headers-5.14.0-2parrot1-common/Makefile:1882: /var/lib/dkms/virtualbox-guest/6.1.22/build] Error 2*
*make: *** [/usr/src/linux-headers-5.14.0-2parrot1-common/Makefile:232: __sub-make] Error 2*
*make: Leaving directory '/usr/src/linux-headers-5.14.0-2parrot1-amd64'

I wonder why it would install by default, even on a bare metal installation? Is there no way for it to know the difference?

Still begs the question, how to get rid of this broken package and error. It adds an extra 30sec to minute everytime I run an update or upgrade command. Which is several times a day sometimes. It’s getting to be quite the nuisance