Ubuntu – Software Updates from terminal without sudo

aptsoftware-updater

Software Updates is capable of checking for updates and installing them without asking for a password except for kernel updates.

The same is not true for apt-get in a terminal. If you try to apt-get update without sudo you get an error: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied).

Is there a command you could run in terminal which permits updating without using sudo?

Best Answer

  • Software Updates uses aptdaemon to do all the work. You can do that from the command line using aptdcon:

    Check for updates:

    aptdcon --refresh
    

    Install updates:

    aptdcon --safe-upgrade
    
  • Related Question