I'm not expert, but this may be because you were not using the dpkg command as root. If you have rootsh installed, first type "sudo gainroot" and enter. Then you can use the dpkg command to make the changes you want.