Skip to content

VS Code Debian package can create duplicate repo enrollment during install. #311713

@mbearup

Description

@mbearup

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.116
  • OS Version: Ubuntu 24.04

Steps to Reproduce:

  1. Manually enroll in the vscode repo (https://packages.microsoft.com/repos/code/pool/main/c/code/)
  2. Install vscode. During install, vscode will create a repo enrollment of its own.
  3. If the filename from step Open Source VS Code #1 doesn't match the file created in step gulp-symdest does not preserve links on electron #2, then the client will have a duplicate enrollment in the repo. This breaks package management actions (apt update, apt install, etc) until the user manually fixes it.

Recommended behavior:
Update post-install script to detect the existing repo enrollment. If a repo enrollment already exists (under a different filename created by the admin) then disable "our" enrollment (from step #2) and let the owner's enrollment take precedence.

Reference the following issue for context. The issue references .list files (Ubuntu/Debian) but should look for similar behavior with rpm (Fedora/RHEL).
microsoft/linux-package-repositories#317

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebIssues related to the deb packagelinuxIssues with VS Code on LinuxpackagingIssues with the package config or distributionunreleasedPatch has not yet been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions