microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.06k stars 29.23k forks source link

unable to remove apt package and not it stopped my ubuntu update #226698

Open xkeshav opened 2 months ago

xkeshav commented 2 months ago

Does this issue occur when all extensions are disabled?: Yes/No

getting this issue after adding something to auto update vs code

but now it gives error and unable to updat my ubunto

E: Conflicting values set for option Signed-By regarding source https://packages.microsoft.com/repos/code/ stable: /etc/apt/keyrings/packages.microsoft.gpg != 
E: The list of sources could not be read.

what could be done here?

xkeshav commented 2 months ago

I have tried to remove vscode.list

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

and then run

sudo apt upgrade
sudo apt-get update

after running the commands it ends with below warning

N: Missing Signed-By in the sources.list(5) entry for 'https://packages.microsoft.com/repos/code'

also here is output ls -l /etc/apt/sources.list.d/

-rw-r--r-- 1 root 1.3K Aug 25 18:26 danielrichter2007-ubuntu-grub-customizer-mantic.sources
-rw-r--r-- 1 root 1.3K Apr 26 10:07 danielrichter2007-ubuntu-grub-customizer-mantic.sources.distUpgrade
-rw-r--r-- 1 root 1.3K Aug 25 18:26 danielrichter2007-ubuntu-grub-customizer-mantic.sources.save
-rw-r--r-- 1 root  190 Aug 25 18:26 google-chrome.list
-rw-r--r-- 1 root  190 Aug 25 18:26 google-chrome.list.save
-rw-r--r-- 1 root  120 Aug 25 18:26 shiftkey-packages.list
-rw-r--r-- 1 root  120 Aug 25 18:26 shiftkey-packages.list.save
-rw-r--r-- 1 root  386 Aug 25 18:26 ubuntu.sources
-rw-r--r-- 1 root  386 Aug 25 18:26 ubuntu.sources.save
-rw-r--r-- 1 root  237 Apr 26 10:23 vscode.list.distUpgrade
-rw-r--r-- 1 root  134 Aug 25 18:26 vscode.list.save
-rw-r--r-- 1 root   91 Aug 25 18:26 vscode.sources
-rw-r--r-- 1 root  103 Aug 25 18:26 vscode.sources.save
-rw-r--r-- 1 root 1.8K Aug 25 18:26 yannubuntu-ubuntu-boot-repair-noble.sources
-rw-r--r-- 1 root 1.8K Aug 25 18:26 yannubuntu-ubuntu-boot-repair-noble.sources.save

what is wrong here? which thing I need to update/remove at all

also I want that vs code must auto update; even vs code settings have auto update -on but still show notification to download latest update.

more details can be found here on ask ubuntu