2

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 Mar 25 '17 at 13:42
  • @ElefantPhace No sir i have not – Shantanu Nandan Mar 25 '17 at 13:46
0

This worked me ... Type this to terminal.

cd /var/lib  
sudo rm -fr chksshpwd  
sudo apt-get upgrade
  • 1
    I 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 Mar 25 '17 at 15:04
  • I tried this but the system just appears to lock and not to resolve the problem. – Sean Parry Sep 26 '17 at 23:20

protected by Community Sep 27 '17 at 5:56

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.