Sort:  

I think you have to sudo the second command too, ie.
sudo apt-get autoclean && sudo apt-get autoremove -y

nop, just one. It's one command.