两行命令实现 ubuntu 上自动更新 Vscode

看到一堆繁杂的方式,真是头疼,其实很简单

如果你的vscode 已经通过 .deb 安装过了。只需要输入两行代码即可更新已经安装的vscode

sudo apt-get update
sudo apt-get install code

运行结果如下

(base) zdx@Tuna:~$ sudo apt-get install code
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfprint-2-tod1 libllvm10
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  code
1 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.
Need to get 71.9 MB of archives.
After this operation, 8,216 kB of additional disk space will be used.
Get:1 http://packages.microsoft.com/repos/vscode stable/main amd64 code amd64 1.54.1-1614898113 [71.9 MB]
Fetched 71.9 MB in 20s (3,509 kB/s)                                            
(Reading database ... 285834 files and directories currently installed.)
Preparing to unpack .../code_1.54.1-1614898113_amd64.deb ...
Unpacking code (1.54.1-1614898113) over (1.52.1-1608136922) ...
Setting up code (1.54.1-1614898113) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...

版权声明:本文为zdx1996原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。