Thank you for this. Installing on latest Ubuntu 23.10 I kept getting the error about libxcb dependency (when using the recommended install command from the Calibre website).
The suggested "sudo apt install libxcb-cursor0" worked, on the second run.
Then, "sudo -v && wget -nv -O-
https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin"
Thank you