imx6 Android bsp下載過程中遇到的問題總結

1. repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r22 報如下錯誤:

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
fatal: cloning the git-repo repository failed, will remove '.repo/repo'

解決辦法:

執行以上兩步,不再報“fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle”錯誤

2. repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r22 --repo-url ~/Dwonloads/clone.bundle 報如下錯誤:

curl: Failed to connect to android.googlesource.com port 443: Connection refused
fatal: unable to access 'https://android.googlesource.com/platform/manifest/': Failed to connect to android.googlesource.com port 443: Connection refused
fatal: unable to access 'https://android.googlesource.com/platform/manifest/': Failed to connect to android.googlesource.com port 443: Connection refused
fatal: cannot obtain manifest https://android.googlesource.com/platform/manifest

解決辦法:

  • a.git config --global http:proxy 172.16.1.199:808
  • b.172.16.1.199是我的代理服務器,808是端口號

修改後,再次repo init成功

3.sudo apt-get install openjdk-7-jdk報如下錯誤:

E: Package 'openjdk-7-jdk' has no installation candidate

解決辦法:

  • a.由於使用的是Ubuntu16.04,該版本的安裝源默認沒有openjdk7,所以需要手動添加倉庫,執行如下命令

    sudo add-apt-repository ppa:openjdk-r/ppa
    sudo apt-get update
    sudo apt-get install openjdk-7-jdk

  • b.執行sudo apt-get update報錯如下錯誤:

     W: The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release' does not have a Release file.
     N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
     N: See apt-secure(8) manpage for repository creation and user configuration details.
     E: Failed to fetch http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
     E: Some index files failed to download. They have been ignored, or old ones used instead.
    

    解決辦法:

    • a.在/etc/apt/sources.list.d目錄下,降fcitx-team*.list文件修改爲fcitx-team*.list.bak文件,或者直接去掉相關文件
    • b.修改後ok
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章