ubuntu: general maintenance

This is just a glance of maintenance commands regards ubuntu LTS 24.x
Feb 7, 2026 Author:
  • pabu
Default Thumbnail
Image credit: psalabs.eu

General Updates

Update One-liner

To Update without further confirmation:

sudo apt update -y && sudo apt upgrade -y
sudo apt update -y && sudo apt upgrade -y

Remove the -y flag to manually confirm actions

Fix Update Problems

Removes bad cached packages and re-download

sudo rm -f /var/cache/apt/archives/linux-headers-6.8.0-94_*.deb
sudo apt clean
sudo apt update
sudo apt --fix-broken install
sudo rm -f /var/cache/apt/archives/linux-headers-6.8.0-94_*.deb
sudo apt clean
sudo apt update
sudo apt --fix-broken install

If this has run successfully you can trigger updates, I had best success with removing obsolete packages beforehand

sudo apt autoremove --purge
sudo apt update -y && sudo apt upgrade -y
sudo apt autoremove --purge
sudo apt update -y && sudo apt upgrade -y

Proxmos Agent Install

sudo apt update
sudo apt install -y qemu-guest-agent
sudo systemctl enable --now qemu-guest-agent
sudo systemctl status qemu-guest-agent --no-pager
sudo apt update
sudo apt install -y qemu-guest-agent
sudo systemctl enable --now qemu-guest-agent
sudo systemctl status qemu-guest-agent --no-pager