πŸ““ STUDY/YOCTO

[ Build ] Fetcher failure for URL

JuneBee 2022. 9. 26. 21:25
728x90
λ°˜μ‘ν˜•

μ €λ²ˆμ— κ³ μ³μ„œ λΉŒλ“œκ°€ 잘 λλŠ”λ° ν•œλ²ˆ λ°€κ³  λ‹€μ‹œ κΉ”μ•˜λ”λ‹ˆ 또 μ•ˆλ˜μ„œ λ―ΈμΉ  것 κ°™λ‹€.

$ 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://community.nxp.com/t5/i-MX-Processors/Compile-error-for-meta-toolchain/m-p/854654/highlight/true?lightbox-message-images-854653=71913i382259A0C5A1545A μ΄κ±°λž‘ κ°™λ‹€..

https://tutorialadda.com/blog/do-fetch-fetcher-failure-unable-to-fetch-url-from-any-source

 

do_fetch: Fetcher failure Unable to fetch URL from any source

 

tutorialadda.com

직접 μ–΄λ””μ„ κ°€ 이 νŒŒμΌμ„ λ°›μ•„μ•Ό ν•˜λŠ”λ° 이전엔 이런거 없이도 μž˜λ˜μ„œ λ©˜λΆ•..

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

 

Working Behind a Network Proxy - Yocto Project

Background The Yocto Project build system provides the tools and environment to build the packages that comprise a bootable Linux image. All the sources for the packages must be fetched through various means, including wget, git, and others. You need to co

wiki.yoctoproject.org

728x90
λ°˜μ‘ν˜•