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
- 下载安装脚本`maemo-scratchbox-install_4.1.2.sh`。 - 设置脚本的执行权限。 - 关闭VDSO支持,避免安装过程中出现问题。 - 创建`scratchbox`目录,并在根目录下为其创建符号链接。 - 运行安装脚本。 - 添加...
scratchbox-toolchain-host-gcc_1.0.13_i386.deb
scratchbox-devkit-cputransp_1.0.9_i386.deb
Scratchbox是一个强大的开源交叉编译环境,特别适用于嵌入式系统开发,如Linux设备和移动设备。它允许开发者在主机系统上构建针对其他架构(如ARM)的应用程序,而无需在目标硬件上进行实际的编译过程。这极大地提高...
scratchbox-devkit-maemo3_1.0.3_i386.deb
《构建嵌入式系统开发环境:深入理解scratchbox-toolchain-host-gcc-1.0.8-i386.tar.gz》 在嵌入式系统开发领域,构建一个适合目标平台的交叉编译工具链至关重要。这里我们将探讨的是"scratchbox-toolchain-host-...
"scratchbox-core-1.0.8-i386.tar.gz" 文件是Scratchbox的一个特定版本,即1.0.8版,针对i386架构的。这个压缩包包含了运行Scratchbox所需的核心组件和配置文件。 1. **交叉编译**:交叉编译是指在一种平台上生成可...
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" 本文介绍了一种应用Scratchbox构建嵌入式Linux系统的新方法,该方法详细论述了应用Scratchbox和Busybox等开源软件在CF卡上构建一个嵌入式Linux操作系统的全过程。 知识点...
scratchbox-core_1.0.13_i386.deb
scratchbox-libs_1.0.13_i386.deb
Scratchbox是一个强大的开源交叉编译工具,专为软件开发者设计,旨在简化并优化在不同硬件平台上构建软件的过程。它的核心功能是创建一个隔离的、安全的环境,使得开发人员能够在一台主机上编译针对其他架构(如ARM...
Scratchbox是一个用于JavaScript开发的实用工具,特别适合测试用例和代码片段的管理...在解压并探索`scratchbox-master`文件后,你可以更深入地了解这个工具的具体实现和使用方法,进一步提升你的JavaScript开发实践。