総数:12 今日:1 昨日:0

もくじ

Installing Visual Studio Code with apt

参考url: How to Install Visual Studio Code on Ubuntu 20.04

Visual Studio Code is available from the official Microsoft Apt repositories. To install it, follow the steps below:

Installing Visual Studio Code with apt

01

Update the packages index and install the dependencies by running the following command as a user with sudo privileges :

sudo apt update
sudo apt install software-properties-common apt-transport-https wget
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
wget はすでに最新バージョン (1.20.3-1ubuntu1) です。
wget は手動でインストールしたと設定されました。
software-properties-common はすでに最新バージョン (0.98.9.4) です。
software-properties-common は手動でインストールしたと設定されました。
以下のパッケージが新たにインストールされます:
  apt-transport-https
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 3 個。
1,704 B のアーカイブを取得する必要があります。
この操作後に追加で 161 kB のディスク容量が消費されます。
続行しますか? [Y/n] Y
取得:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.4 [1,704 B]
1,704 B を 1秒 で取得しました (3,388 B/s)       
以前に未選択のパッケージ apt-transport-https を選択しています。
(データベースを読み込んでいます ... 現在 208117 個のファイルとディレクトリがインストールされています。)
.../apt-transport-https_2.0.4_all.deb を展開する準備をしています ...
apt-transport-https (2.0.4) を展開しています...
apt-transport-https (2.0.4) を設定しています ...

02

Import the Microsoft GPG key using the following wget command :

wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
OK

And enable the Visual Studio Code repository by typing:

sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
ヒット:1 http://jp.archive.ubuntu.com/ubuntu focal InRelease
ヒット:2 http://jp.archive.ubuntu.com/ubuntu focal-updates InRelease           
ヒット:3 http://jp.archive.ubuntu.com/ubuntu focal-backports InRelease                             
取得:4 https://packages.microsoft.com/repos/vscode stable InRelease [3,958 B]                                                  
取得:5 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages [229 kB]                                         
ヒット:6 http://security.ubuntu.com/ubuntu focal-security InRelease
233 kB を 1秒 で取得しました (227 kB/s)                        
パッケージリストを読み込んでいます... 完了

03

Once the apt repository is enabled , install the Visual Studio Code package:

sudo apt install code
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが新たにインストールされます:
  code
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 3 個。
71.9 MB のアーカイブを取得する必要があります。
この操作後に追加で 281 MB のディスク容量が消費されます。
取得:1 https://packages.microsoft.com/repos/vscode stable/main amd64 code amd64 1.54.1-1614898113 [71.9 MB]
71.9 MB を 11秒 で取得しました (6,834 kB/s)                                                                                                        
以前に未選択のパッケージ code を選択しています。
(データベースを読み込んでいます ... 現在 208121 個のファイルとディレクトリがインストールされています。)
.../code_1.54.1-1614898113_amd64.deb を展開する準備をしています ...
code (1.54.1-1614898113) を展開しています...
code (1.54.1-1614898113) を設定しています ...
mime-support (3.64ubuntu1) のトリガを処理しています ...
gnome-menus (3.36.0-1ubuntu1) のトリガを処理しています ...
shared-mime-info (1.15-1) のトリガを処理しています ...
desktop-file-utils (0.24-1ubuntu3) のトリガを処理しています ...

Starting Visual Studio Code

In the Activities search bar (画面左上) type “Visual Studio Code” and click on the icon to launch the application.

You can now start installing extensions and configuring VS Code according to your preferences.

次は


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS