Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I want know, if there is any command to run apt-get update in GUI like in the picture following:

GUI frontend of apt-get update

All i want to do is to write a script which will update the software sources through this gui manager. So that i can make it more user friendly. I need the command to do this. Please help.

share|improve this question

I can't tell you exactly, as I'm not using a Ubuntu system at the moment, but I can tell you how to find the command.

  1. Open a terminal and run this command (source):

    xprop | awk '($1=="_NET_WM_PID(CARDINAL)") {print $3}' | xargs ps h -o cmd
  2. Click on a running instance of the GUI.

  3. The command used to run it should then be printed in the terminal. You may have to adapt it slightly for use in a Bash script, though.

share|improve this answer
Thanks for your help. I learnt that the window is not a programm. sub programm of synaptic/software updator. So need to find if some complete software like what i want exists. – Pavak Paul Feb 18 '14 at 11:26

You can't do apt-get update from the command line of the update manager.

To run the command, use


man update-manaer gives:

          Directory that contains the data files

   -c, --check-dist-upgrades
          Check if a new distribution release is available

   -d, --devel-release
          Check if upgrading to the latest devel release is possible

   -p, --proposed
          Upgrade  using  the  latest  proposed  version  of  the  release

          Do not focus on map when starting

          Try to run a dist-upgrade

so you can move over by running

update-manager --dist-upgrade
share|improve this answer
Isn't the OP asking for the GUI equivalent of update, not dist-upgrade? – minerz029 Feb 18 '14 at 8:30

On ubuntu you can run this as follows:

sudo /usr/bin/update-manager

If this doesn't work, find the actual command by following what Pavak Paul said:

 xprop | awk '($1=="_NET_WM_PID(CARDINAL)") {print $3}' | xargs ps h -o cmd

Then click on running instance of update manager.

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.