Skip to content
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

Installation fails using sh #12207

Closed
2 tasks done
muued opened this issue Jan 2, 2023 · 2 comments
Closed
2 tasks done

Installation fails using sh #12207

muued opened this issue Jan 2, 2023 · 2 comments
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type

Comments

@muued
Copy link

muued commented Jan 2, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

Installation of Miniconda3-py310_22.11.1-1-Linux-x86_64.sh using sh fails even though the install script claims it can be run using sh (Please run using "bash"/"dash"/"sh"/"zsh", but not "." or "source".) and the shebang points to sh (#!/bin/sh).

The installation instructions say bash should be used, so why not point to bash in the shebang, best in a portable way #!/usr/bin/env bash.

Otherwise do not use bash-specific features such as [[.

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

Command and script output (actual path replaced by ...):

sh .../Miniconda3-py310_22.11.1-1/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh -b -u -p .../Miniconda3-py310_22.11.1-1

PREFIX=.../Miniconda3-py310_22.11.1-1
Unpacking payload ...

Installing base environment...


Downloading and Extracting Packages


Downloading and Extracting Packages

Preparing transaction: done
Executing transaction: done
.../Miniconda3-py310_22.11.1-1/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh: 438: [[: not found

Installing * environment...

.../Miniconda3-py310_22.11.1-1/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh: 444: [[: not found

CondaFileIOError: '.../Miniconda3-py310_22.11.1-1/pkgs/envs/*/env.txt'. [Errno 2] No such file or directory: '.../Miniconda3-py310_22.11.1-1/pkgs/envs/*/env.txt'`
@muued muued added the type::bug describes erroneous operation, use severity::* to classify the type label Jan 2, 2023
@jaimergp
Copy link
Contributor

jaimergp commented Jan 4, 2023

Please see details in #10431.

The fixes were already submitted in conda/constructor#599. In the meantime, you can use bash to run it. Sorry!

@travishathaway travishathaway added pending::feedback indicates we are waiting on feedback from the user source::community catch-all for issues filed by community members labels Jan 23, 2023
@muued
Copy link
Author

muued commented Feb 14, 2023

Version 23.1.0-1 fixes this issue. Thank you

@muued muued closed this as completed Feb 14, 2023
@conda-bot conda-bot removed the pending::feedback indicates we are waiting on feedback from the user label Feb 14, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Feb 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::bug describes erroneous operation, use severity::* to classify the type
Projects
Archived in project
Development

No branches or pull requests

4 participants