-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian images missing sources.list, which causes certain features to fail #760
Comments
Hi 👋 Thanks for reporting. @alexander-smolyakov Can you help prioritizing and investigating this issue? thanks! |
Hey @sr229, the root ➜ / $ apt-get update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8906 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [6408 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [62.6 kB]
Fetched 9226 kB in 3s (2929 kB/s)
Reading package lists... Done
root ➜ / $ apt-get -y install --no-install-recommends wget
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21.3-1+b2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root ➜ / $ It is worth mentioning that the images/src/base-debian/.devcontainer/devcontainer.json Lines 6 to 18 in f96bf4f
Could you please provide more information about your case? Also, it would be great if you could share the definition of your devcontainer. It could help to speed up the investigation process. |
Using this devcontainer config from our config, when we tried using it in codespaces, it fails once it reaches {
"name": "DevSample",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/ruby:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
},
"ghcr.io/devcontainers/features/common-utils:2": {
"nonFreePackages": true,
"upgradePackages": true
}
} |
Here is the creation log with the config
|
@sr229, thanks for providing info! |
Update on the issue: The issue is related to the {
"name": "DevSample",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"nonFreePackages": true
}
}
} The current feature implementation relies on the fact that the Related code: common-utils/main.sh |
PR has been merged |
looks like
base-debian
images are missing their/etc/apt/sources.list
, which causes features likeghcr.io/devcontainers/features/common-utils:2
to fail since they interact with APT for dependencies.The text was updated successfully, but these errors were encountered: