Skip to content

"Unable to locate package conda" on docker compose up #1315

Open
@jamesbraza

Description

LocalAI version:

https://github.com/mudler/LocalAI/tree/20d637e7b70cf0e15e6bf255ab2e4c080ddde2b0 (some commits above https://github.com/mudler/LocalAI/tree/v1.40.0)

Environment, CPU architecture, OS, and Version:

I am on a MacBook Pro with macOS Ventura 13.5.2:

> uname -a
Darwin N7L493PWK4 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 arm64

Describe the bug

 => CACHED [api requirements-core 10/11] WORKDIR /build                                                                                                                                                          0.0s
 => CACHED [api requirements-core 11/11] RUN test -n "arm64"     || (echo 'warn: missing $TARGETARCH, either set this `ARG` manually, or run using `docker buildkit`')                                           0.0s
 => ERROR [api requirements-extras 1/3] RUN curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg &&     install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda  1.7s
------
 > [api requirements-extras 1/3] RUN curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg &&     install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg &&     gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806 &&     echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list &&     echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | tee -a /etc/apt/sources.list.d/conda.list &&     apt-get update &&     apt-get install -y conda:
0.075   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0.075                                  Dload  Upload   Total   Spent    Left  Speed
100  1709  100  1709    0     0  13456      0 --:--:-- --:--:-- --:--:-- 13456
0.210 gpg: directory '/root/.gnupg' created
0.211 gpg: /root/.gnupg/trustdb.gpg: trustdb created
0.211 pub   rsa2048 2018-11-02 [SC]
0.211       3416 1F5B F5EB 1D4B FBBB  8F0A 8AEB 4F8B 29D8 2806
0.211 uid           [ unknown] Distribution Team <[email protected]>
0.211 sub   rsa2048 2018-11-02 [E]
0.211
0.213 deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main
0.364 Get:1 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable InRelease [3960 B]
0.436 Hit:2 http://deb.debian.org/debian bullseye InRelease
0.459 Hit:3 http://deb.debian.org/debian-security bullseye-security InRelease
0.459 Get:4 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable/main amd64 Packages [3499 B]
0.473 Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
0.738 Fetched 7459 B in 0s (15.2 kB/s)
0.738 Reading package lists...
1.171 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/conda.list:1 and /etc/apt/sources.list.d/conda.list:2
1.171 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/conda.list:1 and /etc/apt/sources.list.d/conda.list:2
1.171 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/conda.list:1 and /etc/apt/sources.list.d/conda.list:2
1.171 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/conda.list:1 and /etc/apt/sources.list.d/conda.list:2
1.182 Reading package lists...
1.541 Building dependency tree...
1.638 Reading state information...
1.699 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/conda.list:1 and /etc/apt/sources.list.d/conda.list:2
1.699 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/conda.list:1 and /etc/apt/sources.list.d/conda.list:2
1.699 E: Unable to locate package conda
------

To Reproduce

Run docker compose up

Expected behavior

I expect docker compose up to work

Logs

See above

Additional context

docker compose up works as of https://github.com/mudler/LocalAI/tree/v1.40.0

Metadata

Assignees

Labels

arm64bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions