安装torch环境可以参考:
https://blog.csdn.net/zhangxin4832/article/details/79219192
https://blog.csdn.net/xiaozhun07/article/details/49865785
torch.ch/docs/getting-started.html
出现Package python-software-properties is not available错误可以参考:
https://askubuntu.com/questions/1087284/package-python-software-properties-is-not-available
为了避免上面网站不存在我复制下来了关键的回答部分
Open the "install-deps" file in Torch folder. Go to the line 178. Change sudo apt-get install -y python-software-properties
to sudo apt-get install -y software-properties-common