I can't speak to your image questions, but if you type 'sudo' in front of
any admin level command like dpkg --purge that will take care of that error
for you. It will prompt you for your password after you enter it. That's how
Debian-based installations like Ubuntu handle user privileges.