apt target error after re-adding vs code repo

Solution 1:

deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable
main

and

/etc/apt/sources.list.d/vscode.list

remove on of them.

sudo rm /etc/apt/sources.list.d/vscode.list