I know it's off topic, but it would be good if the author could change that example. In general, one should never use sudo with package managers.