-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
install-git.sh unattended install fails #11215
Comments
Hi @Layer8Err , Thank you for bringing this issue to our attention. We are looking into this issue and will update you on this issue after investigating. |
Hi @Layer8Err - Could you please provide more information regarding this issue? |
While running as a user with root access on Ubuntu: cd /runner-images/images/ubuntu/scripts/build
sudo bash ./install-git.sh When the script reaches line 27 to run the following command: add-apt-repository --remove $GIT_REPO The following output is shown: root@lp-35539:/home/ubuntu# add-apt-repository --remove $GIT_REPO
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/git-core/ppa/ubuntu/
Suites: noble
Components: main
'
Description:
The most current stable version of Git for Ubuntu.
For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .
More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa
Removing repository.
Press [ENTER] to continue or Ctrl-c to cancel. The process hangs until user input is provided. Setting |
Unfortunately, we are not experiencing the anomaly presented in the issue and
I would request you to kindly analyze your build environment and more specifically why would |
Please run the bash script in an ubuntu shell to see the issue. Tests pass currently because |
Description
When running
install-git.sh
in a headless session, a prompt is shown that requires user interaction in order to continue.Platforms affected
Runner images affected
Image version and build link
Current main branch
Is it regression?
no
Expected behavior
Git setup should be unattended
Actual behavior
There is no
-y
flag ininstall-git.sh
to remove the source repo. This causes a prompt to be shown and the install does not continue.Repro steps
Run
images/ubuntu/scripts/build/install-git.sh
the script halts on line #27.Problematic line:
add-apt-repository --remove $GIT_REPO
Proposed solution:
add-apt-repository --remove $GIT_REPO -y
The text was updated successfully, but these errors were encountered: