Google Antigravity is distributed for Linux as a compressed .tar.gz archive rather than a .deb package. On Pop!_OS 26.04, Ubuntu, and Debian, installing it cleanly means extracting the files to /opt, linking the executable to your PATH, and creating a .desktop entry so it shows up in your application launcher.
1. Extract the .tar.gz Archive
Open a terminal (Ctrl + Alt + T), navigate to the folder where you downloaded the archive (typically ~/Downloads), and extract it:
cd ~/Downloadstar -xzf Antigravity.tar.gz(If your downloaded file has a slightly different name—such as Antigravity IDE.tar.gz or an ARM64 build—replace Antigravity.tar.gz with your exact filename.)
Run ls to check the name of the extracted folder (usually Antigravity-x64 or similar).
2. Move the Application to /opt/antigravity
Rather than running the app out of ~/Downloads, move it into /opt/antigravity so it lives in a permanent system directory:
sudo rm -rf /opt/antigravitysudo cp -r Antigravity-x64 /opt/antigravitysudo chmod +x /opt/antigravity/antigravity(Adjust Antigravity-x64 if your extracted directory uses a different name, and verify the executable name inside it—typically antigravity.)
Verify the Launch
Run the binary directly from your terminal to make sure it opens cleanly:
/opt/antigravity/antigravityClose the application before moving on to the next step.
3. Add Antigravity to Your PATH
Create a symbolic link in /usr/local/bin so you can launch Antigravity from anywhere in the terminal simply by typing antigravity:
sudo ln -sf /opt/antigravity/antigravity /usr/local/bin/antigravityVerify the Symlink
which antigravityThis should return /usr/local/bin/antigravity.
4. Create a Desktop Launcher
To add Antigravity to your application menu and dock on COSMIC, GNOME, or KDE, create a .desktop entry in ~/.local/share/applications:
mkdir -p ~/.local/share/applicationscat << 'EOF' > ~/.local/share/applications/antigravity.desktop[Desktop Entry]Name=AntigravityComment=Antigravity Desktop ApplicationExec=/opt/antigravity/antigravity %UTerminal=falseType=ApplicationCategories=Development;Utility;StartupNotify=trueEOFchmod +x ~/.local/share/applications/antigravity.desktopupdate-desktop-database ~/.local/share/applications(If there is an icon file inside /opt/antigravity, you can add an Icon=/opt/antigravity/path-to-icon.png line inside the [Desktop Entry] section.)
Open your application launcher and search for Antigravity to confirm it appears and launches properly.
Troubleshooting & Updates
AppArmor Sandbox Errors on Ubuntu 26.04 and Pop!_OS 26.04
Modern Ubuntu-based releases restrict unprivileged user namespaces via AppArmor, which can cause Electron and Chromium-based applications to fail at startup with a sandbox error. If /opt/antigravity/antigravity throws a sandbox error when run from the terminal, check your logs (dmesg or journalctl) and create a dedicated AppArmor profile for /opt/antigravity/antigravity rather than disabling user namespace restrictions system-wide.
Updating Antigravity
When a newer .tar.gz release comes out, close Antigravity, extract the new archive, and replace /opt/antigravity with the updated directory. Your /usr/local/bin/antigravity symlink and .desktop launcher will continue working without needing any changes.