Skip to content

Commit 2fd9a43

Browse files
committed
Use software-properties-common instead of python-software-properties. Fix torch#259.
1 parent 0219027 commit 2fd9a43

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

install-deps

+6-7
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,18 @@ elif [[ "$(uname)" == 'Linux' ]]; then
174174
else
175175
echo "Some portion of the update is failed"
176176
fi
177-
# python-software-properties is required for apt-add-repository
178-
sudo apt-get install -y python-software-properties
177+
# software-properties-common is required for apt-add-repository
178+
sudo apt-get install -y software-properties-common
179179
echo "==> Found Ubuntu version ${ubuntu_major_version}.xx"
180180
if [[ $ubuntu_major_version -lt '12' ]]; then
181181
echo '==> Ubuntu version not supported.'
182182
exit 1
183183
elif [[ $ubuntu_major_version -lt '14' ]]; then # 12.xx
184184
sudo -E add-apt-repository -y ppa:chris-lea/zeromq
185185
elif [[ $ubuntu_major_version -lt '15' ]]; then # 14.xx
186-
sudo -E apt-get install -y software-properties-common
187186
sudo -E add-apt-repository -y ppa:jtaylor/ipython
188187
else
189-
sudo apt-get install -y software-properties-common \
188+
sudo apt-get install -y \
190189
libgraphicsmagick1-dev libfftw3-dev sox libsox-dev \
191190
libsox-fmt-all
192191
fi
@@ -257,11 +256,11 @@ elif [[ "$(uname)" == 'Linux' ]]; then
257256
else
258257
echo "Some portion of the update is failed"
259258
fi
260-
# python-software-properties is required for apt-add-repository
261-
sudo apt-get install -y python-software-properties
259+
# software-properties-common is required for apt-add-repository
260+
sudo apt-get install -y software-properties-common
262261
if [[ $elementary_version == '0.3' ]]; then
263262
echo '==> Found Ubuntu version 14.xx based elementary installation, installing dependencies'
264-
sudo apt-get install -y software-properties-common \
263+
sudo apt-get install -y \
265264
libgraphicsmagick1-dev libfftw3-dev sox libsox-dev \
266265
libsox-fmt-all
267266

0 commit comments

Comments
 (0)