Debian Repository (read: Aptly)

Hey, thanks for the report and the enthusiasm, but good news: there’s already an official APT repo, so you don’t need to set anything up separately.

When you install the .deb from Cursor · Download, the postinst script automatically adds the apt source and installs the GPG key. After that, updates come via apt-get update && apt-get upgrade.

If you want to set it up manually, like for Docker or CI, here’s the correct way:

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://downloads.cursor.com/keys/anysphere.asc \
  | gpg --dearmor \
  | sudo tee /etc/apt/keyrings/cursor.gpg > /dev/null

echo 'deb [arch=amd64 signed-by=/etc/apt/keyrings/cursor.gpg] https://downloads.cursor.com/aptrepo stable main' \
  | sudo tee /etc/apt/sources.list.d/cursor.list

Then run sudo apt-get update && sudo apt-get install cursor, and update via apt-get upgrade.

So you can safely shut down your clone repo. If you hit GPG or hash errors during apt update on some distro, this thread has common fixes like duplicate repo files or an old key in trusted.gpg: Installing Cursor via APT .deb Package Breaks apt update. Let me know if anything doesn’t work.