Code: Select all
.repo/repo/repo sync -l
Code: Select all
repo/repo sync -l
Code: Select all
error: command 'sync' requires repo to be installed first.
Use "repo init" to install it here.
我目前的構建環境是
Code: Select all
# 使用基礎映像,例如 Ubuntu
FROM ubuntu:22.04
# 設定時區為台北
ENV TZ=Asia/Taipei
# 設定時區
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 設定 locale
RUN apt-get update && apt-get install -y locales \
&& locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8
# 設定語言環境變數
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8
# 安裝必要的工具
RUN apt-get update && apt-get install -y \
sudo wget curl vim less net-tools iputils-ping iproute2 \
bash-completion git ssh bash
# 更新並安裝所需的軟體包
RUN apt-get install -y make gcc libssl-dev \
liblz4-tool expect expect-dev g++ patchelf chrpath gawk texinfo chrpath \
diffstat binfmt-support qemu-user-static live-build bison flex fakeroot \
cmake gcc-multilib g++-multilib unzip device-tree-compiler ncurses-dev \
libgucharmap-2-90-dev bzip2 expat gpgv2 cpp-aarch64-linux-gnu libgmp-dev \
libmpc-dev bc python-is-python3 python2 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# 安裝 Python 2
RUN ln -sf /usr/bin/python2 /usr/bin/python