Why "cloud-init" is kept back in a new droplet with Ubuntu 16.04 while doing an "apt upgrade"?

I have checked with “apt-mark hold cloud-init” and got the following mesage: “cloud-init was already set on hold.”

Is it safe to unhold it and upgrade it?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Thank you for the answers.

There is another method to update it, wich is:

apt-mark unhold cloud-init

in the first place to unhold the holded package, and then

apt upgrade

My questions are:

  1. Why it was put on hold?
  2. Is it there a compatibility issue with DO so is kept on hold as they need this package for the control panels?

I would not recomend apt dist-upgrade as it involves updating other staff from vesion to version.

Straight from DO support: “We pin cloud-init to a specified version in order to prevent upgrades from affecting the configuration options within your Droplet. While upgrades to cloud-init should not affect your Droplet, there have been certain situations where changes to the system had been performed due to cloud-init upgrades.”

Based on that, I would say that it “should” be safe to unpin and upgrade it, but why take the chance?

I had the same problem and it seems like a strange situation to me. Anyway, I fixed this by installing the cloud-init package: sudo apt install cloud-init.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel