That command isn't too important, it's just doing some housekeeping. I've tried all 4 variants (apt-get or apt, and -y or not) and they all work on my Ubuntu 14.04 box, so I'm not sure why they don't for you.
You are viewing a single comment's thread from:
I am using Ubuntu instance in AWS, so this might be happening on AWS env only.
Just skip the auto-remove command. And you may need to also 'sudo apt-get install build-essential dh-autoreconf -y'. I can't update my post to reflect this, though.