Closed
Description
openedon Aug 26, 2024
Refs: #22145
Complexity: 4
The latest VS Code Insiders Debian package contains a debconf configuration in order for users to configure whether the package adds a reference to the packages.microsoft.com repository after being installed. As a result, users who prefer to have or already have a custom apt setup have the ability to stop VS Code from automatically adding the reference, which could otherwise interfere with their setup.
You can use an Ubuntu WSL instance for this TPI.
- Download the .deb from https://code.visualstudio.com/insiders/#linux.
- In a terminal, run
sudo dpkg -i <nameOfDeb>.deb
to install the Debian file. - If there is an alert about missing dependencies, run
sudo apt-get -f install
. - A dialog should pop up asking whether you want to add the Microsoft repository and signing key. Previously, the post-install script would automatically set those up for you.
- Select Yes.
- Confirm that
cat /etc/apt/sources.list.d/vscode.list
mentionshttps://packages.microsoft.com/repos/code
and thatfile /etc/apt/trusted.gpg.d/microsoft.gpg
runs sucessfully. - Run
sudo dpkg -i <nameOfDeb>.deb
again. - Confirm that the dialog does not show up again.
- Run
sudo dpkg -r code-insiders
to remove the package. - Confirm that
/etc/apt/sources.list.d/vscode.list
and/etc/apt/trusted.gpg.d/microsoft.gpg
don't exist. - Run
sudo dpkg -i <nameOfDeb>.deb
again. - Confirm that the dialog does not show up again.
- Confirm that
cat /etc/apt/sources.list.d/vscode.list
mentionshttps://packages.microsoft.com/repos/code
andfile /etc/apt/trusted.gpg.d/microsoft.gpg
runs sucessfully. - Run
sudo dpkg -P code-insiders
to purge the package. - Confirm that
/etc/apt/sources.list.d/vscode.list
and/etc/apt/trusted.gpg.d/microsoft.gpg
don't exist. - Run
sudo dpkg -i <nameOfDeb>.deb
to install the Debian package again. - A dialog should pop up asking whether you want to add the Microsoft repository and signing key.
- Select No.
- Confirm that
/etc/apt/sources.list.d/vscode.list
and/etc/apt/trusted.gpg.d/microsoft.gpg
don't exist. - Run
sudo dpkg -i <nameOfDeb>.deb
again. - Confirm that the dialog does not show up again.
- Confirm that
/etc/apt/sources.list.d/vscode.list
and/etc/apt/trusted.gpg.d/microsoft.gpg
don't exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment