在VirtualBox中的Debian系统进行系统更新,可以按照以下步骤操作:
sudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove
sudo apt clean
cd /media/cdrom0
sudo apt-get install build-essential linux-headers-$(uname -r)
sh ./VBoxLinuxAdditions.run
sudo reboot
su -
nano /etc/apt/sources.list.d/virtualbox.list
deb http://download.virtualbox.org/virtualbox/version/debian version contrib non-free
sudo apt update
sudo apt install virtualbox-version
sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure unattended-upgrades
sudo systemctl status apt-daily.timer
sudo systemctl status apt-daily-upgrade.timer
sudo unattended-upgrade --dry-run
在进行系统更新之前,建议备份重要数据,以防更新过程中出现问题导致数据丢失。同时,确保使用官方或可信的源进行更新,以确保获取到的是稳定且安全的版本。