
/etc/passwd-
/etc/passwd即可!------解决方案--------------------------------------------------------在grub中,按下e进入编辑模式,在第二行的后面加singal
然后回车确认,按b启动进入单人模式
You removed 5 directories, the status file, etc. So, lets try to fix the stuff. First, create the directory:sudo mkdir -p /var/lib/dpkg/{alternatives,info,parts,triggers,updates}
Recover some backups:
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
Now, let's see if your dpkg is working (start praying):
apt-get download dpkgsudo dpkg -i dpkg*.deb
If everything is "ok" then repair your base files too:
apt-get download base-files
sudo dpkg -i base-files*.deb
Now try to update your package list, etc.:
dpkg --auditsudo apt-get updatesudo apt-get check
Now, let's take a deep breath. Phew. Do ls -l /var/lib/dpkg and compare with the above list. If some -old file is not present don't worry it will be there tomorrow.
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)