$ sudo apt-get update
$ sudo apt-get -y upgrade
$ sudo apt-get dist-upgrade
via askubuntu
$ sudo dpkg -i /path/to/deb/file
$ sudo apt-get install -f
$ sudo chown -R $(whoami) /path/to/dir
$ sudo rm -r /path/to/dir
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
[several days later]
$ git push http://example.com/repo.git
[your credentials are used automatically]
via git
$ sudo reboot