Skip to content

Commit

Permalink
Use apt-get instead of apt for scripts (#2571)
Browse files Browse the repository at this point in the history
apt --> apt-get
  • Loading branch information
camfairchild authored Jan 9, 2025
1 parent 560bf29 commit b3c0ab7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ LABEL bittensor.image.authors="bittensor.com" \
ARG DEBIAN_FRONTEND=noninteractive

# Update the base image
RUN apt update && apt upgrade -y
RUN apt-get update && apt-get upgrade -y
# Install bittensor
## Install dependencies
RUN apt install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
RUN apt-get install -y curl sudo nano git htop netcat-openbsd wget unzip tmux apt-utils cmake build-essential
## Upgrade pip
RUN pip3 install --upgrade pip

Expand Down
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ mac_install_bittensor() {
OS="$(uname)"
if [[ "$OS" == "Linux" ]]; then

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

0 comments on commit b3c0ab7

Please sign in to comment.