Part of Datorkirurgen AB – IT experts across Sweden

Ubuntu Server for businesses: installation, safe upgrades to new LTS versions, Netplan, UFW and troubleshooting. Linux Service helps you across Sweden.

Why many businesses choose Ubuntu Server

Ubuntu Server is one of the most common distributions in the cloud and in data centres. It is based on Debian, but it has its own rhythm with an LTS version every other year. Each LTS version receives five years of standard maintenance, and in addition you can extend the support with Ubuntu Pro. Therefore, it suits web servers, databases and internal tools well. The package selection is large, and most cloud providers offer ready-made images. At the same time, the documentation is extensive, which makes analysis and troubleshooting easier.

Canonical released Ubuntu 26.04 LTS in April 2026, and the version is supported until April 2031. When we take over an environment, we always start by checking which version is running and how long it has left. A server without security updates is a risk, even if it works today. Therefore, we go through packages, services and customisations before we propose a plan. In short, you get a clear picture of the situation before we change anything.

Checking the version and support period on Ubuntu Server in the terminal
Checking the version and support period on Ubuntu Server in the terminal. This is how Linux Service, part of Datorkirurgen AB, works for businesses in Uppsala.

Installation and basic configuration

For a new installation, we limit the system to the components that are required. In practice, this means a minimal installation, and after that we only add the packages that the business needs. Then we configure the network with Netplan, which uses YAML files under /etc/netplan. A common mistake is wrong indentation in the file, and then the network does not start as intended. Therefore, we always test with netplan try, since the command rolls back the change if the connection drops.

We set up the firewall with UFW. First, we allow SSH, and then we only open the ports that the service needs. Sign-in uses keys instead of passwords. In addition, we activate automatic security updates with the unattended-upgrades package. In this way, the server receives important fixes even between our planned maintenance windows. Finally, we document everything in a short operations description that you keep.

Checklist for the basic configuration of Ubuntu Server in a business
Checklist for the basic configuration of Ubuntu Server in a business. Do you need help with Linux? Linux Service helps you in Täby, Danderyd and Lidingö, on site or remotely.

Safe upgrades to a new LTS version

Upgrading a server is not something you do on a Friday afternoon. First, we take a snapshot or a full backup. After that, we update all packages in the current version and restart the server. Then we run do-release-upgrade, preferably in a screen session, so that the upgrade continues even if the connection drops. Note that older versions such as 22.04 must first go to 24.04 before they can move on to 26.04.

During the upgrade, the system asks whether we want to keep modified configuration files. We never answer at random; instead, we first compare the differences. In addition, Ubuntu 26.04 requires cgroup v2, which can affect older containers. When the upgrade is finished, we check services, logs and websites. If something deviates, we roll back to the snapshot, but that is rarely needed when the groundwork has been done properly.

Workflow for a safe upgrade to a new LTS version
Workflow for a safe upgrade to a new LTS version. An example from our work for clients in Nacka and Södermalm.

Common problems we solve

Many cases concern packages that have locked up. For example, an interrupted apt command can leave a lock file behind, and then the package manager refuses to work. We find out which process holds the lock before anything is removed. Other common faults are a full disk due to old kernels, snap packages that take up space or logs that grow. In addition, we often see services that start in the wrong order after a restart.

We troubleshoot with journalctl, systemctl status and apt policy. In this way, we see both what happened and why. When the cause is clear, we fix the fault and add protection against the same thing happening again. It may be a limit on log size, an automatic clean-up or monitoring that raises an alert in time. If you want to read more about logs and disk space, we have an article on disk space, journald and swap.

Troubleshooting a locked apt command in the terminal
Troubleshooting a locked apt command in the terminal. Linux Service, part of Datorkirurgen AB, helps businesses in Stockholm with servers, scripts and databases.

Contact Linux Service about Ubuntu Server

Linux Service is part of Datorkirurgen AB and has worked with Linux for more than 30 years. We install, upgrade and operate Ubuntu for businesses across Sweden, both on your own servers and in the cloud. In addition, we help with Apache, PHP, Python and databases on the same server. Official documentation is available in the Ubuntu Server documentation, but you do not need to read it yourselves.

Therefore, contact us before the support period ends, and we will plan the upgrade together. We also take urgent cases when a server has stopped responding. We work remotely or on site in Stockholm, and you always receive a short report afterwards. Feel free to also read about Debian servers, which Ubuntu is based on.

Frequently asked questions about Ubuntu Server

Questions about Ubuntu Server

Ubuntu Server: network, firewall and upgrades

More about troubleshooting and support

Website developed by Datorkirurgen AB · Privacy policy