sudo apt-get updateコマンド中にVirtual Boxエラーを停止する方法は?

sudo apt-get updateコマンド中にVirtual Boxエラーを停止する方法は?

私はKali 2023.4を使用しており、VirtualBoxがインストールされています。私が何か間違っているのか、何をしているのかわかりませんが、コマンドを実行するたびに他のsudo apt-get updateアップデートで次の応答を受け取ります。コマンドを実行するたびに試みることを停止したいと思います。すべての仮想ボックスパッケージをapt-mark holdコマンドに追加しようとしましたが、それでも機能します。

どんな助けでも大変感謝します。ありがとうございます。

Get:1 https://download.virtualbox.org/virtualbox/debian bullseye InRelease [7735 B]
Err:1 https://download.virtualbox.org/virtualbox/debian bullseye InRelease      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A2F683C52980AECF
Hit:2 http://mirrors.ocf.berkeley.edu/kali kali-rolling InRelease      
Hit:3 https://repo.protonvpn.com/debian stable InRelease
Reading package lists... Done
W: GPG error: https://download.virtualbox.org/virtualbox/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A2F683C52980AECF
E: The repository 'https://download.virtualbox.org/virtualbox/debian bullseye InRelease' is not signed.
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.

ベストアンサー1

このエラーを解決するには、download.virtualbox.orgを参照しているエントリと/etc/apt/sources.listファイルを削除する必要があります/etc/apt/sources.list.d

VirtualBox をインストールするためにサードパーティのリポジトリをインストールする必要はありません。カリで利用可能:

sudo apt install virtualbox

おすすめ記事