In a new installed scratchbox, on which Maemo SDK is based on, there is a DNS problem.
While:[sbox-SDK_PC: ~] fakeroot apt-get update
We see:
引用
Temporary failure resolving 'repository.maemo.org'
The reason is we have three resolv.conf files in system:
- a) /etc/resolv.conf[*]b) /scratchbox/etc/resolv.conf[*]c) /scratchbox/user/cloud/target/SDK_PC/etc/resolv.conf
a is the one we're using to deel with DNS ouside scratchbox.
b is the one we're using to deel with DNS inside scratchbox.
c is empty but a line "nameserver 127.0.0.1".
Each of them differs from any other.
So, it's easy now: (do it ouside the scratchbox)
$ sudo cp /etc/resolv.conf /scratchbox/etc/resolv.conf
And what about c? Forget it...
Refer to:
http://guoyong.org/2007/05/27/327
http://www.internettablettalk.com/forums/archive/index.php/t-6332.html
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
We can run apt-get now.
Inside the scratchbox, the sources.list for apt-get locates here:
引用
/scratchbox/users/maemo/targets/SDK_PC/etc/apt
Edit it by:
$ sudo gedit /scratchbox/users/maemo/targets/SDK_PC/etc/apt/sources.list
Copy these in:
引用
#deb http://repository.maemo.org/ bora free non-free extras
#deb-src http://repository.maemo.org/ bora free non-free extras
#deb file:/home/maemo/maemo-sdk-nokia-binaries_3.0 bora explicit
# Latest releases: maemo 3.x 'bora' repository
deb http://repository.maemo.org/ bora free non-free
deb-src http://repository.maemo.org/ bora free non-free
# Older releases: maemo 3.0 'bora' repository
deb http://repository.maemo.org/ maemo3.0 free non-free
deb-src http://repository.maemo.org/ maemo3.0 free non-free
The first three lines are those by default.
Remember that the sources.list outside scratchbox does not fit here.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Each time you modified sources.list, don't forget to run:[sbox-SDK_PC: ~] fakeroot apt-get update
分享到:
相关推荐
scratchbox-devkit-apt-https_1.0.4_i386.deb
scratchbox-toolchain-host-gcc_1.0.13_i386.deb
scratchbox-devkit-cputransp_1.0.9_i386.deb
scratchbox-devkit-maemo3_1.0.3_i386.deb
韦东山 1期视频中scratchbox-toolchain-host-gcc-1.0.8-i386.tar.gz
scratchbox,非常好的工具,能执行arm脚本,编译x11很不错
scratchbox-core-1.0.8-i386.tar.gz
海思文档,具体讲解sb在海思平台的应用以及如何配置
scratchbox-devkit-svn_1.0_i386.deb
scratchbox-devkit-mtd_1.0.1_i386.deb
scratchbox-devkit-debian_1.0.10_i386.deb
scratchbox-devkit-git_1.0.1_i386.deb
scratchbox-devkit-perl_1.0.4_i386.deb
应用Scratchbox构建嵌入式Linux系统.pdf
Ubuntu 10.04搭建Scratchbox交叉编译环境.docx
scratchbox-core_1.0.13_i386.deb
scratchbox-libs_1.0.13_i386.deb
应用Scratchbox构建基于CF卡的嵌入式linux系统.doc应用Scratchbox构建基于CF卡的嵌入式linux系统.doc应用Scratchbox构建基于CF卡的嵌入式linux系统.doc应用Scratchbox构建基于CF卡的嵌入式linux系统.doc应用...
Scratchbox是一个交叉编译工具包。 它提供了一种以简单,快速,安全和可预测的方式进行交叉编译的环境。 当前,重点是ARM体系结构,但可以轻松添加其他体系结构。
A tutorial that describes how to setup a virtual native development environment for a mini210S development board with an s5pv210 cpu