Categories: BlogCanonicalUbuntu

Planning phased Ubuntu 22.04 Enterprise Desktop upgrades with Landscape

It’s impossible to be sure of anything but death and taxes… and software upgrades.

This amendment to Christopher Bullock’s iconic quote reflects today’s reality, for everybody. Ubuntu 22.04 will be available on April 21, 2022, and System Administrators working in organisations running Ubuntu 20.04 desktops need controls to comply with their release management and change management policies. Staggering upgrades is a common practice to ensure the best IT support experience.

Sponsored

Fortunately, it is simple to prevent the new Ubuntu version upgrade notification through the graphical user interface and command line. This configuration can be applied to many machines easily, and stop users from updating to the next version of Ubuntu before their scheduled upgrade window.

Manage a single computer

Within the applications list in Ubuntu Desktop, there is a Software & Updates application. Opening that, and clicking on the Updates tab, reveals the following window:

New ubuntu version notifications are managed through the updates tab, within the software & updates application.

Next to the Notify me of a new Ubuntu version option, changing the drop-down menu to Never will prevent users from seeing an upgrade prompt, when the next version of Ubuntu is available.

Changes made to update notifications can be verified through this window.

Manage many computers, with Landscape

Landscape is Canonical’s monitoring and management tool for Ubuntu. Beyond security and vulnerability patching, Landscape is also an essential component of many organisations’ broader release management and change management strategies.

Enabling and disabling upgrade prompts across all your Ubuntu Desktops can be achieved through Landscape in 3 simple steps.

Manage thousands of Ubuntu computers as easily as one

Compare Landscape editions

Step 1: divide your Ubuntu desktop estate into groups

Making groups of your Ubuntu desktop machines is the first step for performing a phased upgrade. To accomplish the task of making a group in Landscape:

  1. Log into your Landscape dashboard and from the overview page, click Access groups in the secondary navigation.
  2. Type an appropriate Title, and select an appropriate Parent if you are grouping machines in a hierarchical way.
  3. Click the Save button.

Next, assign the several computers to a single group:

  1. Click Computers in the primary navigation menu, and select an assortment of machines that belong in a single grouping
  2. Click Info in the secondary navigation
  3. Scroll to the bottom of the page and select an appropriate Access Group from the dropdown.
  4. Click the Update access group button

Once your machines are grouped, you are ready to disable upgrade prompts for entire groups.

Step 2: disable upgrade prompts on Ubuntu desktop from Landscape

Sponsored

Eliminate the Ubuntu desktop users’ temptation to upgrade by disabling the upgrade prompt.

  • Log into your Landscape dashboard and from the overview page, click Scripts in the secondary navigation.
  • Click the Add script link, and fill in the page as follows:

Title: Disable Ubuntu upgrade prompt
Code:

#!/bin/bash
sed -i 's/(^Prompt=).*/Prompt=never/' /etc/update-manager/release-upgrades

Run as user: root
Time limit (seconds): 300
Access Group: choose the appropriate one from the drop down menu

  • Click the Save button

Step 3: enable LTS upgrade prompts on Ubuntu desktop from Landscape

When you are ready to enable 

  • Log into your Landscape dashboard and from the overview page, click Scripts in the secondary navigation.
  • Click the Add script link, and fill in the page as follows:

Title: Enable Ubuntu LTS upgrade prompt
Code:

#!/bin/bash
sed -i 's/(^Prompt=).*/Prompt=lts/' /etc/update-manager/release-upgrades

Run as user: root
Time limit (seconds): 300
Access Group: Global access

  • Click the Save button

Linux desktop management, made easy

These scripts can be run on any computer in a subgroup of the “Global access” group. They can be run on demand, or scheduled to run at a date and time in the future. Managing your Ubuntu estate with Landscape is fast, secure, and safe.

Disable and enable upgrade prompts on demand, through the landscape dashboard.

Landscape offers a single control plane for server and desktop. The reasons that make Landscape the best Linux server management dashboard are also relevant for the desktop use case.

Landscape can be downloaded and run on-premises for up to 10 machines for free, or through a SaaS model at just 1¢ per machine hour. New customers get a $100 free credit that is good for up to 60 days, and machines with an active Ubuntu Advantage subscription can use Landscape SaaS or Landscape On-Prem at no additional cost.

Compare the differences between Landscape SaaS and Landscape On-Prem. When you are ready, follow the Landscape On-Prem quickstart guide, or sign up for a free trial of Landscape SaaS, and get full control over your Ubuntu estate.

Ubuntu Server Admin

Recent Posts

Building RAG with enterprise open source AI infrastructure

One of the most critical gaps in traditional Large Language Models (LLMs) is that they…

17 hours ago

Life at Canonical: Victoria Antipova’s perspective as a new joiner in Product Marketing

Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…

2 days ago

What is patching automation?

What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…

3 days ago

A beginner’s tutorial for your first Machine Learning project using Charmed Kubeflow

Wouldn’t it be wonderful to wake up one day with a desire to explore AI…

4 days ago

Ubuntu brings comprehensive support to Azure Cobalt 100 VMs

Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…

4 days ago

Ubuntu Weekly Newsletter Issue 870

Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…

4 days ago