Hi,
recently I can’t created droplet by API with User Data. User Data is not executed. When I tried run commands manually I noticed that after
sudo apt-get update -y
sudo apt-get dist-upgrade -y
ubuntu shows me statement
A new version of /boot/grub/menu.lst is available, but the version installed
currently has been locally modified.
What would you like to do about menu.lst?
* install the package maintainer's version
* keep the local version currently installed
* show the differences between the versions
* show a side-by-side difference between the versions
* show a 3-way difference between available versions
* do a 3-way merge between available versions (experimental)
* start a new shell to examine the situation
<Ok>
How can I prevent to shows this statement or HowCan I click 'OK’in the User Data commands?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Adding the following to your user-data shell script should do the trick:
export DEBIAN_FRONTEND=noninteractive;
This sets the environment for apt to be noninteractive and will automatically accept the default on most things like this that the -y flag alone may not.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.