安装64bit Ubuntu12.04/12.10 遇到的问题以及解决办法
2013-08-06 15:30
651 查看
1、没法用apt-get install 安装软件包
提示
错误E: The package lists or status file could not be parsed or opened。
网上是删除/var/lib/apt/lists下的文件,之后再apt-get update即可。——但是貌似不行。咋办呢?
还老提示什么系统错误,以前用ubuntu 32bit 10.04 是很稳定的,没出现什么问题,怎么搞的呢?
先想想先!
2、
The following packages have unmet dependencies:
libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.6)
Recommends: libgl1-mesa-dri:i386 (>= 7.2)
E: Unable to correct problems, you have held broken packages.
root@ubuntu:~# apt-get install libgl1-mesa-dri:i386 用这个来代替即可!
3、安装完毕android说的依赖包导致ubuntu 12.04 无法启动,
后来发现成功安装的一些人给的安装的包不一样的
他们是这样的
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown libxml2-utils xsltproc
android网站上是这样的
难道是google android自己搞的乌龙?
erro
make: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
http://www.360doc.com/content/13/0423/16/7245213_280384770.shtml
apt-get install ia32-libs
OK!!!!!!!!!!!!!!
试试先。
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from /usr/include/c++/4.6/x86_64-linux-gnu/32/bits/os_defines.h:40:0,
from /usr/include/c++/4.6/x86_64-linux-gnu/32/bits/c++config.h:393,
from /usr/include/c++/4.6/string:40,
from build/libs/host/include/host/pseudolocalize.h:4,
from build/libs/host/pseudolocalize.cpp:1:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 1
make: *** Waiting for unfinished jobs....
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<built-in>:0:0: note: this is the location of the previous definition
In file included from /usr/include/stdlib.h:25:0,
from build/tools/acp/acp.c:11:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
In file included from build/libs/host/CopyFile.c:11:0:
build/libs/host/include/host/CopyFile.h:5:22: fatal error: sys/stat.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
/article/1434036.html ——这篇文章说的有些地方可以解决这些错误。
http://www.cnblogs.com/xingfuzzhd/archive/2012/09/05/2672000.html——这个也不错
错误打印如下:
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
上网查了查,解决方法如下:
修改源码目录下/build/core/combo/HOST_linux-x86.mk文件:
将以下语句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改为
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
提示
错误E: The package lists or status file could not be parsed or opened。
网上是删除/var/lib/apt/lists下的文件,之后再apt-get update即可。——但是貌似不行。咋办呢?
还老提示什么系统错误,以前用ubuntu 32bit 10.04 是很稳定的,没出现什么问题,怎么搞的呢?
先想想先!
2、
The following packages have unmet dependencies:
libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.6)
Recommends: libgl1-mesa-dri:i386 (>= 7.2)
E: Unable to correct problems, you have held broken packages.
root@ubuntu:~# apt-get install libgl1-mesa-dri:i386 用这个来代替即可!
3、安装完毕android说的依赖包导致ubuntu 12.04 无法启动,
后来发现成功安装的一些人给的安装的包不一样的
他们是这样的
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown libxml2-utils xsltproc
android网站上是这样的
难道是google android自己搞的乌龙?
erro
make: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
http://www.360doc.com/content/13/0423/16/7245213_280384770.shtml
apt-get install ia32-libs
OK!!!!!!!!!!!!!!
试试先。
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from /usr/include/c++/4.6/x86_64-linux-gnu/32/bits/os_defines.h:40:0,
from /usr/include/c++/4.6/x86_64-linux-gnu/32/bits/c++config.h:393,
from /usr/include/c++/4.6/string:40,
from build/libs/host/include/host/pseudolocalize.h:4,
from build/libs/host/pseudolocalize.cpp:1:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 1
make: *** Waiting for unfinished jobs....
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<built-in>:0:0: note: this is the location of the previous definition
In file included from /usr/include/stdlib.h:25:0,
from build/tools/acp/acp.c:11:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
In file included from build/libs/host/CopyFile.c:11:0:
build/libs/host/include/host/CopyFile.h:5:22: fatal error: sys/stat.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
/article/1434036.html ——这篇文章说的有些地方可以解决这些错误。
http://www.cnblogs.com/xingfuzzhd/archive/2012/09/05/2672000.html——这个也不错
错误打印如下:
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
上网查了查,解决方法如下:
修改源码目录下/build/core/combo/HOST_linux-x86.mk文件:
将以下语句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改为
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
相关文章推荐
- Ubuntu 下安装tomcat8.0遇到的问题以及解决办法
- 安装64bit Ubuntu12.04/12.10 遇到的问题以及解决办法
- jmeter安装配置,以及遇到问题解决办法
- windows64 装PIL时遇到的问题以及解决办法
- RHEL4 安装mysql5 遇到的问题 以及菜鸟级解决办法
- Fedora 9安装VMware tools 6.0.2遇到的问题以及解决办法
- Fedora 15 降级安装GCC-4.5.3 全过程以及遇到的问题和解决办法总结
- Linux挂载优盘 Linux中安装jdk,eclipse,tomcat以及遇到的问题和解决办法
- ros indigo安装时遇到的问题以及解决办法
- 记录使用vmware workstation11安装CentOS-6.6-x86_64-minimal.iso过程中遇到的问题及解决办法
- ubuntu12.04安装vmware workstation8.0.2遇到的问题以及解决办法
- Ubuntu14.04.05+win10双系统安装以及遇到的问题和解决办法
- RedHat安装Tesseract方式以及遇到升级GCC时遇到的问题和解决办法
- CUnit-2.1-3.tar.bz2 安装以及遇到问题的解决办法
- 安装mediawiki中文版时遇到的问题以及解决办法
- 安装domino9_linux64的语言包遇到的问题及解决办法
- Redis介绍以及安装(Linux)以及遇到问题的解决办法
- 初次安装cocos2dx所遇到的问题以及解决办法
- [Centos] mod_wsgi 安装流程以及遇到问题解决办法。apxs: command not found 或 Sorry, Python developer package does not appear to be installed.
- suse linux11 sp2安装oracle11g遇到的一些问题以及解决办法