torchをインストールしようとしたら以下のエラーが発生してインストールできなかった時の対処法
E: Package ‘python-software-properties’ has no installation candidate
もしくは
E: パッケージ ‘python-software-properties’ にはインストール候補がありません
kuwa@VMUbuntu:~/torch$ cd ~/torch; bash install-deps; パッケージ python-software-properties は使用できませんが、別のパッケージから参照されます。 これは、パッケージが欠落しているか、廃止されたか、または別のソース からのみ利用可能であることを意味します。 しかし、以下のパッケージが置き換えます: software-properties-common E: パッケージ 'python-software-properties' にはインストール候補がありません
install-depsを修正
vi ~/torch/install-deps
以下の行を探して下記の通り変更する
sudo apt-get install -y python-software-properties
↓
sudo apt-get install -y software-properties-common
実際の変更画面

再度torchのインストールを試みます。
cd ~/torch; bash install-deps;

上手くインストールの準備ができたようです。
Torchのインストールを続行します。
./install.sh
無事ビルドが完了し、インストールが完了しました。

コメント