Updating the WineHQ repository on Ubuntu 22.10 after using the Ubuntu 22.04 WineHQ repository

Updating the WineHQ repository on Ubuntu 22.10 after using the Ubuntu 22.04 WineHQ repository

Hi everyone,

I should have written this post some time ago, since Ubuntu 22.10 has been released for a while now, and there is now an official WineHQ 22.10 Kinetic repository. Therefore, in this post, I will show the steps to update the WineHQ repository file from Ubuntu Jammy to Ubuntu Kinetic.

The process of updating the apt repository for WineHQ is very simple. We will rename the repository file from jammy to kinetic, use nano as our text editor and will do an apt update afterward to confirm that the change is valid. Let’s start:

First, for convenience, we will change the directory to /etc/apt/sources.list.d/ using the cd command:

cd /etc/apt/sources.list.d/ 
Changing the WineHQ repository from jammy to kinetic 1

Next, we will rename our winehq-jammy.sources file to winehq-kinetic.sources using the mv command:

sudo mv winehq-jammy.sources winehq-kinetic.sources
Changing the WineHQ repository from jammy to kinetic 2

Now, it’s time to edit the renamed file using nano:

sudo nano winehq-kinetic.sources
Changing the WineHQ repository from jammy to kinetic 3

Our file should look like this when it opens:

Changing the WineHQ repository from jammy to kinetic 4

Go to the end of the line that says Suites: jammy. Rename jammy with kinetic:

Changing the WineHQ repository from jammy to kinetic 5

Now, you’re ready to save the file. Press CTRL + O, followed by the Enter key to save the file:

Press CTRL + X to exit. Now, type sudo apt update to confirm that the change is taking effect.

Changing the WineHQ repository from jammy to kinetic 8

You should not see any errors when fetching the data from the repository:

Changing the WineHQ repository from jammy to kinetic 9

And that’s it. You can now install or update Wine as usual.