Command to run GUI Frontend for apt-get update
Solution 1:
You can't do apt-get update
from the command line of the update manager.
To run the command, use
update-manager
man update-manaer
gives:
--data-dir=DATA_DIR
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
upgrader
--no-focus-on-map
Do not focus on map when starting
--dist-upgrade
Try to run a dist-upgrade
so you can move over by running
update-manager --dist-upgrade
Solution 2:
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.
-
Open a terminal and run this command (source):
xprop | awk '($1=="_NET_WM_PID(CARDINAL)") {print $3}' | xargs ps h -o cmd
Click on a running instance of the GUI.
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.
Solution 3:
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.