How to Fix the No X11 Display Error With Java Applications on Ubuntu 24.04 LTS

On my newly upgraded Ubuntu 24.04 LTS I got this error when I started a Java application: Exception in thread “main” java.awt.HeadlessException: No X11 DISPLAY variable was set, or no headful library support was found, but this program performed an operation which requires it, at java.desktop/sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:58) at foo.lj.a(Unknown Source) at foo.lj.(Unknown Source) This problem is …

Read more

How to Fix Apt Packages Release File for XY Is Not Valid Yet

As I tried to update my WSL (Windows Subsystem for Linux) installation, I run into this error message:

E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 58min 27s). Updates for this repository will not be applied. How could that be? The difference of nearly an hour got me thinking about …

Read more

How to Update a Snap on Ubuntu

My Ubuntu machine nagged me with notifications like this one: Pending update of chromium snap: Close the app to avoid disruption (5 days left) That went on for days and I did multiple restarts of my machine where Ubuntu could have updated Chromium. Since I did not want to get a restart in the middle …

Read more

Azure and Terraform: What to Do if .Net 7 Is Unknown?

After we figured out the problem with the AlwaysOn default setting between Terraform and a Linux environment in Azure, we run into the next Problem: Error: expected site_config.0.application_stack.0.dotnet_version to be one of [3.1 5.0 6.0], got 7.0 Should you ever run into a problem like this, make sure that you update the Azure Resource Manager …

Read more

Azure & Terraform: The Tiny but Important Difference Between Windows & Linux

As part of the release build of our user group site, we use Terraform to create a BDD environment from scratch, run the acceptance tests and then destroy the environment to keep the cost down. As we recently switched the BDD environment from Windows to Linux, we run into this error: Error: creating Linux Web …

Read more

Upgrade Ubuntu From the Command Line

Every 6 months, Ubuntu releases a new version of its Linux distribution. Since I always forget the command to update my installation, I wrote it down this time. And I added two additional steps you should not miss. First, make a backup. If something goes wrong, you keep your data and may only need to …

Read more