Virtualbox-dkms は apt または ubuntu ソフトウェアを使用しようとするたびにエラーを出します

Virtualbox-dkms は apt または ubuntu ソフトウェアを使用しようとするたびにエラーを出します

問題を解決するためにカーネル 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)

apt を使用しようとしています。可能であれば、VM を削除せずにこれを修正したいと思います。ご協力いただければ幸いです。ありがとうございます。

関連情報