To install Yarn on Ubuntu 23.10, you have two options. You can either use npm or the Yarn repository. Here are the steps for both methods:
Using npm
Step 1 : To install Yarn using npm, start by checking your Node.js version:

Step 2 : If Node.js is installed, proceed to install Yarn using npm:

Step 3 : Verify the Yarn installation by checking its version:

Using Yarn Repository
Step 4 : Add the Yarn GPG key to your system:

Step 5 : Add the Yarn repository to your sources:

Step 6 : Update your package list:

Step 7 : Install Yarn:

Step 8 : Confirm the Yarn installation by checking its version:

Congratulations! You have successfully installed Yarn on Ubuntu 23.10 using either npm or the Yarn repository.