저번에 고쳐서 빌드가 잘 됐는데 한번 밀고 다시 깔았더니 또 안되서 미칠 것 같다.
$ setupbuild -t <target> -j <thread#>
$ bitbake <target>
Error Message
ERROR: attr-native-2.4.47-r0 do_fetch: Fetcher failure for URL: 'http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz'.
Unable to fetch URL from any source.
ERROR: attr-native-2.4.47-r0 do_fetch: Function failed: base_do_fetch
이런 메시지가 4~5개 나옴
https://tutorialadda.com/blog/do-fetch-fetcher-failure-unable-to-fetch-url-from-any-source
직접 어디선가 이 파일을 받아야 하는데 이전엔 이런거 없이도 잘되서 멘붕..
Solution 정리
1. ssh 설정
가장 처음 문제가 생겼을 때에는 ssh 키가 설정되어있지 않아서 생긴 문제였다.
$ cd ~/.ssh
$ ssh-keygen -t rsa C "회사계정"
Enter file in which to save the key */c/users/계정/.ssh/id_rsa):
Enter passphrase(empty for no passphrase): # 그냥 엔터 누르면 됌
Enter same passphrasae again:
$ ls -a # id_rsa.puub 있는지 확인
$ cat ~/.ssh/id_rsa.pub # 키 확인
$ git remote -v # remote 확인
$ git config --list # 계정 확인
참고 https://seunghee63.github.io/multi-account/
.ssh 디렉토리는 매우 중요한 보안 정보가 담긴 디렉토리다. 따라서 퍼미션 설정을 꼭해야 하는데 아래와 같은 설정을 권장한다. 아래의 명령을 순차적으로 실행한다.
$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/id_rsa
$ chmod 644 ~/.ssh/id_rsa.pub
$ chmod 644 ~/.ssh/authorized_keys
$ chmod 644 ~/.ssh/known_hosts
만약 id_rsa 파일을 $HOME/.ssh/id_rsa에 만들지 않고 다른 디렉토리에 만들었다면 -i 옵션을 사용한다.
홈디렉토리에 auth라는 이름의 파일에 id_rsa의 내용이 담겨 있다면 아래와 같이 한다.
$ ssh -i $HOME/auth egoing.net
tutorial https://gist.github.com/aprilmintacpineda/f101bf5fd34f1e6664497cf4b9b9345f
2. directory 권한
권한이 없는 경우도 이런 문제가 생길 수 있다.
03-31-2020 04:39 AM 2,103 Views
santhosh2
hi,its nothing related to internet connection.. its related to permission, some file are unable to overwrite so you will get this issue,just do sudo chmod -R 777 * to the entire build folder (it will take roughly 2 hrs to do this task due to yocto size) and then compile againregardssanthosh
$ ls al $ 파일 정보 보기
$ chmod -R 777 디렉토리이름 # 디렉토리 하위에 위치한 모든 파일 및 디렉토리 퍼미션이 777로 변경됨
# or
$ sudo chmod -R 777 *
# or
$ sudo chmod ugo+rwx <folder or directory name>
참고 https://conory.com/blog/19194
3. 용량 문제
용량이 적어서 fetch error가 생길 수 있다 (이거 그럴싸함) 하지만 하드에다 받아도 같은 에러가 발생하기 때문에 이건 아닌거 같다.
4. Network proxy
02-12-2019 05:54 AM 2,104 Views
radhikasomaiya Senior Contributor II
Hi Santhosh Kumar,Are you running behind any proxy server? If this the case then make sure that this URL is not getting blocked in your firewall as I am able to clone the repo successfully (link given in above snap).$git clone git://sourceware.org/git/glibc.git - This is successfully cloned on my machine.Regards,Radhika Soamiya
이게 문제인거같은데 방화벽 때문이 아닐까.. 애초에 해당 url에 내 bitbucket주소를 쳐도 아이디 비밀번호를 무한히 물어본다. wiki 보고 따라해봤지만 여전히 안되는..
$ sudo ufw status # 방화벽 상태 확인
$ sudo ufw status verbose
$ sudo ufw disable
# toggle
$ sudo ufw enable
https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy