Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CondaToSNonInteractiveError: Terms of Service have not been accepted

Tags:

docker

conda

I'm building a docker image and part of it is grabbing this repo:

https://github.com/bytedance/LatentSync/tree/main

And part of the setup is running the shell script to set things up:

#!/bin/bash

# Create a new conda environment
conda create -y -n latentsync python=3.10.13
conda activate latentsync

# Install ffmpeg
conda install -y -c conda-forge ffmpeg

# Python dependencies
pip install -r requirements.txt

# OpenCV dependencies
sudo apt -y install libgl1

# Download the checkpoints required for inference from HuggingFace
huggingface-cli download ByteDance/LatentSync-1.6 whisper/tiny.pt --local-dir checkpoints
huggingface-cli download ByteDance/LatentSync-1.6 latentsync_unet.pt --local-dir checkpoints

In the logs, I see an error:

CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels. Please accept or remove them before proceeding:
• https://repo.anaconda.com/pkgs/main
• https://repo.anaconda.com/pkgs/r
To accept a channel's Terms of Service, run the following and replace `CHANNEL` with the channel name/URL:
‣ conda tos accept --override-channels --channel CHANNEL
To remove channels with rejected Terms of Service, run the following and replace `CHANNEL` with the channel name/URL:
‣ conda config --remove channels CHANNEL
CondaError: Run 'conda init' before 'conda activate'
CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels. Please accept or remove them before proceeding:
• https://repo.anaconda.com/pkgs/main
• https://repo.anaconda.com/pkgs/r
To accept a channel's Terms of Service, run the following and replace `CHANNEL` with the channel name/URL:
‣ conda tos accept --override-channels --channel CHANNEL
To remove channels with rejected Terms of Service, run the following and replace `CHANNEL` with the channel name/URL:
‣ conda config --remove channels CHANNEL

But the conda instructions are in the setup file, which I can't change. How can I fix this?

like image 722
easythrees Avatar asked Feb 03 '26 05:02

easythrees


2 Answers

In your Dockerfile, you can accept the Terms of Service of the channel by doing the following:

RUN conda tos accept --override-channels --channel CHANNEL

You'll need to replace the CHANNEL piece with the URL of the channel. In your example, that would look like this:

RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main \
 && conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

You'll need to do this before you run setup.sh in your Dockerfile.

like image 113
Nick ODell Avatar answered Feb 04 '26 20:02

Nick ODell


New Terms of Service | Anaconda were recently introduced took effect on July 15, 2025.

Before accepting you should read the ToS to ensure still within free usage if a for-profit organisation:

You must pay for a ‘Business Plan’ Subscription from Anaconda if you are using the Platform on behalf of a for-profit organization with more than 200 total employees...

Accept Terms

They have docs on managing ToS on the cli, so can manually check the ToS text with:

conda tos view

then accept all channels with:

conda tos accept

Alternative Community Channel

The default conda channel is defaults (anaconda.com) but if all the dependencies are available in the community conda-forge channel you can replace/remove usage of default conda channel.

Transitioning from defaults | conda-forge

like image 21
Cas Avatar answered Feb 04 '26 22:02

Cas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!