Skip to content

Commit b3c0ab7

Browse files
authored
Use apt-get instead of apt for scripts (#2571)
apt --> apt-get
1 parent 560bf29 commit b3c0ab7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ LABEL bittensor.image.authors="bittensor.com" \
1212
ARG DEBIAN_FRONTEND=noninteractive
1313

1414
# Update the base image
15-
RUN apt update && apt upgrade -y
15+
RUN apt-get update && apt-get upgrade -y
1616
# Install bittensor
1717
## Install dependencies
18-
RUN apt install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
18+
RUN apt-get install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
1919
## Upgrade pip
2020
RUN pip3 install --upgrade pip
2121

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ mac_install_bittensor() {
175175
OS="$(uname)"
176176
if [[ "$OS" == "Linux" ]]; then
177177

178-
which -s apt
178+
which -s apt-get
179179
if [[ $? == 0 ]] ; then
180-
abort "This linux based install requires apt. To run with other distros (centos, arch, etc), you will need to manually install the requirements"
180+
abort "This linux based install requires apt-get. To run with other distros (centos, arch, etc), you will need to manually install the requirements"
181181
fi
182182
echo """
183183

0 commit comments

Comments
 (0)