libboost 错误后 apt-get 崩溃

libboost 错误后 apt-get 崩溃

我似乎意外地以某种方式破坏了 libboost 包,现在我无法再使用 apt-get 了。

我不知道在这里该做什么。

当我尝试使用 apt-get 安装某些东西时出现错误:

dpkg: warning: files list file for package `libboost-serialization1.42-dev' missing,assuming package has no files currently installed.
dpkg: warning: files list file for package `libboost-regex1.42-dev' missing,    assuming package has no files currently installed.
dpkg: warning: files list file for package `libboost-iostreams-dev' missing, assuming package has no files currently installed.
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
files list file for package `linux-image-2.6.35-22-generic' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

(以及缺少的 libboost-all-dev 中的一些软件包)。

如果我做

sudo apt-get install libboost-all-dev

我得到了结果

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libboost-all-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

有什么方法可以重建并修复丢失的软件包?

相关内容