缺少 (build-essential) 编译库引起的编译问题。
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:106:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
解决方法如下:
apt-get install build-essential
软件包依赖有问题导致无法安装和卸载软件包。
问题如下: 下列软件包有未满足的依赖关系: libc6 : 依赖: libc-bin (= 2.15-0ubuntu10.5) libc6:i386 : 依赖: libc-bin:i386 (= 2.15-0ubuntu10.5) libc6-dev : 依赖: libc6 (= 2.15-0ubuntu10.5) 但是 libc6_2.15-0ubuntu10.12_amd64.deb 已经安装 E: 不能满足依赖关系。不妨试一下 -f 选项。 然后apt-get -f install,最后又出现: dpkg:处理 /var/cache/apt/archives/libc6_2.15-0ubuntu10.12_i386.deb (--unpack)时出错: 子进程 新的 pre-installation 脚本 返回了错误号 1 在处理时有错误发生: /var/cache/apt/archives/libc6_2.15-0ubuntu10.12_amd64.deb /var/cache/apt/archives/libc6_2.15-0ubuntu10.12_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 解决方法如下: Run : sudo dpkg -r libc6 sudo rm /var/cache/apt/archives/libc6_2.15-0ubuntu10.12_amd64.deb sudo rm /var/cache/apt/archives/libc6_2.15-0ubuntu10.12_i386.deb If above are successful or not,run : sudo vi /var/lib/dpkg/status In the resulting gedit,remove the whole section starts with : "Package: libc6" And save the modify. then run an update. sudo apt-get update Run the synaptic (新立得软件包管理器) install libc6 Refer to: http://askubuntu.com/questions/488671/l ... es#tab-top 原文链接:https://www.f2er.com/javaschema/284659.html