#author("2021-03-05T16:56:44+09:00","","")
#author("2021-03-06T16:44:39+09:00","","")
#nofollow
#norelated
総数:&counter(total); 今日:&counter(today); 昨日:&counter(yesterday);

* もくじ [#m7a58b2b]

#contents

&size(22){&color(blue){Installing Visual Studio Code with apt};};&br;

参考url: [[How to Install Visual Studio Code on Ubuntu 20.04>https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-20-04/]]&br;

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

*Installing Visual Studio Code with apt [#v7e3e703]

**01 [#e472e7c2]
Update the packages index and install the dependencies by running the following command as a user with sudo privileges :&br;

 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 [#n01791d2]
***Import the Microsoft GPG key using the following wget command :&br; [#cd071e85]

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

 OK

***And enable the Visual Studio Code repository by typing:&br; [#t538d20b]

 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 [#s32d8705]
Once the apt repository is enabled , install the Visual Studio Code package:&br;

 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 [#leda743a]
In the Activities search bar (画面左上) type “Visual Studio Code” and click on the icon to launch the application.&br;
&br;
You can now start installing extensions and configuring VS Code according to your preferences.&br;

* ''次は'' [#m28dd887]
-php のインストール[[installing php on ubuntu desktop 20.04.2]]へ
-php のインストール[[setting up visual studio code for php ubuntu desktop 20.04.2]]へ

トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS