I want to update my VS Code so tried multiple option in doing so all result in something like this
sudo dpkg -i code_1.45.1-1589445302_amd64.deb
martin@martin:~/Downloads$ sudo apt install code Reading package lists... Done Building dependency tree Reading state information... Done code is already the newest version (1.45.1-1589445302). 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
But when i check in the VS Code about I see.
I needed to upgrade my VS Code because some extensions doesnt activate. The reason I think is because VS Code is not latest.
No matter how many times I reload them they dont activate
UPDATE:
martin@martin:~$ umake --list-installed visual-studio-code: Visual Studio focused on modern web and cloud path: /home/martin/.local/share/umake/ide/visual-studio-codemartin@martin:~$ snap list | grep -i codemartin@martin:~$ flatpak list | grep -i codemartin@martin:~$5
3 Answers
If you plan to stay with deb-packaged version - remove the umake version:
umake --remove ide visual-studio-codeAnd use deb-package instead.
But personally I would recommend to use Visual Studio Code from umake ide visual-studio-code and remove it from APT with sudo apt-get remove code .
If you had installed VS Code from downloading .deb package earlier, it will not update unless you have added vscode repository.
Add VS Code repository by executing following commands in terminal.
curl | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] stable main" > /etc/apt/sources.list.d/vscode.list'Update packages list.
sudo apt update It will show you, incase any new versions available of vscode. You can upgrade to latest available vscode.
sudo apt install code 6 Install the Visual Studio Code snap package from Ubuntu Software, and it will be updated automatically.
sudo snap install code --classic