Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Users can opt out of apt repository #226675

Closed
3 tasks done
rzhao271 opened this issue Aug 26, 2024 · 1 comment
Closed
3 tasks done

Test: Users can opt out of apt repository #226675

rzhao271 opened this issue Aug 26, 2024 · 1 comment

Comments

@rzhao271
Copy link
Contributor

rzhao271 commented Aug 26, 2024

Refs: #22145

Complexity: 4

Create Issue


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.

  1. Download the .deb from https://code.visualstudio.com/insiders/#linux.
  2. In a terminal, run sudo dpkg -i <nameOfDeb>.deb to install the Debian file.
  3. If there is an alert about missing dependencies, run sudo apt-get -f install.
  4. 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.
  5. Select Yes.
  6. Confirm that cat /etc/apt/sources.list.d/vscode.list mentions https://packages.microsoft.com/repos/code and that file /etc/apt/trusted.gpg.d/microsoft.gpg runs sucessfully.
  7. Run sudo dpkg -i <nameOfDeb>.deb again.
  8. Confirm that the dialog does not show up again.
  9. Run sudo dpkg -r code-insiders to remove the package.
  10. Confirm that /etc/apt/sources.list.d/vscode.list and /etc/apt/trusted.gpg.d/microsoft.gpg don't exist.
  11. Run sudo dpkg -i <nameOfDeb>.deb again.
  12. Confirm that the dialog does not show up again.
  13. Confirm that cat /etc/apt/sources.list.d/vscode.list mentions https://packages.microsoft.com/repos/code and file /etc/apt/trusted.gpg.d/microsoft.gpg runs sucessfully.
  14. Run sudo dpkg -P code-insiders to purge the package.
  15. Confirm that /etc/apt/sources.list.d/vscode.list and /etc/apt/trusted.gpg.d/microsoft.gpg don't exist.
  16. Run sudo dpkg -i <nameOfDeb>.deb to install the Debian package again.
  17. A dialog should pop up asking whether you want to add the Microsoft repository and signing key.
  18. Select No.
  19. Confirm that /etc/apt/sources.list.d/vscode.list and /etc/apt/trusted.gpg.d/microsoft.gpg don't exist.
  20. Run sudo dpkg -i <nameOfDeb>.deb again.
  21. Confirm that the dialog does not show up again.
  22. Confirm that /etc/apt/sources.list.d/vscode.list and /etc/apt/trusted.gpg.d/microsoft.gpg don't exist.
@rzhao271 rzhao271 added this to the August 2024 milestone Aug 26, 2024
@rzhao271 rzhao271 self-assigned this Aug 26, 2024
@dbaeumer dbaeumer removed their assignment Aug 27, 2024
@aeschli aeschli removed their assignment Aug 27, 2024
@aeschli
Copy link
Contributor

aeschli commented Aug 27, 2024

All worked as described!

@rzhao271 rzhao271 removed their assignment Aug 27, 2024
@Tyriar Tyriar removed their assignment Aug 27, 2024
@Tyriar Tyriar closed this as completed Aug 27, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants
@dbaeumer @Tyriar @aeschli @rzhao271 and others