Skip to content

Fix conda installation failure due to SHA1 signature rejection#1576

Merged
abdurriq merged 2 commits intodevcontainers:mainfrom
abdurriq:abdurriq/conda-sha1
Feb 19, 2026
Merged

Fix conda installation failure due to SHA1 signature rejection#1576
abdurriq merged 2 commits intodevcontainers:mainfrom
abdurriq:abdurriq/conda-sha1

Conversation

@abdurriq
Copy link
Copy Markdown
Contributor

Conda installation was failing due to SHA1 signature no longer being accepted. This change switches to downloading the deb directly.

Original PR (merged into another feature branch): #1565

…ntainers#1565)

* Initial plan

* Fix conda installation by switching from apt repository to direct Miniconda installer

Co-authored-by: abdurriq <[email protected]>

* Add error handling for Miniconda download and installation

Co-authored-by: abdurriq <[email protected]>

* Use APT::Key::GPGVCommand=1 option to bypass SHA1 signature check

Co-authored-by: abdurriq <[email protected]>

* Fix version to 1.2.1 for semantic versioning

* Revert to Miniconda installer approach - APT option caused gpgv errors

Co-authored-by: abdurriq <[email protected]>

* Use mktemp for secure temporary file creation

Co-authored-by: abdurriq <[email protected]>

* Replace Miniconda installer with direct .deb package download and apt install

Co-authored-by: abdurriq <[email protected]>

* Fix apt-get install syntax and improve error handling

Co-authored-by: abdurriq <[email protected]>

* Fix package filename - use architecture-specific deb and extract Filename from Packages

Co-authored-by: abdurriq <[email protected]>

* Update version to 1.2.3

Co-authored-by: abdurriq <[email protected]>

* Fix apt-get install path - remove ./ prefix for absolute paths

Co-authored-by: abdurriq <[email protected]>

* Fix version matching for specific conda versions - handle version suffixes

Co-authored-by: abdurriq <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: abdurriq <[email protected]>
@abdurriq abdurriq requested a review from a team as a code owner February 17, 2026 12:30
@abdurriq abdurriq changed the title Fix conda installation failure due to SHA1 signature rejection (#1565) Fix conda installation failure due to SHA1 signature rejection Feb 17, 2026
Comment thread src/conda/install.sh
@sam-byng
Copy link
Copy Markdown

Overall LGTM just a question

@abdurriq abdurriq merged commit 4ed1c6d into devcontainers:main Feb 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants