Does your ~/.bashrc contain any commands that run sudo ?

Specifically, the code you posted looks like output from sudo apt-get dist-upgrade or similar apt command.