I tried to install LAMP server using tasksel. But it shows the following error message. I tried changing permissions using chmod but in vain
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied debconf: DbDriver "config": could not write /var/cache/debconf/config.dat-new: Permission denied tasksel: debconf failed to run
How can it be resolved?