{"id":19959,"date":"2023-07-31T11:26:49","date_gmt":"2023-07-31T11:26:49","guid":{"rendered":"https:\/\/linuxways.net\/?p=19959"},"modified":"2024-02-14T05:11:17","modified_gmt":"2024-02-14T05:11:17","slug":"how-to-install-virtualbox-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-virtualbox-on-debian-12\/","title":{"rendered":"How to Install Virtualbox On Debian 12"},"content":{"rendered":"<p><strong>VirtualBox <\/strong>is a powerful cross-platform tool that enables users to use and manage more than one operating system on their PCs concurrently. It has a user-friendly interface where users can create, manage, and run various OS i.e. Linux, Windows, or macOS, in a virtual environment without affecting the primary operating system.<\/p>\n<p>While working on the Debian 12 system, if you want to experience and run different operating systems, you should install <strong>VirtualBox<\/strong> on your system. It will provide an isolated virtual environment to simultaneously run and use multiple operating systems.<\/p>\n<p>This guide will illustrate the possible approaches for <strong>VirtualBox <\/strong>installation on Debian 12.<\/p>\n<p><strong>Quick Outline<\/strong><\/p>\n<ul>\n<li><a href=\"#post-19959-_x2spzolkp60u\"><strong>How to Install VirtualBox on Debian 12?<\/strong><\/a><\/li>\n<li><a href=\"#post-19959-_s0xi6yc2t8wb\"><strong>How to Enable and Start VirtualBox on Debian 12?<\/strong><\/a><\/li>\n<li><a href=\"#post-19959-_jann6igy3dm4\"><strong>How to Launch VirtualBox on Debian 12?<\/strong><\/a><\/li>\n<li><a href=\"#post-19959-_x49j2tmo99d9\"><strong>How to Install VirtualBox Extension Pack on Debian 12?<\/strong><\/a><\/li>\n<li><a href=\"#post-19959-_22pe2uav3efx\"><strong>How to Uninstall\/Remove VirtualBox on Debian 12?<\/strong><\/a><\/li>\n<li><a href=\"#post-19959-_tnvay0q5l4du\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-19959-_x2spzolkp60u\"><\/a>How to Install VirtualBox on Debian 12?<\/h2>\n<p>On Debian 12 systems, <strong>VirtualBox <\/strong>can be installed from:<\/p>\n<ul>\n<li><a href=\"#post-19959-_emr3bsjhrkgn\"><strong>Deb Package File<\/strong><\/a><\/li>\n<li><a href=\"#post-19959-_l83ptxuqwoyr\"><strong>Official VirtualBox Repository<\/strong><\/a><\/li>\n<\/ul>\n<h3><a id=\"post-19959-_8lkbhyuyqzgj\"><\/a>Prerequisite: Update the Debian System<\/h3>\n<p>Before jumping into the <strong>VirtualBox <\/strong>installation methods, make sure to update your Debian system first by executing the below-listed commands:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<br \/>\n<span class=\"kw2\">sudo<\/span> apt upgrade<\/div><\/div>\n<p>Subsequently, Debian\u2019s repository packages will be refreshed.<\/p>\n<h3><a id=\"post-19959-_emr3bsjhrkgn\"><\/a>Method 1: Install VirtualBox on Debian 12 Via Deb Package File<\/h3>\n<p>The Oracle <strong>VirtualBox <\/strong>provides the Deb packages files of <strong>VirtualBox <\/strong>to install and set up on your system. You can get the latest version of <strong>VirtualBox <\/strong>on the Debian 12 systems using this method by following the provided instructions:<\/p>\n<p><strong>Step 1: Download the VirtualBox Deb Package File <\/strong><\/p>\n<p>First, download the <strong>VirtualBox\u2019s <\/strong>latest Deb package file on your Debian 12 system via the \u201c<strong>wget<\/strong>\u201d command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>download.virtualbox.org<span class=\"sy0\">\/<\/span>virtualbox<span class=\"sy0\">\/<\/span>7.0.14<span class=\"sy0\">\/<\/span>virtualbox-<span class=\"nu0\">7.0<\/span>_7.0.14-<span class=\"nu0\">161095<\/span>~Debian~bookworm_amd64.deb<\/div><\/div>\n<p><strong>Note:<\/strong> Visit the <a href=\"https:\/\/www.virtualbox.org\/wiki\/Linux_Downloads\">official VirtualBox website<\/a> to get the most recent version of the VirtualBox Deb file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"405\" class=\"wp-image-24799\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-1-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-1-1.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-1-1-300x165.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>Alternatively, you can directly download the Deb file from the <a href=\"https:\/\/www.virtualbox.org\/wiki\/Linux_Downloads\">website<\/a> by clicking on the below-highlighted link:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"520\" class=\"wp-image-24800\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-2-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-2-1.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-2-1-300x198.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-2-1-768x507.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p><strong>Step 2: Install VirtualBox on Debian 12<\/strong><\/p>\n<p>Then, install the <strong>VirtualBox <\/strong>on the Debian 12 system through its Deb file using the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> .<span class=\"sy0\">\/<\/span>virtualbox-<span class=\"nu0\">7.0<\/span>_7.0.14-<span class=\"nu0\">161095<\/span>~Debian~bookworm_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"451\" class=\"wp-image-24801\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-3-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-3-1.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-3-1-300x184.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p><strong>Step 3: Verify VirtualBox Installation<\/strong><\/p>\n<p>Next, check the <strong>VirtualBox\u2019s <\/strong>version to verify its installation on the system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">vboxmanage <span class=\"re5\">--version<\/span><\/div><\/div>\n<p>The below output shows the installed version of <strong>VirtualBox <\/strong>on the system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"112\" class=\"wp-image-24802\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-4-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-4-1.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-4-1-300x46.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<h3><a id=\"post-19959-_l83ptxuqwoyr\"><\/a>Method 2: Install VirtualBox on Debian 12 From the Official VirtualBox Repository<\/h3>\n<p>Another efficient way to install <strong>VirtualBox <\/strong>on Debian 12 is by adding the official VirtualBox repository to the system. This method installs the most up-to-date version of <strong>VirtualBox <\/strong>with the latest features and automatically updates it whenever a new version is released.<\/p>\n<p>You can install <strong>VirtualBox <\/strong>on Debian 12 from the official <strong>VirtualBox <\/strong>repository by going through the provided steps:<\/p>\n<p><strong>Step 1: Import VirtualBox GPG Key<\/strong><\/p>\n<p>First, import the GPG key for <strong>VirtualBox <\/strong>via the given command to ensure its packages\u2019 integrity on the Debian system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">curl <span class=\"re5\">-fSsL<\/span> https:<span class=\"sy0\">\/\/<\/span>www.virtualbox.org<span class=\"sy0\">\/<\/span>download<span class=\"sy0\">\/<\/span>oracle_vbox_2016.asc <span class=\"sy0\">|<\/span> gpg <span class=\"re5\">--dearmor<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tee<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>share<span class=\"sy0\">\/<\/span>keyrings<span class=\"sy0\">\/<\/span>virtualbox.gpg <span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">\/<\/span>dev<span class=\"sy0\">\/<\/span>null<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"113\" class=\"wp-image-24803\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-5-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-5-1.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-5-1-300x46.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p><strong>Step 2: Add VirtualBox Repository <\/strong><\/p>\n<p>Next, write out the provided command to add\/import the official <strong>VirtualBox <\/strong>repository to the Debian system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw3\">echo<\/span> <span class=\"st0\">&quot;deb [arch=amd64 signed-by=\/usr\/share\/keyrings\/virtualbox.gpg] http:\/\/download.virtualbox.org\/virtualbox\/debian bookworm contrib&quot;<\/span> <span class=\"sy0\">|<\/span> <span class=\"kw2\">sudo<\/span> <span class=\"kw2\">tee<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>sources.list.d<span class=\"sy0\">\/<\/span>virtualbox.list<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"177\" class=\"wp-image-24805\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-6-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-6-1.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-6-1-300x72.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Step 3: Refresh Debian 12<\/strong><\/p>\n<p>After that, you need to refresh your Debian 12 system to implement changes:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt update<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"363\" class=\"wp-image-24806\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-7-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-7-1.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-7-1-300x148.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p><strong>Step 4: Install VirtualBox on Debian 12 <\/strong><\/p>\n<p>Now, install the most up-to-date version of <strong>VirtualBox <\/strong>on Debian 12 by utilizing the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> virtualbox-<span class=\"nu0\">7.0<\/span><\/div><\/div>\n<p><strong>Note: <\/strong>You can check the latest version offered by the VirtualBox repository using the \u201c<strong>sudo apt search virtualbox<\/strong>\u201d command. Currently, it is \u201c<strong>virtualbox-7.0<\/strong>\u201d that we are installing:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"388\" class=\"wp-image-24807\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-8-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-8-1.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-8-1-300x158.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Step 5: Ensure Installation <\/strong><\/p>\n<p>To verify whether the VirtualBox\u2019s latest version is installed or not, type out the given command to check its version:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">vboxmanage <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"114\" class=\"wp-image-24808\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-9-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-9-1.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-9-1-300x46.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<h2><a id=\"post-19959-_s0xi6yc2t8wb\"><\/a>How to Enable and Start VirtualBox on Debian 12?<\/h2>\n<p>When the <strong>VirtualBox <\/strong>is installed on the system, its services start automatically by default. In case the VirtualBox services have not started on the Debian 12 system, you have to enable and start them manually.<\/p>\n<p>Here are the steps:<\/p>\n<h3><a id=\"post-19959-_cgtvt6dbi60m\"><\/a>Enable VirtualBox Services<\/h3>\n<p>First, enable the <strong>VirtualBox <\/strong>services to start automatically every time the system boots up, use the provided command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl <span class=\"kw3\">enable<\/span> vboxdrv<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"91\" class=\"wp-image-24809\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-10.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-10-300x37.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<h3><a id=\"post-19959-_g39hqy7vrjw\"><\/a>Start VirtualBox Services<\/h3>\n<p>Then, execute the given command to start the <strong>VirtualBox <\/strong>service on the Debian 12 system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl start vboxdrv<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"93\" class=\"wp-image-24810\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-11.png 739w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-11-300x38.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/p>\n<h3><a id=\"post-19959-_lbl71efh8gf4\"><\/a>Check the Status of VirtualBox Services<\/h3>\n<p>To view the status of <strong>VirtualBox <\/strong>services on your Debian system, utilize the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> systemctl status vboxdrv<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"302\" class=\"wp-image-24811\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-12.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-12-300x123.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<h2><a id=\"post-19959-_jann6igy3dm4\"><\/a>How to Launch VirtualBox on Debian 12?<\/h2>\n<p>To start using <strong>VirtualBox <\/strong>on Debian 12, you have to launch it on your Debian system. You can launch <strong>VirtualBox <\/strong>either from the terminal or desktop environment (GUI).<\/p>\n<h3><a id=\"post-19959-_jzaj2eyn2gyn\"><\/a>Launch VirtualBox Via Terminal<\/h3>\n<p>You can launch <strong>VirtualBox <\/strong>through the terminal by executing the below-listed command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">virtualbox<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"553\" class=\"wp-image-24812\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-13.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-13-300x225.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<h3><a id=\"post-19959-_dw4dd2gzm4te\"><\/a>Launch VirtualBox Via GUI<\/h3>\n<p>To launch VirtualBox via GUI, first, click on the \u201c<strong>Activities<\/strong>\u201d button on the screen\u2019s top-left side. Then, type \u201c<strong>VirtualBox<\/strong>\u201d in the search box and open <strong>VirtualBox <\/strong>by clicking on it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"509\" class=\"wp-image-24813\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-14.png 760w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-14-300x201.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<h2><a id=\"post-19959-_x49j2tmo99d9\"><\/a>How to Install VirtualBox Extension Pack on Debian 12?<\/h2>\n<p>You can also install the relevant VirtualBox extension pack to enhance <strong>VirtualBox\u2019s <\/strong>functionality on your Debian 12 system. These functionalities include Host webcam pass-through, Disk image encryption, USB 2.0\/3.0 device support, VirtualBox Remote Desktop Protocol, and many more. Let\u2019s learn how to install it:<\/p>\n<p><strong>Step 1: Download the Latest VirtualBox Extension Pack <\/strong><\/p>\n<p>First, download the relevant version of the VirtualBox extension pack on the Debian 12 system using the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">wget<\/span> https:<span class=\"sy0\">\/\/<\/span>download.virtualbox.org<span class=\"sy0\">\/<\/span>virtualbox<span class=\"sy0\">\/<\/span>7.0.14<span class=\"sy0\">\/<\/span>Oracle_VM_VirtualBox_Extension_Pack-7.0.14.vbox-extpack<\/div><\/div>\n<p><strong>Note:<\/strong> Make sure you know the installed version of <strong>VirtualBox <\/strong>on your system to get its relevant extension pack. Here, we have the \u201c<strong>7.0.14<\/strong>\u201d version of VirtualBox on our system so we are downloading the extension pack of the same suitable version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"739\" height=\"407\" class=\"wp-image-24814\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-15.png 739w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-15-300x165.png 300w\" sizes=\"auto, (max-width: 739px) 100vw, 739px\" \/><\/p>\n<p>Alternatively, download\/get it directly from the <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\">official website<\/a>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"521\" class=\"wp-image-24816\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-16.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-16-300x198.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-16-768x508.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p><strong>Step 2: Install VirtualBox Extension Pack<\/strong><\/p>\n<p>Then, utilize the following command to install the downloaded VirtualBox extension pack on your Debian 12 system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> vboxmanage extpack <span class=\"kw2\">install<\/span> Oracle_VM_VirtualBox_Extension_Pack-7.0.14.vbox-extpack<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"403\" class=\"wp-image-24819\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-17.png 735w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-17-300x164.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/p>\n<p><strong>Step 3: Verification<\/strong><\/p>\n<p>For the verification, you can display the relevant information of the installed VirtualBox extension pack on Debian 12 via the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">vboxmanage list extpacks<\/div><\/div>\n<p>The below output shows the extension pack installed on the system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"325\" class=\"wp-image-24824\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-18.png 737w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-18-300x132.png 300w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/p>\n<h2><a id=\"post-19959-_22pe2uav3efx\"><\/a>How to Uninstall\/Remove VirtualBox on Debian 12?<\/h2>\n<p>If you do not want to use <strong>VirtualBox <\/strong>on your Debian 12 system, you can simply uninstall or remove it from your system through the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove virtualbox-<span class=\"nu0\">7.0<\/span> <span class=\"re5\">-y<\/span><\/div><\/div>\n<p>You should also remove the <strong>VirtualBox <\/strong>repository from your system as:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>sources.list.d<span class=\"sy0\">\/<\/span>virtualbox.list<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"92\" class=\"wp-image-24832\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-20.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-20-300x38.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>Also, remove the <strong>VirtualBox <\/strong>GPG key using the provided command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">rm<\/span> <span class=\"sy0\">\/<\/span>usr<span class=\"sy0\">\/<\/span>share<span class=\"sy0\">\/<\/span>keyrings<span class=\"sy0\">\/<\/span>virtualbox.gpg<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"90\" class=\"wp-image-24836\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-21.png 738w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-21-300x37.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/p>\n<p>To ensure that <strong>VirtualBox <\/strong>has been removed from Debian 12, type out the given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">virtualbox<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"112\" class=\"wp-image-24841\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-22.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/07\/word-image-19959-22-300x46.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>That was all about <strong>VirtualBox <\/strong>installation and uninstallation on Debian 12.<\/p>\n<h2><a id=\"post-19959-_tnvay0q5l4du\"><\/a>Conclusion<\/h2>\n<p>You can install <strong>VirtualBox <\/strong>on Debian 12 from the Deb package file or the VirtualBox\u2019s official repository. Both methods provide the latest (most recent) version of <strong>VirtualBox <\/strong>for your Debian system. However, the official VirtualBox repository method is the most recommended approach as it automatically fetches and installs <strong>Virtualbox\u2019s <\/strong>most up-to-date version from the official repository whenever new updates and features are available.<\/p>\n<p>This article has covered two possible and efficient methods of <strong>VirtualBox <\/strong>installation on Debian 12.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can install VirtualBox on Debian 12 from the Deb package file or the official VirtualBox repository. These methods provide VirtualBox\u2019s latest version. <\/p>","protected":false},"author":112,"featured_media":20368,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-19959","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/112"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=19959"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19959\/revisions"}],"predecessor-version":[{"id":24815,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/19959\/revisions\/24815"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/20368"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=19959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=19959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=19959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}