Description:
The antigravity package contains maintenance scripts inherited from the upstream VS Code project that haven’t been fully renamed. This causes Antigravity to interfere with the installation of official Visual Studio Code on the same system.
The Problem:
In the /var/lib/dpkg/info/antigravity.postrm script (which runs during every update), there is a cleanup block that hard-deletes the official VS Code repository files instead of Antigravity’s own files.
Specifically, the (Antigravity) script runs:
1 # This incorrectly targets official VS Code files
2 rm -f /etc/apt/sources.list.d/vscode.sources
3 rm -f /usr/share/keyrings/microsoft.gpg
Consequences:
Every time Antigravity is updated via apt, it silently deletes the update source for the official VS Code application, breaking its ability to receive security updates until the user manually restores the repository.
Suggested Fix (for Antigravity):
Update the antigravity.postrm and antigravity.postinst scripts to ensure that any repository management logic refers to antigravity.sources and antigravity.gpg (or is disabled entirely) rather than targeting vscode.sources and microsoft.gpg.
VS Code version: Code 1.114.0 (e7fb5e9, 2026-04-01T09:27:11Z)
OS version: Linux x64 6.8.0-107-generic