用apt-get装任何包都提示以下错误

root@iZu107n65nyZ:~# apt-get dist-upgrade  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
You might want to run 'apt-get -f install' to correct these.  
The following packages have unmet dependencies:  
 libc-bin : Depends: libc6 (< 2.20) but 2.24-12 is installed
 libc-dev-bin : Depends: libc6 (< 2.20) but 2.24-12 is installed
 libc-l10n : Breaks: locales (< 2.21-1) but 2.13+git20120306-12.1 is installed
 libc6 : Breaks: locales (< 2.24) but 2.13+git20120306-12.1 is installed
 libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.6) but 2.24-12 is installed
 nscd : Depends: init-system-helpers (>= 1.18~) but 1.14 is installed

解决方案:

aptitude update

aptitude install libc6-dev  

参考: 传送门 这篇文章里提到aptitude比apt-get聪明,一般能解决这类问题

但是一定要记得快照!!!!!!动内核不快照死路一条

以上错误怀疑是升级nodejs过程中带来的问题