
발생한 문제를 해결하기 위해 커널 5.11.0-051100rc2-generic으로 업그레이드한 이후로 apt 명령이나 ubuntu 소프트웨어 앱을 사용하려고 할 때마다 오류가 발생합니다. Ubuntu 소프트웨어에서는 "패키지 설치 중 오류 발생: 설치된 virtualbox-dkms 패키지 설치 후 스크립트 하위 프로세스에서 오류 종료 상태 10을 반환했습니다"처럼 보입니다. 프로그램을 설치하기 위해 apt를 사용할 때마다 오류가 반환되고 제대로 작동하지 않는 경우가 많았습니다. 오류를 수정하기 위해 virtualbox를 제거하려고 시도했지만 방금 오류가 발생했습니다.
$ sudo apt-get remove --purge virtualbox
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfprint-2-tod1 libgsoap-2.8.91 libllvm10 liblzf1
libnvidia-common-450-server libvncserver1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
virtualbox*
0 upgraded, 0 newly installed, 1 to remove and 24 not upgraded.
1 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 virtualbox-dkms (6.1.16-dfsg-6~ubuntu1.20.04.1) ...
Removing old virtualbox-6.1.16 DKMS files...
------------------------------
Deleting module version: 6.1.16
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-6.1.16 DKMS files...
Building for 5.11.0-051100rc2-generic
Building initial module for 5.11.0-051100rc2-generic
ERROR (dkms apport): kernel package linux-headers-5.11.0-051100rc2-generic is not supported
Error! Bad return status for module build on kernel: 5.11.0-051100rc2-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.16/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
그리고 apt를 사용하려고 하면 여전히 해당 오류가 발생합니다. 그때 내가 그랬어
$dkms status
virtualbox, 6.1.16: added
$sudo dkms remove virtualbox/6.1.16 --all
------------------------------
Deleting module version: 6.1.16
completely from the DKMS tree.
------------------------------
Done.
하지만 난 아직도
Errors were encountered while processing:
virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
적절한 사용을 시도하면. 가능하다면 VM을 삭제하지 않고 이 문제를 해결하고 싶습니다. 어떤 도움이라도 대단히 감사하겠습니다! 감사해요.