# How to setup automatic updates for Ubuntu running Discourse?

**URL:** https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501
**Category:** Self-hosting
**Created:** [5월 28, 2017, 12:02오후 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501 "2017-05-28T12:02:40Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mhwebee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mhwebee/32/120566_2.png) [@mhwebee](https://meta.discourse.org/u/mhwebee)
#### Post date: [5월 28, 2017, 12:02오후 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/1 "2017-05-28T12:02:40Z")

</div>

DigitalOcean VM - In Ubuntu (16.04.2) I used the “dpkg-reconfigure -plow unattended-upgrades” command, but I get this return “update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults”

1- How do I fix this issue so updates install automatically?  
2- How do I install updates manually for Ubuntu manually when automatic updates aren’t working or just to make sure everything is up to date?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [5월 28, 2017, 1:20오후 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/2 "2017-05-28T13:20:00Z")

</div>

That warning does not mean that automatic updates are not working.

---

<div class="post-metadata">

### Author: ![mhwebee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mhwebee/32/120566_2.png) [@mhwebee](https://meta.discourse.org/u/mhwebee)
#### Post date: [5월 28, 2017, 2:59오후 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/3 "2017-05-28T14:59:02Z")

</div>

@pfaffman I know this isn’t a Linux forum, but do you know to check automatic updates are happening and how to check manually?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [5월 28, 2017, 4:11오후 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/4 "2017-05-28T16:11:46Z")

</div>

Hey, @mhwebee, since you asked me specifically, I’ll answer, but I, using a tablet and not a real computer…

The simple, it’s not a Linux forum, way is to wait a few days and log in again. In a while you should get a message saying that there are x updates and zero of them are security updates. Just look again in a week or two. Maybe reboot first. I, not entirely clear what needs to get restarted to reread those settings.

Sorry that’s not very satisfying, but it’s usually what I do.

When I want to check what the way to see the way to see what upgrades are available, I have to read the man page or google.

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [5월 29, 2017, 12:32오전 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/5 "2017-05-29T00:32:27Z")

</div>

The “message of the day” (“motd”), which is what indicates whether there are packages that need updating, or the system needs to be rebooted, or whatever, is dynamically generated on Ubuntu systems at login, via the `update-motd`(5) system, which is in turn invoked by `pam_motd.so` during login (unless otherwise modified by the system admin). The specific program which detects if updates are required and writes the appropriate verbiage is `/usr/lib/update-notifier/update-motd-updates-available`, which is a vaguely readable shell script that, once you chew through the boilerplate, calls `/usr/lib/update-notifier/apt-check --human-readable`, which you yourself can call at any time (even as a non-root user) to tell you what’s what. The information may be a little out of date, because the apt package lists only get refreshed once a day (via `/etc/cron.daily/update-notifier-common`, which calls `/usr/lib/update-notifier/package-data-downloader`), but within 24 hours of a security update becoming available you should see it reported in that `apt-check` call (you can also run `sudo apt-get update` yourself, which will update the package lists immediately).

And yes, this isn’t a Linux forum. 😀

---

<div class="post-metadata">

### Author: ![Abhishek\_Bhatia](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@Abhishek\_Bhatia](https://meta.discourse.org/u/Abhishek_Bhatia)
#### Post date: [12월 5, 2017, 6:50오후 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/6 "2017-12-05T18:50:11Z")

</div>

Check this way to do for all repos. [GitHub - abhigenie92/unattended\_upgrades\_repos: Generates system-specific repositories to be added in configuration file for silently updating all packages via unattended upgrades. · GitHub](https://github.com/abhigenie92/unattended_upgrades_repos)

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [12월 5, 2017, 11:04오후 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/7 "2017-12-05T23:04:23Z")

</div>

Alternately, don’t use a huge number of third-party repos on your production servers… software packages are not pokemon, there is no need to catch them all.

---

<div class="post-metadata">

### Author: ![Abhishek\_Bhatia](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@Abhishek\_Bhatia](https://meta.discourse.org/u/Abhishek_Bhatia)
#### Post date: [12월 6, 2017, 1:16오전 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/8 "2017-12-06T01:16:17Z")

</div>

The script is intended for PCs mostly. Thanks 🙂

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [12월 6, 2017, 1:19오전 UTC](https://meta.discourse.org/t/how-to-setup-automatic-updates-for-ubuntu-running-discourse/63501/9 "2017-12-06T01:19:49Z")

</div>

This is a topic about running Discourse on a server.
