Ubuntu 6.10, OpenSUSE 10.2 Rise to (and in Some Ways Above) Microsoft's Vista Challenge (eWeek)
Ubuntu 6.10, OpenSUSE 10.2 Rise to (and in Some Ways Above) Microsoft's Vista Challenge (eWeek)
Posted Jan 14, 2007 9:29 UTC (Sun) by drag (guest, #31333)In reply to: Ubuntu 6.10, OpenSUSE 10.2 Rise to (and in Some Ways Above) Microsoft's Vista Challenge (eWeek) by rsidd
Parent article: Ubuntu 6.10, OpenSUSE 10.2 Rise to (and in Some Ways Above) Microsoft's Vista Challenge (eWeek)
In the Ubuntu forums there are people recommending doing automatic updates via cronjobs using apt-get. This is a VERY BAD idea. Apt-get is not intended to be ran automaticly.
So what normally would happen if you stuck "apt-get update && apt-get upgrade" in your cron job is that it would end up hanging every once and a while when it came to asking you a question. To get around that they instruct apt-get to answer 'yes' to every question it is presented with.
So I am supposing that when Apt-get asks (paraphrasing) 'Do you want to overwrite this configuration with the maintainer's version?' it will default to 'yes' and overwrite the configuration file.
This is what I suspect is going on. Haven't tried it myself, but makes sense to me.
For the record the recommended method to use apt-get via a cronjob is to instruct apt-get to download the packages, but don't install them. That way when you do the upgrade manually you don't have to wait for the packages to download.
There is also a cron-apt package that does this by default.
