在VirtualBox中安裝Debian軟件包通常涉及以下步驟:
sudo apt update
sudo apt install <軟件包名稱>
例如,要安裝 Firefox 瀏覽器,您可以使用以下命令:
sudo apt install firefox
# 編輯 /etc/apt/sources.list 文件
sudo vi /etc/apt/sources.list
# 添加或修改以下內容(以清華源為例)
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmwaredeb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmwaredeb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmwaredeb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# 刷新 apt 更新
sudo apt update
以上步驟是在Debian/Ubuntu系統中使用APT包管理器的基本步驟和命令。APT是Debian系列系統中常用的包管理工具之一,它提供了一組命令行工具,如apt-get
和apt-cache
,用于安裝、升級、刪除和管理軟件包。
請注意,具體的軟件包名稱和版本可能會隨著Debian版本的更新而變化。如果您需要安裝的軟件包不在默認的軟件源中,您可能需要添加相應的第三方存儲庫。