You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.96.4
OS Version: Debian sid
Steps to Reproduce:
VS Code's APT sources.list has two problems. Now it is:
~> cat /etc/apt/sources.list.d/vscode.list
### THIS FILE IS AUTOMATICALLY CONFIGURED #### You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main
/etc/apt/trusted.gpg is no longer used as a source of signers.
Sources without Signed-By are fully deprecated, and therefore /etc/apt/trusted.gpg.d is deprecated.
This has led to warnings when running apt update, such as:
Notice: Missing Signed-By in the sources.list(5) entry for 'https://packages.microsoft.com/repos/edge'
Notice: Missing Signed-By in the sources.list(5) entry for 'https://packages.microsoft.com/repos/code'
Notice: Consider migrating all sources.list(5) entries to the deb822 .sources format
Notice: The deb822 .sources format supports both embedded as well as external OpenPGP keys
Notice: See apt-secure(7) for best practices in configuring repository signing.
Problem 2: Unnecessary architectures
The current configuration includes three architectures: amd64, arm64, and armhf. This results in downloading unnecessary index files for architectures that are not in use, wasting bandwidth and server resources. Should these be removed?
Solution
According to the Debian Wiki, the microsoft.gpg key should be moved from /etc/apt/trusted.gpg.d to /usr/share/keyrings, and then you can choose one of the following two solutions:
Update /etc/apt/sources.list.d/vscode.list to the following:
deb [signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/code stable main
Completely remove /etc/apt/sources.list.d/vscode.list and switch to the DEB822 format. For more information on the DEB822 format, refer to source.list(5). The DEB822 format also allows embedding the public key within the source list file.
The text was updated successfully, but these errors were encountered:
Also apt update is going to propose to modernize it with apt modernize-sources. So I don't know if it is better to adopt directly the new source format.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
VS Code's APT sources.list has two problems. Now it is:
Problem 1: Missing
signed-by
fieldThe recent APT 2.9.24 update introduced a change:
This has led to warnings when running
apt update
, such as:Problem 2: Unnecessary architectures
The current configuration includes three architectures:
amd64
,arm64
, andarmhf
. This results in downloading unnecessary index files for architectures that are not in use, wasting bandwidth and server resources. Should these be removed?Solution
According to the Debian Wiki, the
microsoft.gpg
key should be moved from/etc/apt/trusted.gpg.d
to/usr/share/keyrings
, and then you can choose one of the following two solutions:/etc/apt/sources.list.d/vscode.list
to the following:/etc/apt/sources.list.d/vscode.list
and switch to the DEB822 format. For more information on the DEB822 format, refer tosource.list(5)
. The DEB822 format also allows embedding the public key within the source list file.The text was updated successfully, but these errors were encountered: