Skip to content

[Trixie] The repository 'https://packages.microsoft.com/repos/azure-cli trixie Release' does not have a Release file. #1485

@erwinkramer

Description

@erwinkramer

I'm using this devcontainer:

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
{
	"name": "Bank API dotnet10",
	"image": "mcr.microsoft.com/devcontainers/dotnet:dev-10.0-preview-trixie", // https://mcr.microsoft.com/en-us/artifact/mar/devcontainers/dotnet/tags
	"customizations": {
		"vscode": {
			"extensions": [
				"humao.rest-client",
				"ms-dotnettools.csdevkit",
				"ms-graph.kiota",
				"stoplight.spectral",
				"streetsidesoftware.code-spell-checker",
				"github.copilot"
			],
			"settings": {
				"terminal.integrated.shell.linux": "/bin/bash",
				"dotnetAcquisitionExtension.sharedExistingDotnetPath": "/usr/share/dotnet/dotnet"
			}
		}
	},
	"containerEnv": {
		"DOTNET_LAUNCH_PROFILE": "http",
		// Zscaler proxy support when reading custom rulesets over https in Spectral
		"NODE_EXTRA_CA_CERTS": "${containerWorkspaceFolder}/.certs/ZscalerRootCA.crt"
	},
	// Features to add to the dev container. More info: https://containers.dev/features.
	"features": {
		"ghcr.io/devcontainers/features/dotnet:2": {
			"version": "none", // already pre-installed with image
			"aspNetCoreRuntimeVersions": "8.0" // for: https://github.com/microsoft/vscode-dotnettools/issues/1094
		},
		"ghcr.io/devcontainers/features/azure-cli:1": {}, // for using the host az cli credentials
		"ghcr.io/devcontainers/features/docker-in-docker:2": {
			"moby": false
		} // for .NET Aspire resource emulation
	},
	"mounts": [
		// Bind the azure (credential) folder, requires an unencrypted token cache (assuming host is Windows).
		// On your host, run `az config set core.encrypt_token_cache=false` first, login again, then start the container
		// Please read: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3033 for more information
		"source=${localEnv:HOME}${localEnv:USERPROFILE}/.azure,target=/home/vscode/.azure,type=bind",
		// Bind the Visual Studio Token provider folder
		"source=${localEnv:HOME}${localEnv:LOCALAPPDATA}/.IdentityService,target=/home/vscode/.IdentityService,type=bind",
		// Bind ASP.NET user secrets folder (please see https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets#how-the-secret-manager-tool-works)
		"source=${localEnv:APPDATA}/Microsoft/UserSecrets,target=/home/vscode/.microsoft/usersecrets,type=bind"
	],
	// Remove absolutely every file on the .gitignore list, so we don't run into permission issues. 
	// Also see https://github.com/microsoft/vscode-remote-release/issues/9099#issuecomment-2541564211
	"postStartCommand": "git clean -xdf && dotnet dev-certs https --trust"
}

And getting this result when starting it up:

> [dev_containers_target_stage 6/7] RUN --mount=type=bind,from=dev_containers_f
eature_content_source,source=docker-in-docker_1,target=/tmp/build-features-src/d
ocker-in-docker_1     cp -ar /tmp/build-features-src/docker-in-docker_1 /tmp/dev
-container-features  && chmod -R 0755 /tmp/dev-container-features/docker-in-dock
er_1  && cd /tmp/dev-container-features/docker-in-docker_1  && chmod +x ./devcon
tainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tm
p/dev-container-features/docker-in-docker_1:
0.453 ==========================================================================
=
0.453 Feature       : Docker (Docker-in-Docker)
0.453 Description   : Create child containers *inside* a container, independent
from the host's docker instance. Installs Docker extension in the container alon
g with needed CLIs.
0.453 Id            : ghcr.io/devcontainers/features/docker-in-docker
0.453 Version       : 2.12.4
0.453 Documentation : https://github.com/devcontainers/features/tree/main/src/do
cker-in-docker
0.453 Options       :
0.453     VERSION="latest"
0.453     MOBY="false"
0.453     MOBYBUILDXVERSION="latest"
0.453     DOCKERDASHCOMPOSEVERSION="v2"
0.453     AZUREDNSAUTODETECTION="true"
0.453     DOCKERDEFAULTADDRESSPOOL=""
0.453     INSTALLDOCKERBUILDX="true"
0.453     INSTALLDOCKERCOMPOSESWITCH="true"
0.453     DISABLEIP6TABLES="false"
0.453 ==========================================================================
=
0.492 Distro codename  'trixie'  matched filter  'trixie bookworm buster bullsey
e bionic focal hirsute impish jammy noble'
0.517 find: '/var/lib/apt/lists/*': No such file or directory
0.519 Running apt-get update...
0.704 Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
0.725 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
0.737 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.
4 kB]
0.780 Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9669 kB]
0.780 Get:5 https://dl.yarnpkg.com/debian stable InRelease
0.839 Get:6 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB]
1.595 Get:7 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB]
2.835 Get:8 http://deb.debian.org/debian trixie-updates/main amd64 Packages [541
2 B]
2.836 Get:9 http://deb.debian.org/debian-security trixie-security/main amd64 Pac
kages [40.4 kB]
2.871 Ign:10 https://packages.microsoft.com/repos/azure-cli trixie InRelease
3.158 Err:11 https://packages.microsoft.com/repos/azure-cli trixie Release
3.158   404  Not Found [IP: 13.107.213.45 443]
3.458 Reading package lists...
4.109 W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Policy will rejec
t signature within a year, see --audit for details
4.109 E: The repository 'https://packages.microsoft.com/repos/azure-cli trixie R
elease' does not have a Release file.
4.128 ERROR: Feature "Docker (Docker-in-Docker)" (ghcr.io/devcontainers/features
/docker-in-docker) failed to install! Look at the documentation at https://githu
b.com/devcontainers/features/tree/main/src/docker-in-docker for help troubleshoo
ting this error.
------
ERROR: failed to build: failed to solve: process "/bin/sh -c cp -ar /tmp/build-f
eatures-src/docker-in-docker_1 /tmp/dev-container-features  && chmod -R 0755 /tm
p/dev-container-features/docker-in-docker_1  && cd /tmp/dev-container-features/d
ocker-in-docker_1  && chmod +x ./devcontainer-features-install.sh  && ./devconta
iner-features-install.sh  && rm -rf /tmp/dev-container-features/docker-in-docker
_1" did not complete successfully: exit code: 100
[10116 ms] Error: Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=C:\Users\erwin\AppData\Local\Temp\devcontainercli\container-features\0.80.1-1758298522378 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/dotnet:dev-10.0-preview-trixie --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f C:\Users\erwin\AppData\Local\Temp\devcontainercli\container-features\0.80.1-1758298522378\Dockerfile.extended -t vsc-bank-api-1216a54e25a2c2161357d2519fd56b749e8cf5e51547825ee5e3e5e8bf3a18b1-features c:\Users\erwin\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data\empty-folder
[10117 ms]     at w6 (c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js:467:1253)
[10117 ms]     at ax (c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js:467:997)
[10117 ms]     at async Y6 (c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js:484:3842)
[10117 ms]     at async BC (c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js:484:4957)
[10117 ms]     at async p7 (c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js:665:202)
[10117 ms]     at async d7 (c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js:664:14804)
[10117 ms]     at async c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js:484:1188
[10135 ms] Exit code 1
[10140 ms] Command failed: C:\Users\erwin\AppData\Local\Programs\Microsoft VS Code\Code.exe c:\Users\erwin\.vscode\extensions\ms-vscode-remote.remote-containers-0.427.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\erwin\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-b00589ac-f0bf-4762-9c55-4f1fd1f0f32b1758298518630 --workspace-folder c:\Users\erwin\GitHub\bank-api --workspace-mount-consistency cached --gpu-availability detect --id-label devcontainer.local_folder=c:\Users\erwin\GitHub\bank-api --id-label devcontainer.config_file=c:\Users\erwin\GitHub\bank-api\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\erwin\GitHub\bank-api\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-517f9f94-4837-44d3-96a3-c1e12d370dbf.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --include-configuration --include-merged-configuration
[10140 ms] Exit code 1

Seems like some incompatibility between ghcr.io/devcontainers/features/azure-cli and ghcr.io/devcontainers/features/docker-in-docker:2?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions