Skip to content

Commit

Permalink
Use software-properties-common instead of python-software-properties. F…
Browse files Browse the repository at this point in the history
…ix torch#259.
  • Loading branch information
khiemdoan committed Sep 17, 2018
1 parent 0219027 commit 2fd9a43
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions install-deps
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,18 @@ elif [[ "$(uname)" == 'Linux' ]]; then
else
echo "Some portion of the update is failed"
fi
# python-software-properties is required for apt-add-repository
sudo apt-get install -y python-software-properties
# software-properties-common is required for apt-add-repository
sudo apt-get install -y software-properties-common
echo "==> Found Ubuntu version ${ubuntu_major_version}.xx"
if [[ $ubuntu_major_version -lt '12' ]]; then
echo '==> Ubuntu version not supported.'
exit 1
elif [[ $ubuntu_major_version -lt '14' ]]; then # 12.xx
sudo -E add-apt-repository -y ppa:chris-lea/zeromq
elif [[ $ubuntu_major_version -lt '15' ]]; then # 14.xx
sudo -E apt-get install -y software-properties-common
sudo -E add-apt-repository -y ppa:jtaylor/ipython
else
sudo apt-get install -y software-properties-common \
sudo apt-get install -y \
libgraphicsmagick1-dev libfftw3-dev sox libsox-dev \
libsox-fmt-all
fi
Expand Down Expand Up @@ -257,11 +256,11 @@ elif [[ "$(uname)" == 'Linux' ]]; then
else
echo "Some portion of the update is failed"
fi
# python-software-properties is required for apt-add-repository
sudo apt-get install -y python-software-properties
# software-properties-common is required for apt-add-repository
sudo apt-get install -y software-properties-common
if [[ $elementary_version == '0.3' ]]; then
echo '==> Found Ubuntu version 14.xx based elementary installation, installing dependencies'
sudo apt-get install -y software-properties-common \
sudo apt-get install -y \
libgraphicsmagick1-dev libfftw3-dev sox libsox-dev \
libsox-fmt-all

Expand Down

0 comments on commit 2fd9a43

Please sign in to comment.