列出vscode所有版本
$ apt-cache madison code
code | 1.76.1-1678294265 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
code | 1.76.0-1677667493 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
code | 1.75.1-1675893397 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
code | 1.75.0-1675266613 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
code | 1.74.3-1673284829 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
code | 1.74.2-1671533413 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
code | 1.74.1-1671015296 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
code | 1.74.0-1670260027 | http://packages.microsoft.com/repos/code stable/main amd64 Packages
安装vscode指定版本
$ sudo apt install code=1.76.1-1678294265
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
下列软件包将被【降级】:
code
升级了 0 个软件包,新安装了 0 个软件包,降级了 1 个软件包,要卸载 0 个软件包
标签:code,http,amd64,vscode,repos,stable,apt,ubuntu,main
From: https://www.cnblogs.com/BuzzWeek/p/17249886.html