What have you tried:
- ran sudo rm /etc/apt/trusted.gpg.d/microsoft.gpg
- ran wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg > /dev/null
- stopped here: sudo nano /etc/apt/sources.list.d/vscode.list
I have no idea what to do next here, chatgpt said to:
- replace vscode.list with vscode.sources.
- the entire code inside vscode.sources should be:
Types: deb
URIs: Index of /repos/code/
Suites: stable
Components: main
Architectures: amd64
Signed-By: /usr/share/keyrings/microsoft.gpg
- And then next: Update your keyring if you haven’t already:
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg > /dev/null
- Update apt to verify if it worked:
sudo apt update
What is the error:
Warning : https://packages.microsoft.com/repos/code/dists/stable/InRelease: Policy will reject signature within a year, see --audit for details
- Audit: https://packages.microsoft.com/repos/code/dists/stable/InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is:
- Signing key on BC528686B50D79E339D3721CEB3E94ADBE1229CF is not bound:
- No binding signature at time 2025-06-02T06:22:15Z
- because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance
- because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
- No binding signature at time 2025-06-02T06:22:15Z
- Signing key on BC528686B50D79E339D3721CEB3E94ADBE1229CF is not bound:
What device is this on:
kali
description: Convertible
product: HP Pavilion x360 Convertible 15-br1xx (2DT04UA#ABA)
vendor: HP
width: 64 bits
capabilities: smbios-3.0.0 dmi-3.0.0 smp vsyscall32
configuration: administrator_password=disabled boot=normal chassis=convertible family=103C_5335KV HP Pavilion sku= uuid=