This question already has an answer here:
first of all, I'm a real beginner in linux, and I just currently installed ubuntu 16.4 on my 64bit ideaPad 110, and here is the problem.
I was trying to install php using this command,
sudo apt-get install php7.0-cli
It finished the download, but at the end it didn't install because of
Unable to lock the administration directory (/var/lib/dpkg/)
Then I try to install the downloaded packages on
/cache/ directory using
sudo dpkg -i [packagename.deb], it failed.
Now, anything I do, just gives me this
dpkg: error processing package php (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-cli php7.0-fpm php7.0 php E: Sub-process /usr/bin/dpkg returned an error code (1)
I searched the keyword
E: Sub-process /usr/bin/dpkg returned an error code (1) but nothing helps.