Hi Koichi,

Could you provide us with the Dockerfile you're using? The issue seems
strange, and maybe it's something else that we are not seeing... Could
you try building the Docker image using the --no-cache option? Because I
think is something with the Docker cache (you can clean it entirely with
`docker system prune -a` , but be careful because it could remove
something you don't want to erase).

I create a docker image using this Dockerfile:

❯ cat Dockerfile
FROM ubuntu:24.04 
RUN apt-get update 
RUN apt-get install apache2 -y
RUN apt-get install apache2-utils -y
RUN apt-get clean 
EXPOSE 80
CMD [“apache2ctl”, “-D”, “FOREGROUND”]


and I built it with 

docker build -t apache_image:1.0 . 2>&1 | tee docker-building.log

I attached the entire log that I got. It went well,  even we can see in
the log:

❯ grep libcurl4t64 docker-building.log
#6 1.611   libbrotli1 libcurl4t64 libexpat1 libgdbm-compat4t64 libgdbm6t64
#6 1.688   libaprutil1t64 libbrotli1 libcurl4t64 libexpat1 libgdbm-compat4t64
#6 6.131 Get:25 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 
libcurl4t64 amd64 8.5.0-2ubuntu10.4 [341 kB]
#6 8.584 Selecting previously unselected package libcurl4t64:amd64.
#6 8.585 Preparing to unpack .../24-libcurl4t64_8.5.0-2ubuntu10.4_amd64.deb ...
#6 8.589 Unpacking libcurl4t64:amd64 (8.5.0-2ubuntu10.4) ...
#6 11.89 Setting up libcurl4t64:amd64 (8.5.0-2ubuntu10.4) ...



Last, I also tried to check your issue with an LXC VM but couldn't
reproduce it either (even further, libcurl4t64 is already installed for
me in the container).


** Attachment added: "Output of docker build"
   
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2084954/+attachment/5830791/+files/docker-building.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2084954

Title:
  apache2 cannot be installed with apt/apt-get

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2084954/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to