Open JamesHutchisonCarta opened 2 years ago
It looks like the file name should be libssl-dev_1.1.1n-0+deb11u3_amd64.deb
If anyone is stuck, the workaround is to use "git": "system",
(which I suppose is the same as commenting out the line)
That error is actually coming from the OS when trying to install needed dependencies to build git. I am not seeing this repro with the default debian
image and mcr.microsoft.com/vscode/devcontainers/base
a x86_64 mac.
I've seen this happen with old images - Can you try using docker pull
to pull the latest version of your base image and retry?
Also, if you haven't already, restart Docker Desktop. I've seen clock-drift in the VM cause things like this to happen as well.
The message you see above is because the default image in Codespaces has already run this particular script, so that's why its skipped.
I can confirm doing a pull of the image fixes it.
I wonder if there's a way to change the logic so this doesn't happen?
Cleaning out the /var/lib/apt/lists/
folder in your base Dockerfile (rm -rf /var/lib/apt/lists/*
) will generally prevent it. We do that in our pre-built images.
Example: https://forums.linuxmint.com/viewtopic.php?t=132196
Steps to Reproduce:
Git version doesn't seem to matter. Using a known good version in another dev container it still errors.
This does not affect Codespaces. The reason seems to be that Codespaces masks the issue by skipping the install
Full error output: