Why do I need to run sudo apt-get update

view full story

http://askubuntu.com – If I wanted to install some software like below. Why do I need to run the sudo apt-get update before installing the program? So for example. sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.7 (HowTos)