Bug: antigravity.postrm script incorrectly deletes official VS Code repository on update
Type: Bug
This is actually bug of Antigravity but it is influencing VS Code updates.
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): Someone should contact Google (report button in Antigravity is not working for me) and tell them to : 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 (e7fb5e96c0730b9deb70b33781f98e2f35975036, 2026-04-01T09:27:11Z) OS version: Linux x64 6.8.0-107-generic
Thanks for creating this issue! It looks like you may be using an old version of VS Code; the latest stable release is 1.115.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
Thanks for the heads up, but this repository's for VS Code.
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!