【Problem record】In the Ubuntu 22.04 environment, how to solve the problem of always accessing the keyring when opening VS Code?

Table of contents

environment

problem situation

Solution


environment

  • VMware® Workstation 16 Pro (Version: 16.1.2 build-17966106)
  • ubuntu-22.04.2-desktop-amd64

problem situation

  • Under Ubuntu, every time you run VS Code, you are always prompted to enter the key password to unlock the credentials saved in the keyring (keyring). This makes me very annoyed, as follows:

solution _

To delete the unlock key and stop being prompted to unlock, follow the steps detailed below:

  • Open Terminal: First, open the Terminal application. You can find it in the Applications menu, or use a shortcut key (such as Ctrl+Alt+T) to open Terminal.
  • Navigate to the keyring storage directory: Run the following command to change the current directory to the keyring storage directory:
    • cd ~/.local/share/keyrings/
  • List available keyring files: Run the following command to list the keyring files currently stored in this directory:
    • ll
  • To delete a keyring file: Replace the following <keyring_file>with the actual name of the keyring file to delete, then run the following command:
    • sudo rm -f <keyring_file>
  • Restart VS Code: Close the existing instance of VS Code, then restart the application. After restarting, VS Code will not require the unlock key and will no longer prompt you for a password.
  • Note: Deleting a keyring file will permanently delete all credentials saved in that keyring. Make sure you have backed up the necessary credentials and that you are deleting the correct keyring file before deleting.

After a restart, VS Code still prompts you for a new key

  • The prompt information is as follows, just cancel it directly.

Guess you like

Origin blog.csdn.net/weixin_43729127/article/details/131869076