Install curl in case it’s missing on your system:

sudo apt -y install wget curl

Then download Draw.io package using the command below:

curl -s https://api.github.com/repos/jgraph/drawio-desktop/releases/latest | grep browser_download_url | grep '\.deb' | cut -d '"' -f 4 | wget -i -

Next, install Draw.io using the following command:

sudo apt -f install ./drawio-amd64-*.deb

Then Draw.io package should be installed.