选择这个版本的gcc

sudo apt-get install gcc-aarch64-linux-gnu

出错:

prebuilts/build-tools/linux-x86/bin/bison: m4 subprocess failed: 没有那个文件或
目录

安装bison解决

sudo apt-get install bison

出错:

prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loadin
g shared libraries: libncurses.so.5: cannot open shared object file: No such fi
le or directory
15:32:24 ninja failed with: exit status 1

安装libncurses5解决

sudo apt-get install libncurses5

出错

fatal: cannot exec '/home/floder/.repo/reро/git_ssh': 权限不够
fatal: ssh 变体 'simple' 不支持设置端口
fatal: cannot exec '/home/floder/.repo/repo/git_ssh': 权限不够
fatal: ssh 变体 'simple' 不支持设置端口
fatal: cannot obtain manifest ssh://*.*@192.168.100.159:29418/common/manifest

解决:

给git添加可执行权限(路径不同命令不同)

chmod a+x /home/floder/.repo/repo/git_ssh

官方文档:https://docs.docker.com/engine/install/ubuntu/

  1. 安装新版本前需要卸载旧版本。

    sudo apt-get remove docker docker-engine docker.io containerd runc
  2. 允许apt使用https。

     sudo apt-get update
     sudo apt-get install \
        apt-transport-https \
        ca-certificates \
        curl \
        gnupg \
        lsb-release
  3. 导入GPG密钥。

     curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
  4. 添加docker源。

    echo \
      "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  5. 更新apt源,并安装docker。

     sudo apt-get update
     sudo apt-get install docker-ce docker-ce-cli containerd.io
  6. (可选)使用阿里云的容器镜像服务-镜像加速器提升获取Docker官方镜像的速度。

    https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

    通过修改daemon配置文件/etc/docker/daemon.json来使用加速器

    sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.json <<-'EOF'
    {
      "registry-mirrors": ["https://每个人的阿里云账号不同.mirror.aliyuncs.com"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker
  7. 运行docker的hello-world

     sudo docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    b8dfde127a29: Pull complete 
    Digest: sha256:df5f5184104426b65967e016ff2ac0bfcd44ad7899ca3bbcf8e44e4461491a9e
    Status: Downloaded newer image for hello-world:latest
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    
    To generate this message, Docker took the following steps:
     1. The Docker client contacted the Docker daemon.
     2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
        (amd64)
     3. The Docker daemon created a new container from that image which runs the
        executable that produces the output you are currently reading.
     4. The Docker daemon streamed that output to the Docker client, which sent it
        to your terminal.
    
    To try something more ambitious, you can run an Ubuntu container with:
     $ docker run -it ubuntu bash
    
    Share images, automate workflows, and more with a free Docker ID:
     https://hub.docker.com/
    
    For more examples and ideas, visit:
     https://docs.docker.com/get-started/