With recent critical vulnerabilities like the OpenSSH authentication bypass and GPUStack exploits, keeping your Linux servers patched is no longer optional. When active threats are circulating, manual updates allow you to verify patches immediately rather than waiting for automated weekly maintenance cycles. Here is the complete guide to manually updating your infrastructure and verifying your web servers are secure.
1. Manually Updating Ubuntu, Debian, and Linux Mint Servers
To manually force security updates across your servers and workstations, open your terminal and run the following commands to refresh your package list and apply the upgrades:
sudo apt update
sudo apt upgrade -y
Troubleshooting: DNS Resolution Errors
If you encounter a "Could not resolve 'archive.ubuntu.com'" error during the update, your local ISP's DNS is likely dropping the route. Bypass this by temporarily forcing public DNS servers (like Google and Cloudflare):
sudo mv /etc/resolv.conf /etc/resolv.conf.backup
echo -e "nameserver 8.8.8.8\nnameserver 1.1.1.1" | sudo tee /etc/resolv.conf
sudo apt update
sudo apt upgrade -y
sudo mv /etc/resolv.conf.backup /etc/resolv.conf
sudo systemctl restart NetworkManager
2. Verifying Your Web Servers are Patched
After running your updates, you must verify that your specific web servers (especially those hosting client sites) are protected against the latest OpenSSH and GPUStack threats.
Check OpenSSH: Ubuntu backports security fixes, so check the exact installed package version rather than the main release number.
dpkg -l | grep openssh-server
Look for version 1:8.9p1-3ubuntu0.18 (for Ubuntu 22.04) or 1:10.2p1-2ubuntu3.8 (for Ubuntu 24.04). If you see these or higher, you are successfully patched.
Check GPUStack: If you run AI stacks, verify the CLI or Docker versions are at least v2.2.0. If these commands return "command not found", your server does not have the software installed and is inherently immune to the exploit.
gpustack version
docker images | grep gpustack
3. RHEL, AlmaLinux, Rocky Linux, and Fedora (DNF)
For modern Red Hat-based distributions, force a repository refresh to ensure you pull the latest security advisories before upgrading:
sudo dnf upgrade --refresh -y
4. Automating Future Security Patches
Once your servers are manually secured, enable unattended-upgrades on Ubuntu/Debian systems to handle future security patches automatically. This targets security repositories only, so it will not break existing control panels like ISPConfig or custom mail servers.
sudo apt install unattended-upgrades update-notifier-common -y
sudo dpkg-reconfigure --priority=low unattended-upgrades
This ensures you get critical patches instantly, though major kernel updates will still safely wait for you to manually reboot the server.
Join the Discussion
Create an account or sign in to leave a comment.