Hello,
I’ve installed Totur on the internal Ubuntu 24.04.2 LTS server. The Docker version is 28.1.1, and the Tutor version is 19.0.2. When I run “tutor images build openedx --no-cache” command, I face the error below.
I’ve used different solutions such as using different mirrors in “DockerFile”. I have read previous topics, but I couldn’t find the proper solution.
Thank you in advance.
note:I removed “http” from the links here, because I can’t put more than 5 links in the post.
93.20 : Failed to fetch ://security.ubuntu.com/ubuntu/pool/main/g/gcc-11/libasan6_11.4.0-1ubuntu1%7e22.04_amd64.deb 403 Forbidden [IP: 91.189.91.81 80]
--------------------
ERROR: failed to solve: process "/bin/sh -c apt update && apt install -y libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git" did not complete successfully: exit code: 100
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx:19.0.2-indigo --no-cache --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx:19.0.2-indigo-cache /home/mohammad/.local/share/tutor/env/build/openedx
Related part in DockerFile:
# syntax=docker/dockerfile:1
###### Minimal image with base system requirements for most stages
FROM docker.io/ubuntu:22.04 AS minimal
LABEL maintainer="Overhang.io <contact@overhang.io>"
ENV DEBIAN_FRONTEND=noninteractive
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
apt-get install -y --no-install-recommends curl git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV LC_ALL=C.UTF-8
Content of /etc/apt/sources.list.d/ubuntu.sources file:
Types: deb
URIs: ://archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: ://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Although the base tutor image runs on Ubuntu 22.04 there’s no reason that your host system being Ubuntu 24.04 shouldn’t work, since docker pulls the 22.04 image to run the platform. I’ve tested on my local machine using the ubuntu-24.04.2-live-server-amd64.iso and confirmed that I can get tutor working without any errors.
Are you by any chance installing this behind a corporate network with a proxy or other firewall restrictions? If so might be worth discussing with your network administrator if they can relax restrictions on your server’s IP, if that’s actually what’s happening…
Thanks for your replying. I forgot to say that it was installed on the internal server. I run “resolvectl status” command and I got:
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (ens33)
Current Scopes: DNS
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.0.0.8
DNS Servers: 10.0.0.8 10.0.0.45
DNS Domain: x.y.com
Do you have any suggestions about “/etc/docker/daemon.json” file? @joel.edwards
Hi @Alirezaei
In my case I did nothing to docker daemon (in fact /etc/docker/daemon.json does not exist in my system)
In my opinion, the fact that your system can resolve security.ubuntu.com to go to 91.189.91.81 implies that you don’t have a problem with DNS so resolvectl status isn’t going to provide anything too helpful.
The error you originally posted seems to indicate the problem is arising at this line (21-23) in the dockerfile:
But I see that your dockerfile is different or you’ve done some manual modifications there. Honestly I’m tempted to say you should try delete your tutor installation and start over from the beginning
In any case, before you delete it all and start over, lets see to make sure if you are able to read that failing/forbidden URL, try this: curl -i http://security.ubuntu.com/ubuntu/pool/main/g/gcc-11/libasan6_11.4.0-1ubuntu1%7e22.04_amd64.deb
If you get a response similar to this then it means you can communicate properly with the remote server, if you get any other type of response then you should consult your internal/company network administrator.
HTTP/1.1 200 OK
Date: Fri, 30 May 2025 09:45:12 GMT
Server: Apache/2.4.52 (Ubuntu)
Last-Modified: Thu, 29 Jun 2023 14:06:44 GMT
ETag: "22d14c-5ff4535d481f6"
Accept-Ranges: bytes
Content-Length: 2281804
Cache-Control: max-age=86400
Content-Type: application/vnd.debian.binary-package
My suggestion if/when reinstalling would be to keep as much as possible as defaults: The only change you should make to your local system’s APT sources is to add Docker’s official APT repository before installing docker with sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
and then remember to follow the post-installation setup instructions so that your user can properly access the docker daemon.
Thanks again. Yes, I reinstalled Tutor. Also, the result of running curl -i http://security.ubuntu.com/ubuntu/pool/main/g/gcc-11/libasan6_11.4.0-1ubuntu1%7e22.04_amd64.deb is: