1

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

enter image description here

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.

enter image description here

But when i check in the VS Code about I see.

enter image description here

I needed to upgrade my VS Code because some extensions doesnt activate. The reason I think is because VS Code is not latest.

enter image description here

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-code

martin@martin:~$ snap list | grep -i code
martin@martin:~$ flatpak list | grep -i code
martin@martin:~$ 
5
  • I have added the out put they look the same like that @N0rbert they say code is already the newest version (1.45.1-1589445302). – guradio Jun 3 '20 at 14:34
  • @N0rbert il get other output – guradio Jun 3 '20 at 14:52
  • i tried searching it in ubunt software its not there @N0rbert – guradio Jun 3 '20 at 15:01
  • I'm again asking about the output of exact which code command. Also add umake --list-installed , snap list | grep -i code , flatpak list | grep -i code . – N0rbert Jun 3 '20 at 15:33
  • @N0rbert i added them result. I added an image of command and their result also – guradio Jun 3 '20 at 16:28
1

If you plan to stay with deb-packaged version - remove the umake version:

umake --remove ide visual-studio-code

And 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 .

4
  • i will try this one out – guradio Jun 4 '20 at 0:01
  • Version: 1.45.1 works perfectly. My wish is to have a brain like yours. Thank you – guradio Jun 4 '20 at 0:15
  • one last thing can you explain why the way i did it is not working and why this one works? – guradio Jun 4 '20 at 0:18
  • 2
    You have had two VSCodes installed is same time - one from umake and one from deb-package. Their locations were declared in $PATH variable with priority of umake's path. – N0rbert Jun 4 '20 at 8:13
0

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 https://packages.microsoft.com/keys/microsoft.asc | 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] https://packages.microsoft.com/repos/vscode 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
  • why is it when i search it on ubuntu softwares its not there – guradio Jun 3 '20 at 15:03
  • Because it is not in ubuntu repository. – KK Patel Jun 3 '20 at 15:04
  • tried your solution still when i look at the about in the IDE itself its still 1.25 – guradio Jun 3 '20 at 15:05
  • i tried to purge it and reinstall earlier but I still get the same IDE I mean the folder I last opened is still there. Its like purge failed. – guradio Jun 3 '20 at 15:06
  • Please add steps you performed and error you got in question. – KK Patel Jun 3 '20 at 15:22
0

Install the Visual Studio Code snap package from Ubuntu Software, and it will be updated automatically.

sudo snap install code --classic

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.