close

http://www.claudxiao.net/2011/10/using_debian_repository_in_ubuntu_for_arm/

 

Ubuntu ARM版使用Debian的源安裝軟體

 

目前主要的問題是UbuntuARM源中預編譯的軟體太少,比如clisp就沒有。

所以在更新或安裝時 常常會有問題

apt-get update

.....
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libs/libsub-name-perl/libsub-name-perl_0.05-1build2_armhf.deb  Temporary failure resolving 'ports.ubuntu.com'
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libc/libclass-accessor-perl/libclass-accessor-perl_0.34-1_all.deb  Temporary failure resolving 'ports.ubuntu.com'
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libi/libio-string-perl/libio-string-perl_1.08-2_all.deb  Temporary failure resolving 'ports.ubuntu.com'
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libt/libtimedate-perl/libtimedate-perl_1.2000-1_all.deb  Temporary failure resolving 'ports.ubuntu.com'
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libp/libparse-debianchangelog-perl/libparse-debianchangelog-perl_1.2.0-1ubuntu1_all.deb  Temporary failure resolving 'ports.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@localhost:/home/andres#

因為debian支持arm已經很多年了,所以可以考慮使用debian的源。

 

 

配置的步驟如下:

1. 導入debian的公開金鑰環

#wget http://ftp-master.debian.org/keys/archive-key-6.0.asc
#gpg --import archive-key-6.0.asc
#gpg --fingerprint 473041FA
#gpg --armor --export 473041FA | sudo apt-key add -

2. 添加debian
#sudo vim /etc/apt/sources.list
在最後添加

deb http://http.us.debian.org/debian testing main non-free contrib
deb-src http://http.us.debian.org/debian testing main

3. 更新資料庫
#sudo apt-get clean
#sudo apt-get update

現在就可以安裝需要的軟體了。需要注意的是這種方法並不能保證系統的穩定性。

arrow
arrow
    全站熱搜

    立你斯 發表在 痞客邦 留言(0) 人氣()