@[TOC](W: Duplicate sources.list entry http://packages.microsoft.com/repos/vscode/ stable/main amd64 Packages (/var/lib/apt/lists/packages.microsoft.com_repos_vscode_dists_stable_main_binary-amd64_Packages))
sudo apt-get update 报错
参考:https://blog.csdn.net/weixin_34087301/article/details/94498327
W: Duplicate sources.list entry http://packages.microsoft.com/repos/vscode/ stable/main amd64 Packages (/var/lib/apt/lists/packages.microsoft.com_repos_vscode_dists_stable_main_binary-amd64_Packages)
解决:
进入 /etc/apt/目录,将该目录下sources.list.d/删除
sudo rm -r /etc/apt/sources.list.d/
然后再重新更新:
sudo apt-get update