How to install JOSM on Ubuntu in only 1 minute

Collected from the JOSM Ubuntu Download page

echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt $(lsb_release -sc) universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
# Create the directory for manually downloaded keys if it was not already created
sudo mkdir -p /usr/local/share/keyrings
# Download the key
wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor -o /usr/local/share/keyrings/josm-apt.gpg
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install josm

Now you can start JOSM by running

josm

in your terminal.