Ubuntuにおいて pip / pip3 のインストールに失敗する(インストールパッケージがみつからない)
※ Ubuntu 18.04LTS
1. 失敗例
| 
					 1 2 3 4 5  | 
						$ sudo apt install python3-pip Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package python3-pip  | 
					
2. インストールに失敗する原因
標準リポジトリ "main" に pip / pip3 のパッケージが含まれていない。
3. 対応策
検索対象リポジトリに pip / pip3 パッケージを含んでいる "universe" を追加する
| 
					 1 2 3 4 5  | 
						$ sudo add-apt-repository universe $ sudo apt update  $ sudo apt install python3-pip  |