Ubuntu 24.04 - Upgrading to Antigravity 2.0 and Antigravity IDE

Until Google provides an official Linux installer, here is a smooth single-command community solution:

INSTALLER_URL="https://opensnap.github.io/antigravity/install.sh"

curl -fsSL "$INSTALLER_URL" | sudo -E env ANTIGRAVITY_LINUX_INSTALLER_URL="$INSTALLER_URL" bash -s -- --all

Tested on Ubuntu 24.04 LTS.

Details and source: https://opensnap.github.io/antigravity/

Until Google fix this issue , you need to depend on tarball installation , I am sharing shell script for that , download anitgravity ide / 2.0 files from google , and run this script in same folder for **automatic installation

Here is script** → update_install_antigravity_ide_2.0.sh · GitHub

I do appreciate the initiative, but I am personally hesitant to rely on a bash script for installation. It seems a little fragile to me - if anything about the tarball changes in the future, it could break the bash script.

I am still optimistic that the Antigravity team will provide an update to the “apt” repository channel, or at the very least provide some documentation on how to install the tarball. In the meantime, the older 1.23.2 version is still working for me on Ubuntu, at least for the time being.

Hi all, OP here again. If anyone is still following this thread, I’ve decided to move on. It’s been three weeks with zero feedback from the Google team, either here or on X. I am bummed, because I have been working successfully with Antigravity for the past two months. But, I am personally not interested in manually managing updates via a tarball. Linux has a robust ecosystem surrounding package managers, so I will continue to pursue solutions favoring that approach.

Exactly nshiff.

The way Google treats its users/customers is completely UNACCEPTABLE.

I myself have also grown tired of it and am migrating to Cursor.

I,m facing the same issue with antigravity ugrade to it’s latest version on linux. I wish google solve this issue ASAP. in the mean time cursor and VS code are better option they have better support on linux they are good till google synronizes the apt repo with their update channel

Since your installation is under /opt/antigravity-ide and you have an update-antigravity-ide command installed, first check whether the vendor provides a built-in updater:

which update-antigravity-ide
update-antigravity-ide --help

If that command works, upgrade with:

sudo update-antigravity-ide

or:

update-antigravity-ide

If the built-in updater is unavailable, the common manual upgrade procedure is:

# Backup settings (optional)
cp -r ~/.config/"Antigravity IDE" ~/.config/"Antigravity IDE".bak

# Remove old installation
sudo rm -rf /opt/antigravity-ide

# Download latest release (replace URL with the official one)
wget <LATEST_RELEASE_URL> -O ~/Downloads/Antigravity-IDE.tar.gz

# https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/2.0.4-6381998290370560/linux-x64/Antigravity%20IDE.tar.gz

# Extract
tar -xzf ~/Downloads/Antigravity-IDE.tar.gz

# Install
sudo mv Antigravity-IDE /opt/antigravity-ide

What if I only want the agy-CLI? Can I just replace the “ide” with “cli” in the process?

After bumping my head into wall, getting the news of the Antigravity default is now Antigravity 2.0.. The previous Antigravity which we were using is promoted to Antigravity IDE.

But i was afraid of my data like chats, workspace data everything will get off, because the command that Antigravity IDE gives at the startup only import the settings and other related files but not the user profile data as I mentioned above.

So after going through the discussion and replies, I found a helpful article mentioned by @Satoshi_Yoshimura, and updated it to support other features mentioned above, and the code live at GitHub - a-sajjad72/antigravity-ide-installer: Community installer and updater for Google Antigravity IDE on Ubuntu and Debian-based Linux distributions. · GitHub .

Visit it and start it if it will be helpful to you. Share your feedback to improve and contribute it. I has announced it has community-maintained tool.

Thanks :heart:

This script:

  • Detects the current user automatically.
  • Installs/upgrades Antigravity IDE.
  • Fixes sandbox permissions.
  • Creates/updates the desktop shortcut.
  • Validates the desktop file.
  • Starts Antigravity IDE.

#!/usr/bin/env bash

set -Eeuo pipefail

APP_NAME=“Antigravity IDE”
ARCHIVE_NAME=“Antigravity IDE.tar.gz”

INSTALL_DIR=“$HOME/.local/share/antigravity-ide”
DESKTOP_FILE=“$HOME/.local/share/applications/antigravity.desktop”
TARBALL=“$HOME/Downloads/$ARCHIVE_NAME”

echo “================================================”
echo “Installing / Upgrading $APP_NAME”
echo “================================================”

if [[ ! -f “$TARBALL” ]]; then
echo “ERROR: Installer not found:”
echo “$TARBALL”
exit 1
fi

echo “[1/8] Stopping existing instances…”
pkill -f antigravity-ide || true

echo “[2/8] Creating temporary workspace…”
TMPDIR=$(mktemp -d)

cleanup() {
rm -rf “$TMPDIR”
}
trap cleanup EXIT

echo “[3/8] Extracting package…”
tar -xzf “$TARBALL” -C “$TMPDIR”

EXTRACTED_DIR=$(find “$TMPDIR” -mindepth 1 -maxdepth 1 -type d | head -n1)

if [[ -z “$EXTRACTED_DIR” ]]; then
echo “ERROR: Unable to locate extracted directory.”
exit 1
fi

echo “[4/8] Preparing installation directory…”
mkdir -p “$INSTALL_DIR”

rm -f “$INSTALL_DIR/chrome-sandbox”

echo “[5/8] Syncing files…”
rsync -a --delete
“$EXTRACTED_DIR/”
“$INSTALL_DIR/”

chmod +x “$INSTALL_DIR/antigravity-ide”

echo “[6/8] Configuring chrome sandbox…”
sudo chown root:root “$INSTALL_DIR/chrome-sandbox”
sudo chmod 4755 “$INSTALL_DIR/chrome-sandbox”

echo “[7/8] Creating desktop launcher…”

mkdir -p “$(dirname “$DESKTOP_FILE”)”

cat > “$DESKTOP_FILE” <<EOF
[Desktop Entry]
Name=Antigravity IDE
Comment=AI Powered IDE

GenericName=IDE
Exec=$INSTALL_DIR/antigravity-ide
Icon=$INSTALL_DIR/resources/app/resources/linux/code.png
Terminal=false
Type=Application
Categories=Development;IDE;

StartupNotify=true
StartupWMClass=antigravity-ide
MimeType=x-scheme-handler/antigravity;text/html;
EOF

chmod 644 “$DESKTOP_FILE”

if command -v desktop-file-validate >/dev/null 2>&1; then
desktop-file-validate “$DESKTOP_FILE”
fi

if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database “$HOME/.local/share/applications/” || true
fi

echo “[8/8] Verifying installation…”

stat -c ‘%A %U:%G %n’
“$INSTALL_DIR/antigravity-ide”
“$INSTALL_DIR/chrome-sandbox”

echo
echo “Starting Antigravity IDE…”

nohup “$INSTALL_DIR/antigravity-ide” >/dev/null 2>&1 &

echo
echo “================================================”
echo “Antigravity IDE installation completed.”
echo “================================================”


Save as:

install-antigravity.sh

Make executable:

chmod +x install-antigravity.sh

Run:

./install-antigravity.sh

Assumptions

The script expects the downloaded file to exist at:

~/Downloads/Antigravity IDE.tar.gz

@Firdoush_Aalam Thank you so much! I had to change all the open/close quotation marks (and comment out the pkill line) but after that your script works perfectly for me. Thank you :folded_hands:

Cleaned UP Gist (no unicode quote)

Same as @hute37 & @Firdoush_Aalam

here is an “antigravity-update.sh” script …

ugraded with agy cli, to always update with the latest one …

But, sad that google doesn’t provide a non broken repo for a simple apt update ;-(

Thanks! I also came across this repository, which may be helpful for anyone looking to install Antigravity IDE on Linux: GitHub - basantmandal/antigravity-linux-installer: One-command installer for Google Antigravity IDE on Linux · GitHub

A shame that Google stopped supporting the PPA properly. Funny how these “next-gen” products are using previous-gen software engineering practices… make the user manually do everything for the program to work

Guys, do not run any unknown installer scripts posted by random users. Most of them are malicious and dangerous.

Just learn how to download the official tar and extract it to your Linux system. The latest tar already has the permissions fixed and you just need to run antigravity-ide directly from the terminal.

Yesssss, I will give my own malicious script to run… after you’ve downloaded both the cli and IDE from Google Antigravity - Download run these dangerous sudo commands…

sudo rm -rf /opt/Antigravity*
sudo tar -xzvf "Antigravity.tar.gz" -C /opt
sudo tar -xzvf "Antigravity IDE.tar.gz" -C /opt
sudo mv "/opt/Antigravity IDE/" "/opt/Antigravity-IDE/"
sudo ln -sf "/opt/Antigravity/antigravity" /usr/local/bin/antigravity
sudo ln -sf "/opt/Antigravity-IDE/antigravity-ide" /usr/local/bin/antigravity-ide

Because for me the IDE was not working until you renamed it to be a path without spaces… I’ve also put it on antigravity + IDE updater, to be ran after downloading archives from https://antigravity.google/download · GitHub