Then type: sudo gainroot THEN type: dpkg -P advanced-power-monitor you should only use sudo if you actually (as root) added the "user" username to the /etc/sudoers file.