sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
想了下,重启应该会覆盖这里面的内容,不用手动删除,结果就悲剧了,出现以下信息,系统无法启动
built-in commands
builtin, !, %, ., :, @, {, }, alias, alloc, bg, bind, bindkey, break,breaksw, builtins, case, cd, chdir, command, complete, continue, default,dirs, do, done, echo, echotc, elif, else, end, endif, endsw, esac, eval,exec, exit, export, false, fc, fg, filetest, fi, for, foreach, getopts,glob, goto, hash, hashstat, history, hup, if, jobid, jobs, kill, limit,local, log, login, logout, ls-F, nice, nohup, notify, onintr, popd,printenv, pushd, pwd, read, readonly
仔细看日志会有这么一句话:
/dev/sda3: UNEXPECTED INCONSISTENCY;RUN fsck MANUALLY.
the root filesystem on /de/sda3 requeries a manual fsck
意思就是说出现不一致,手动修复/dev/sda3
文件系统是etx
直接运行 fsck.etx4 -y dev/sda3
修复完成 reboot 重启,系统正常启动