Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It is really annoying to click the update icon and enter password every time to confirm updates.

How can I setup fully automatic updates without any prompts? (Not only security updates)
Some small notification about finished updates would also be nice.

I'm using Kubuntu 11.04 and KPackageKit.

share|improve this question
There are some scripts floating around on the net. I'd suggest googling 'apt-get update', 'script', 'automate' and see what that gives you. – boehj Jun 1 '11 at 14:20
  • Open Kpackagekit
  • Uncheck confirmation dialog when installing or updating packages.
  • Uncheck Notify when updates available.
  • check all updates.

enter image description here

share|improve this answer
I think I've tried this, but there were simply no updates happening (I saw available updates piling up) – Oleh Prypin Jun 1 '11 at 15:26
@BlaXpirit: Well, if this doesn't work,maybe it is a bug. Also try the suggested idea by boehj above.Or wait for another answer. – Binarylife Jun 1 '11 at 15:41
I'll take a look for a good script today if I get the time. There are plenty out there. – boehj Jun 1 '11 at 19:53
@binarylife Nope, this doesn't work. I have 6 updates hanging there right now. – Oleh Prypin Jun 4 '11 at 20:21
@BlaXpirit: I haven't had time, but a Google search with 'apt-get update script automate' just now turned up some pages that may be useful. This page was the first result. Take a look at the section entitled "Advanced Alternative: Automatic Weekly Package Updates Using Cron And Apt-Get". That may be of use to you. – boehj Jun 5 '11 at 9:00
up vote 2 down vote accepted
  • Open the file manager as super user, e.g. sudo dolphin
    Be careful with such instance of file manager because you may delete something important and break your system
  • Create a file named autoupdate in /etc/cron.* (where * is hourly, daily, weekly, monthly depending on your preference). I used /etc/cron.hourly/.
  • Put the following contents into the file:

    apt-get update
    apt-get upgrade -y
    apt-get autoclean

    ... and save it.

  • Allow the file to be executed in its properties, or by using this: sudo chmod 755 autoupdate

And that's it! You will have your software automatically updated without any notifications
(of course, if you've turned off the notifications in update settings).
Thanks to boehj for the source of information: Automatic Weekly Package Updates Using Cron And Apt-Get

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.