October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Upgrade Ubuntu LTS on Your VPS Safely

Learn when to redeploy a VPS instead of upgrading in place, how to back up and preserve console access, the exact Ubuntu preflight commands, and how to validate or roll back safely.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The safest Ubuntu LTS upgrade starts with a choice: redeploy a new VPS and migrate to it when your infrastructure is reproducible, or run Canonical’s supported sudo do-release-upgrade when the existing server contains manual configuration that cannot be recreated. In either case, make an independently restorable backup, keep provider-console access, update the current release completely, review third-party repositories and disk space, and schedule a maintenance window. Ubuntu server upgrades need network access to an official or local mirror; there is no offline server-upgrade path.

What a safe Ubuntu LTS upgrade involves

An LTS release upgrade changes the operating system, package set, kernel, service defaults and sometimes configuration-file formats. A VPS can finish the process successfully while an application, firewall rule, mount, scheduled job or TLS certificate is still broken. Treat the operation as a controlled migration, not as a single command.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Canonical supports sequential LTS upgrades. You cannot normally jump directly over an LTS release: an older system must move through the required intermediate release or releases before it reaches the target. Release notes for the target determine the exact path. For example, Ubuntu 26.04 notes warn that older LTS or interim systems may need intermediate upgrades.

How long an LTS remains covered

Coverage What it means
Standard Ubuntu LTS maintenance Five years of standard security maintenance for packages in main, according to Canonical’s current Ubuntu releases documentation.
Ubuntu Pro An additional five-year extended maintenance period after the initial standard LTS period, as described in Canonical’s Ubuntu Server upgrade documentation.

Lifecycle status matters to the decision. If the current release is still supported and the application is stable, you can plan the change around a tested window. If it is near the end of standard maintenance, include the support deadline in your migration schedule rather than postponing indefinitely.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Choose redeployment or an in-place upgrade

For a reproducible VPS, building a new instance from the target LTS image is often safer than changing production in place. It gives you a clean operating system and a straightforward rollback: leave the old instance untouched until the replacement has passed its checks. In-place upgrading is intended for manually configured systems that would be difficult or error-prone to recreate.

Decision factor Redeploy a new VPS Upgrade the existing VPS
Configuration reproducibility Best when infrastructure, deployment files and settings can be recreated reliably. Useful when undocumented manual changes or local state cannot be reproduced.
Rollback certainty Keep the old VPS running or stopped and switch traffic back. Depends on a tested snapshot or image restore; an interrupted upgrade can require console recovery.
Downtime and cutover Supports staged testing and a planned DNS, load-balancer or traffic switch. Usually requires a maintenance window while packages and services are replaced.
Database migration Requires replication, dump/restore or another documented data migration. Local databases remain in place, but their packages and configuration still need validation.
Third-party repositories Install only repositories that explicitly support the target release. Unsupported PPAs and vendor repositories are common upgrade blockers and must be disabled or replaced.
Recovery access Provider console remains a fallback for the new instance. Provider serial, web or rescue console is essential if SSH or boot fails.
Current-release support Starts on the target release immediately. Preserves the current environment but requires a supported sequential path.

Canonical’s cloud guidance recommends redeploying new instances for fully automated deployments. The same guidance describes in-place do-release-upgrade for systems that cannot be recreated easily and suggests running an additional SSH daemon on another port as a mitigation when access continuity is critical.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Record the VPS before changing anything

Create an inventory you can compare after the reboot. Store it outside the VPS as part of the change record. At minimum, capture the release, architecture, kernel, storage layout, mounts, services, firewall, repositories and application entry points.

lsb_release -a
cat /etc/os-release
dpkg --print-architecture
uname -a
lsblk -f
df -h
systemctl --failed
ss -tulpn
sudo ufw status verbose
apt-mark showmanual
grep -R --line-number --exclude-dir='lists' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d 2>/dev/null

Also record which ports should listen, which systemd units must be active, the locations of mounted data, DNS records, certificate files, cron or systemd timers, monitoring checks, backup jobs and deployment instructions. Export application-specific configuration and note the expected health-check response for each public service.

Back up data and prove that restoration works

Canonical’s safety instruction is direct: back up all data before upgrading. A provider snapshot is useful for rapid rollback, but do not make it your only copy or assume that a snapshot is restorable until you have checked it.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

What to copy

  • Application data and user uploads.
  • Databases, including credentials and the exact restore procedure.
  • Configuration under /etc and application directories.
  • TLS private keys, certificates and renewal configuration.
  • Deployment files, package lists, scripts and infrastructure definitions.
  • Scheduled jobs, service overrides and firewall rules.

Where to keep it

Use a backup location independent of the VPS and its provider disk. Retain the pre-upgrade snapshot or image, an application-level backup and the deployment files needed to rebuild. Verify that files can be read and that database dumps pass the relevant integrity check. Write down the restore order—storage, database, configuration, services and traffic—before the maintenance window starts.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a redeployment, keep the old VPS available until the replacement has passed application and external-connectivity checks. For an in-place upgrade, confirm that the provider can attach the old disk or restore the snapshot and that you know how to stop traffic before restoring it.

Preserve SSH and console access

Use a persistent terminal such as tmux or screen, and keep a second administrative SSH session open. Confirm that your VPS provider offers a serial, web or rescue console and test logging in before the upgrade. Console access is the recovery path if networking, sshd, firewall rules or the boot process fails.

The Ubuntu server upgrader uses GNU screen. If an SSH connection drops, reconnect and follow the upgrader’s reattach instructions rather than starting a second upgrade process. Do not close every administrative session while the package manager is changing the system.

For particularly sensitive production systems, Canonical’s cloud guidance describes starting an additional SSH daemon on a different port as a mitigation. Test the alternate port from your administration network and remove the temporary listener after the upgrade.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Fully update the current LTS first

Do not launch a release upgrade from a partially updated system. During the maintenance window, run the preflight update on the current release:

sudo apt update
sudo apt dist-upgrade -o APT::Get::Always-Include-Phased-Updates=true

Read and resolve every error. If the system reports that a reboot is required, reboot into the current release and reconnect before continuing:

test -f /run/reboot-required && echo 'Reboot required'

After rebooting, confirm that the expected kernel is running, services are healthy and package management is clean. A release upgrade should not be used to conceal unresolved dependency or repository failures.

Understand phased updates and “held back” packages

Phased updates are a normal rollout mechanism. Canonical says packages held back because of phasing are normally temporary, and security updates are never phased. Do not blindly disable phased updates across the system or force unrelated packages into an unstable state.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The documented preflight command above explicitly includes phased updates for the release-upgrade preparation. If ordinary updates still show held packages, inspect the package-manager output and any intentional holds, resolve dependency errors, and retry the update. A package that is held because an administrator deliberately marked it should be reviewed separately from a package that is waiting for its phased rollout.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Review repositories and available disk space

Third-party repositories and PPAs

Third-party repositories are a common cause of release-upgrade failures. List every PPA and vendor repository, record which application depends on it, and disable or remove entries that do not support the target Ubuntu release. Plan a supported replacement for software that came from those sources. Do not assume that a repository for the current LTS will work on the next one.

Keep a copy of the original repository configuration so you can restore a required source after the upgrade only when the publisher confirms target-release support. Re-enable repositories one at a time after the base system and application have been validated.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Capacity checks

The upgrader downloads hundreds of packages and needs working space for archives, unpacked files, logs and the new kernel. Confirm several gigabytes of free space on the filesystems that hold /var, /boot and the root filesystem. Check inode availability as well as block space if the VPS has many small files.

df -h
df -i
lsblk -f

Remove only caches, logs and obsolete kernels that you understand. Never delete application data or mounted volumes to make room without a tested backup and a documented restore path.

Run Canonical’s supported upgrader

When the current LTS is fully updated, backups are verified, repositories are reviewed and console access is available, use the server/cloud-image command Canonical documents:

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
sudo do-release-upgrade
  1. Confirm that the target release shown by the upgrader matches the release notes and your change plan. If the target is not offered, check the configured prompt in /etc/update-manager/release-upgrades; an LTS policy is commonly represented by Prompt=lts.
  2. Read the summary of packages to install, upgrade, remove and keep. Investigate unexpected removals or replacements before accepting.
  3. Review each configuration-file question. Preserve a known-good local file when appropriate, but compare it with the maintainer’s version so new defaults and security settings are not missed.
  4. Keep the session attached to the provider network and do not interrupt power or force a reboot while packages are being unpacked or configured.
  5. Answer cleanup prompts deliberately. Removing an obsolete package can be correct, but an application dependency or a locally installed kernel should be verified first.
  6. Allow the upgrader to finish and reboot only when it requests the reboot. Record any warning or failed package for post-reboot investigation.

The process requires network access to an official or local Ubuntu mirror; Ubuntu does not provide an offline server-upgrade option. Never add -d on production simply to obtain a development or unreleased path. Canonical does not recommend that option for production systems.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Validate the upgraded VPS before returning traffic

Do not declare success because the SSH prompt returned. Compare the post-upgrade system with the inventory you created.

Operating system and package state

lsb_release -a
cat /etc/os-release
uname -a
sudo dpkg --audit
systemctl --failed

Confirm that the reported release is the intended target, the expected kernel is active, no packages remain in an unfinished state and failed systemd units are either understood or repaired.

Network, firewall and storage

  • Check listening ports with ss -tulpn and compare them with the pre-upgrade list.
  • Verify firewall policy, including IPv4 and IPv6 rules, and confirm that administrative access is still limited as intended.
  • Confirm DNS resolution from the VPS and from an external network.
  • Check every mounted volume, filesystem label and application data path.
  • Test outbound access required for package repositories, APIs, mail and monitoring.

Services and applications

  • Start or repair any failed service, then inspect its journal and application logs.
  • Exercise local health checks and public endpoints, including authentication and background workers.
  • Verify TLS certificates, private-key permissions and automated renewal jobs.
  • Run scheduled jobs manually where safe, and confirm cron or systemd timers are enabled.
  • Check database connectivity, migrations, replication status and backup completion.
  • Confirm monitoring, alerting and log shipping are receiving data from the target release.

Keep traffic on the old instance or in maintenance mode until these checks pass. For a redeployment, perform the same checks on the new VPS before changing DNS, a load balancer or another routing layer.

Rollback when validation fails

Stop traffic first so new writes do not diverge from the backup. For a redeployed VPS, switch routing back to the old instance and preserve the failed replacement for diagnosis. For an in-place upgrade, restore the tested snapshot or rebuild the previous image, reattach data, and then repeat the validation checklist.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If you cannot restore the system confidently, do not keep experimenting on the only copy. Keep the old VPS or instance available, document the failure and identify whether the cause was a repository, package dependency, storage, network, boot or application change before scheduling another attempt.

Common problems and the safest response

Symptom Likely concern Response
SSH disconnects during the upgrade The network session dropped, not necessarily the upgrader. Reconnect through SSH or the provider console and reattach to the GNU screen session. Do not start a second upgrader.
Packages are held back before upgrading Phased rollout, an intentional hold or an unresolved dependency. Read the apt output, inspect holds, use the documented phased-update preflight, and resolve errors before proceeding.
The upgrader reports a third-party source problem A PPA or vendor repository lacks target-release metadata. Disable the source, record the software it supplied and install a target-supported version after the base upgrade.
There is insufficient disk space Package archives, unpacked files or kernels cannot fit. Stop, create or verify a backup, free safe-to-remove space and recheck all relevant filesystems.
A service fails after reboot Changed defaults, configuration-file decisions, permissions, mounts or dependencies. Compare the saved inventory, inspect service logs and configuration diffs, repair the dependency and retest before restoring traffic.
The VPS does not boot Kernel, filesystem, bootloader or storage problem. Use the provider’s serial or rescue console and the tested image/snapshot rollback procedure.
Application checks pass locally but fail externally Firewall, DNS, routing, TLS or load-balancer state changed. Test from outside the VPS, compare ports and certificates, and correct the external routing before cutover.

A repeatable runbook

  1. Read the target release notes and confirm whether intermediate LTS upgrades are required.
  2. Inventory the current release, architecture, kernel, storage, mounts, services, firewall and repositories.
  3. Choose redeployment or in-place upgrade using reproducibility, migration complexity and rollback certainty.
  4. Create an independent backup, provider snapshot where available and a written restoration procedure; verify that the backup is readable.
  5. Test provider console access, establish persistent SSH and keep a second administrative session open.
  6. Run sudo apt update and sudo apt dist-upgrade -o APT::Get::Always-Include-Phased-Updates=true; reboot if /run/reboot-required exists.
  7. Disable unsupported third-party repositories and confirm several gigabytes of free disk space.
  8. Run sudo do-release-upgrade, review removals and configuration decisions, and never use -d on production for an unreleased path.
  9. After reboot, validate release, kernel, packages, systemd units, networking, firewall, mounts, applications, TLS, jobs, monitoring and backups.
  10. Cut traffic over only after the checks pass; retain the old system until rollback is no longer needed.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.