I am a new Raspberry Pi user. I bought a Pi 3 recently. I installed rasbian on it by using NOOBS abd SD Card Formatter. After completing the installation i set a root password by using -- sudo passwd After getting a successesful message i tried to update the OS by using -- sudo apt-get update(it started updating without asking for user password which does't happens on ubuntu systems). Then i tried to upgrade OS by using command -- sudo apt-get upgarde
After this command i clicked yes when asked by the terminal. After starting the upgrade process i got error message which says -- mkdir: cannot create directory '/var/lib/chksshpwd/' dpkg: error processing package lib-chksshpwd:armhf (--configure) libpam-chksshpwd:armhf
Attaching the image of error which i got Complete error messege ....
-
Have you tried removing that directory that the error message is complaining about?ElefantPhace– ElefantPhace2017年03月25日 13:42:30 +00:00Commented Mar 25, 2017 at 13:42
-
@ElefantPhace No sir i have notShantanu Nandan– Shantanu Nandan2017年03月25日 13:46:48 +00:00Commented Mar 25, 2017 at 13:46
1 Answer 1
This worked me ... Type this to terminal.
cd /var/lib
sudo rm -fr chksshpwd
sudo apt-get upgrade
-
1I had the same problem. This indeed will solve the problem. It is exatcly what I did. One thing extra is you can use: cd /var/lib/chkpassword and then ls to check if the map is empty. Mine was so I removed it and ran sudo apt-get upgrade again!Geert Berkers– Geert Berkers2017年03月25日 15:04:08 +00:00Commented Mar 25, 2017 at 15:04
-
I tried this but the system just appears to lock and not to resolve the problem.Sean Parry– Sean Parry2017年09月26日 23:20:33 +00:00Commented Sep 26, 2017 at 23:20