Kernel 5.1 module built error

support
parrot
(franta) #1

Briefly describe your issue below:

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

After lates kernel upgrade it fails to build kernel module… So whe I reboot my laptop it doesnt star properly and it shows som TOMYO CLI saiyng ot can’t find a profile. I have to issue command “disable” and system boots up. When I try do go back few kernel versions it does the same thing…

Would you be able to help please?

Do you need more information from me?

What version of Parrot are you running? (include version (e.g. 4.6), edition(e.g. Home//KDE/OVA, etc.), and architecture (currently we only support amd64)

5.1 currently and I was upgrading from 4,19 I think.

Static hostname: parrot
Icon name: computer-laptop
Chassis: laptop
Machine ID: 4e82f36acd164fac8e450806652fa9eb
Boot ID: fc8fa5378e4449ec8a655e995c93e379
Operating System: Parrot GNU/Linux 4.7
Kernel: Linux 5.1.0-parrot1-3t-amd64
Architecture: x86-64

What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)

I did the upgrade on Monday

Configured to multiboot with other systems? (yes / no)

no

If there are any similar issues or solutions, link to them below:

Problem with Nvidia drivers installation - similar but different.

If there are any error messages or relevant logs, post them below:

Error! Bad return status for module build on kernel: 5.1.0-parrot1-3t-amd64 (x86_64)
parrot error -

┌─[tonny@parrot]─[/var/lib/dkms/virtualbox-guest/6.0.8/build]
└──╼ $cat make.log
DKMS make.log for virtualbox-guest-6.0.8 for kernel 5.1.0-parrot1-3t-amd64 (x86_64)
Wed May 29 18:06:31 NZST 2019
make: Entering directory ‘/usr/src/linux-headers-5.1.0-parrot1-3t-amd64’
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBoxGuest-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBoxGuest.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBoxGuestR0LibGenericRequest.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBoxGuestR0LibHGCMInternal.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBoxGuestR0LibInit.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBoxGuestR0LibPhysHeap.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBoxGuestR0LibVMMDev.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/alloc-r0drv.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/initterm-r0drv.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/memobj-r0drv.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/mpnotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/powernotification-r0drv.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/alloc-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/assert-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/initterm-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/memobj-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/memuserkernel-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/mp-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/mpnotification-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/process-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/semevent-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/semeventmulti-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/semfastmutex-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/semmutex-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/spinlock-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/thread-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/thread2-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/time-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/timer-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/linux/RTLogWriteDebugger-r0drv-linux.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/r0drv/generic/semspinmutex-r0drv-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/alloc/alloc.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/err/RTErrConvertFromErrno.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/err/RTErrConvertToErrno.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/err/errinfo.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/log/log.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/log/logellipsis.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/log/logrel.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/log/logrelellipsis.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/log/logcom.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/log/logformat.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/RTAssertMsg1Weak.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/RTAssertMsg2.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/RTAssertMsg2Add.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/RTAssertMsg2AddWeak.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/RTAssertMsg2AddWeakV.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/RTAssertMsg2Weak.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/RTAssertMsg2WeakV.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/assert.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/misc/thread.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrCat.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrCmp.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrCopy.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrCopyEx.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrCopyP.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrICmpAscii.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrNICmpAscii.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrNCmp.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/RTStrNLen.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/stringalloc.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/strformat.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/strformatnum.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/strformatrt.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/strformattype.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/strprintf.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/strtonum.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/string/utf-8.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/table/avlpv.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/time/time.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTAssertShouldPanic-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTLogWriteStdErr-stub-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTLogWriteStdOut-stub-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTMpGetCoreCount-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTSemEventWait-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTSemEventWaitNoResume-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTSemEventMultiWait-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/rtStrFormatKernelAddress-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/errvars-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/generic/mppresent-generic.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBox/log-vbox.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/VBox/logbackdoor.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/common/alloc/heapsimple.o
LD [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxguest/vboxguest.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/vfsmod.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/dirops.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/lnkops.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/regops.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/utils.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/VBoxGuestR0LibGenericRequest.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/VBoxGuestR0LibHGCM.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/VBoxGuestR0LibIdc.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/VBoxGuestR0LibInit.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/VBoxGuestR0LibIdc-unix.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/VBoxGuestR0LibPhysHeap.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/VBoxGuestR0LibSharedFolders.o
LD [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxsf/vboxsf.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/hgsmi_base.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/modesetting.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_drv.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_fb.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_irq.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_main.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_mode.o
CC [M] /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_ttm.o
/var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_ttm.c:31:10: fatal error: ttm/ttm_page_alloc.h: No such file or directory
#include <ttm/ttm_page_alloc.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/linux-headers-5.1.0-parrot1-3t-common/scripts/Makefile.build:281: /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo/vbox_ttm.o] Error 1
make[4]: *** Waiting for unfinished jobs…
make[3]: *** [/usr/src/linux-headers-5.1.0-parrot1-3t-common/scripts/Makefile.build:491: /var/lib/dkms/virtualbox-guest/6.0.8/build/vboxvideo] Error 2
make[2]: *** [/usr/src/linux-headers-5.1.0-parrot1-3t-common/Makefile:1584: module/var/lib/dkms/virtualbox-guest/6.0.8/build] Error 2
make[1]: *** [Makefile:169: sub-make] Error 2
make: *** [Makefile:8: all] Error 2
make: Leaving directory ‘/usr/src/linux-headers-5.1.0-parrot1-3t-amd64’

Dependency issues in Virtualbox
(teddy) #2

You maybe wanna look here:


and try
cd /usr/src/linux-headers-5.1.0-parrot1-3t-common/include
ln -s drm/ttm
for the quick and dirty job.
Of course, a cleaner fix concerning include-calls in the header-files of the virtualbox-guest-dkms-package would be nice.

(dkorzhevin) #3

Hello,

Got same problem today, while upgrading with parrot-upgrade. Seems, this issue was already reported in upstream:

https://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg533986.html

Steps above, sadly doesn’t help (linking)

(dkorzhevin) #4

My output:

    $sudo parrot-upgrade 
[sudo] password for user: 
Ign:1 cdrom://[Debian GNU/Linux 4.6 _Parrot_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190425-13:06] parrot InRelease
Err:2 cdrom://[Debian GNU/Linux 4.6 _Parrot_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190425-13:06] parrot Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Get:3 https://deb.parrotsec.org/parrot parrot InRelease [14.6 kB]
Reading package lists... Done        
E: The repository 'cdrom://[Debian GNU/Linux 4.6 _Parrot_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190425-13:06] parrot Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Release file for https://deb.parrotsec.org/parrot/dists/parrot/InRelease is not valid yet (invalid for another 4h 53min 49s). Updates for this repository will not be applied.
failed to update index lists
Setting up virtualbox-guest-dkms (6.0.8-dfsg-4) ...
Removing old virtualbox-guest-6.0.8 DKMS files...

-------- Uninstall Beginning --------
Module:  virtualbox-guest
Version: 6.0.8
Kernel:  4.19.0-parrot4-28t-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxguest.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-parrot4-28t-amd64/updates/
rmdir: failed to remove 'updates': Directory not empty
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /lib/modules/4.19.0-parrot4-28t-amd64/updates/

vboxsf.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-parrot4-28t-amd64/updates/
rmdir: failed to remove 'updates': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxvideo.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-parrot4-28t-amd64/updates/
rmdir: failed to remove 'updates': Directory not empty
 - Original module
   - Archived original module found in the DKMS tree
   - Moving it to: /lib/modules/4.19.0-parrot4-28t-amd64/updates/
depmod....

Removing original_module from DKMS tree for kernel 4.19.0-parrot4-28t-amd64 (x86_64)

DKMS: uninstall completed.

------------------------------
Deleting module version: 6.0.8
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.0.8 DKMS files...
Building for 5.1.0-parrot1-3t-amd64
Building initial module for 5.1.0-parrot1-3t-amd64
Error! Bad return status for module build on kernel: 5.1.0-parrot1-3t-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.0.8/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 nvidia-legacy-390xx-kernel-dkms (390.116-1) ...
Removing old nvidia-legacy-390xx-390.116 DKMS files...

-------- Uninstall Beginning --------
Module:  nvidia-legacy-390xx
Version: 390.116
Kernel:  4.19.0-parrot4-28t-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-legacy-390xx.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-parrot4-28t-amd64/updates/dkms/
rmdir: failed to remove 'updates/dkms': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-legacy-390xx-modeset.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-parrot4-28t-amd64/updates/dkms/
rmdir: failed to remove 'updates/dkms': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-legacy-390xx-drm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-parrot4-28t-amd64/updates/dkms/
rmdir: failed to remove 'updates/dkms': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-legacy-390xx-uvm.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.19.0-parrot4-28t-amd64/updates/dkms/
rmdir: failed to remove 'updates/dkms': Directory not empty
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 390.116
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-legacy-390xx-390.116 DKMS files...
Building for 5.1.0-parrot1-3t-amd64
Building initial module for 5.1.0-parrot1-3t-amd64
Error! Bad return status for module build on kernel: 5.1.0-parrot1-3t-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-legacy-390xx/390.116/build/make.log for more information.
dpkg: error processing package nvidia-legacy-390xx-kernel-dkms (--configure):
 installed nvidia-legacy-390xx-kernel-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 virtualbox-guest-dkms
 nvidia-legacy-390xx-kernel-dkms
failed to fix interrupted upgrades
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cython3 libaccinj64-9.2 libcublas9.2 libcudart9.2 libcufft9.2 libcufftw9.2 libcurand9.2 libcusolver9.2 libcusparse9.2 libdrm-dev libegl-mesa0:i386 libegl1:i386 libgbm1:i386
  libgl1-mesa-dev libgles1 libgles1:i386 libgles2:i386 libglvnd-core-dev libglvnd-dev libnppc9.2 libnppial9.2 libnppicc9.2 libnppicom9.2 libnppidei9.2 libnppif9.2 libnppig9.2 libnppim9.2
  libnppist9.2 libnppisu9.2 libnppitc9.2 libnpps9.2 libnvblas9.2 libnvgraph9.2 libnvidia-cbl libnvidia-cfg1 libnvidia-compiler libnvidia-eglcore libnvidia-eglcore:i386
  libnvidia-fatbinaryloader libnvidia-fatbinaryloader:i386 libnvidia-glcore libnvidia-glcore:i386 libnvidia-glvkspirv libnvidia-glvkspirv:i386 libnvidia-legacy-390xx-cfg1 libnvidia-ml1
  libnvidia-ptxjitcompiler1 libnvidia-ptxjitcompiler1:i386 libnvidia-rtcore libnvrtc9.2 libnvtoolsext1 libnvvm3 libopengl0 libopengl0:i386 libthrust-dev libvdpau-dev
  libwayland-client0:i386 libwayland-server0:i386 libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev
  libxcb-sync-dev libxcb-xfixes0:i386 libxcb-xfixes0-dev libxdamage-dev libxext-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev nvidia-cuda-doc nvidia-cuda-gdb
  nvidia-driver-bin nvidia-egl-common nvidia-opencl-common nvidia-opencl-dev nvidia-openjdk-8-jre nvidia-persistenced nvidia-settings nvidia-smi ocl-icd-opencl-dev opencl-c-headers
  python3-iso8601 x11proto-damage-dev x11proto-fixes-dev x11proto-xext-dev x11proto-xf86vidmode-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up virtualbox-guest-dkms (6.0.8-dfsg-4) ...
Removing old virtualbox-guest-6.0.8 DKMS files...

------------------------------
Deleting module version: 6.0.8
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.0.8 DKMS files...
Building for 5.1.0-parrot1-3t-amd64
Building initial module for 5.1.0-parrot1-3t-amd64
Error! Bad return status for module build on kernel: 5.1.0-parrot1-3t-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.0.8/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 nvidia-legacy-390xx-kernel-dkms (390.116-1) ...
Removing old nvidia-legacy-390xx-390.116 DKMS files...

------------------------------
Deleting module version: 390.116
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-legacy-390xx-390.116 DKMS files...
Building for 5.1.0-parrot1-3t-amd64
Building initial module for 5.1.0-parrot1-3t-amd64
Error! Bad return status for module build on kernel: 5.1.0-parrot1-3t-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-legacy-390xx/390.116/build/make.log for more information.
dpkg: error processing package nvidia-legacy-390xx-kernel-dkms (--configure):
 installed nvidia-legacy-390xx-kernel-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 virtualbox-guest-dkms
 nvidia-legacy-390xx-kernel-dkms
Configuring sandbox profiles....
Sandbox profiles updated!
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to fix conflicts
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cython3 libaccinj64-9.2 libcublas9.2 libcudart9.2 libcufft9.2 libcufftw9.2 libcurand9.2 libcusolver9.2 libcusparse9.2 libdrm-dev libegl-mesa0:i386 libegl1:i386 libgbm1:i386
  libgl1-mesa-dev libgles1 libgles1:i386 libgles2:i386 libglvnd-core-dev libglvnd-dev libnppc9.2 libnppial9.2 libnppicc9.2 libnppicom9.2 libnppidei9.2 libnppif9.2 libnppig9.2 libnppim9.2
  libnppist9.2 libnppisu9.2 libnppitc9.2 libnpps9.2 libnvblas9.2 libnvgraph9.2 libnvidia-cbl libnvidia-cfg1 libnvidia-compiler libnvidia-eglcore libnvidia-eglcore:i386
  libnvidia-fatbinaryloader libnvidia-fatbinaryloader:i386 libnvidia-glcore libnvidia-glcore:i386 libnvidia-glvkspirv libnvidia-glvkspirv:i386 libnvidia-legacy-390xx-cfg1 libnvidia-ml1
  libnvidia-ptxjitcompiler1 libnvidia-ptxjitcompiler1:i386 libnvidia-rtcore libnvrtc9.2 libnvtoolsext1 libnvvm3 libopengl0 libopengl0:i386 libthrust-dev libvdpau-dev
  libwayland-client0:i386 libwayland-server0:i386 libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev
  libxcb-sync-dev libxcb-xfixes0:i386 libxcb-xfixes0-dev libxdamage-dev libxext-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev mesa-common-dev nvidia-cuda-doc nvidia-cuda-gdb
  nvidia-driver-bin nvidia-egl-common nvidia-opencl-common nvidia-opencl-dev nvidia-openjdk-8-jre nvidia-persistenced nvidia-settings nvidia-smi ocl-icd-opencl-dev opencl-c-headers
  python3-iso8601 x11proto-damage-dev x11proto-fixes-dev x11proto-xext-dev x11proto-xf86vidmode-dev
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  libnvidia-eglcore libnvidia-eglcore:i386 libnvidia-fatbinaryloader libnvidia-fatbinaryloader:i386 libnvidia-glcore libnvidia-glcore:i386 libnvidia-glvkspirv libnvidia-glvkspirv:i386
  libnvidia-ptxjitcompiler1 libnvidia-ptxjitcompiler1:i386
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up virtualbox-guest-dkms (6.0.8-dfsg-4) ...
Removing old virtualbox-guest-6.0.8 DKMS files...

------------------------------
Deleting module version: 6.0.8
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-guest-6.0.8 DKMS files...
Building for 5.1.0-parrot1-3t-amd64
Building initial module for 5.1.0-parrot1-3t-amd64
Error! Bad return status for module build on kernel: 5.1.0-parrot1-3t-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/6.0.8/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 nvidia-legacy-390xx-kernel-dkms (390.116-1) ...
Removing old nvidia-legacy-390xx-390.116 DKMS files...

------------------------------
Deleting module version: 390.116
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-legacy-390xx-390.116 DKMS files...
Building for 5.1.0-parrot1-3t-amd64
Building initial module for 5.1.0-parrot1-3t-amd64
Error! Bad return status for module build on kernel: 5.1.0-parrot1-3t-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-legacy-390xx/390.116/build/make.log for more information.
dpkg: error processing package nvidia-legacy-390xx-kernel-dkms (--configure):
 installed nvidia-legacy-390xx-kernel-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 virtualbox-guest-dkms
 nvidia-legacy-390xx-kernel-dkms
Configuring sandbox profiles....
Sandbox profiles updated!
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
(teddy) #5

EDIT: I stand corrected, both packages fail.

Also another dkms module and thus another package fails and might need to adapt most possibly its includes to the new kernel headers.

Check the mentioned logfile

/var/lib/dkms/nvidia-legacy-390xx/390.116/build/make.log

to find (and provide) the related error message.

This might help to fix the issues the error is based on.