[Bug 903996] Re: Recognize if apt isn't on a tty, don't wait for input
Scott Moser
smoser at ubuntu.com
Wed Dec 14 01:27:14 UTC 2011
For what its worth, The command *does* do what the user asked.
sudo apt-add-repository ppa:awstools-dev/awstools </dev/null
will just do what you wanted.
This was virtually required in order to have backwards compatibility to
scripts that used this.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/903996
Title:
Recognize if apt isn't on a tty, don't wait for input
Status in “software-properties” package in Ubuntu:
Invalid
Bug description:
If apt-get or apt-add-repository don't have a tty and are being run
non-interactively (e.g. through cloud-init), they will hang waiting
for confirmation if the user doesn't specify -y. Ideally they should
either fail and log that the user must specify -y, or succeed without
trying to grab the user's input.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/903996/+subscriptions
More information about the foundations-bugs
mailing list