Open kwanxian opened 4 months ago
经过多次测试,均以失败告终。 更换源
vi userpatches/config-example.conf
CHINA_DOWNLOAD_MIRROR="tsinghua"
更改NAMESERVER地址
./build.sh NAMESERVER=223.5.5.5
output/debug/install.log 错误提示
W: Failed to fetch http://repo.huaweicloud.com/ubuntu-ports/dists/jammy/InRelease Could not resolve 'repo.huaweicloud.com'
W: Failed to fetch http://repo.huaweicloud.com/ubuntu-ports/dists/jammy-security/InRelease Could not resolve 'repo.huaweicloud.com'
W: Failed to fetch http://repo.huaweicloud.com/ubuntu-ports/dists/jammy-updates/InRelease Could not resolve 'repo.huaweicloud.com'
W: Failed to fetch http://repo.huaweicloud.com/ubuntu-ports/dists/jammy-backports/InRelease Could not resolve 'repo.huaweicloud.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
我现在使用国内镜像(userpatches/config-default.conf 中 CHINA_DOWNLOAD_MIRROR具有值时),为CM4编译时在最终的Installing [xxx.deb] 阶段也出现了大量unable to fetch error
我通过将CHINA_DOWNLOAD_MIRROR注释掉解决了这个问题。推测可能是国内源适配问题
One more thing: I've used a proxy.
我现在使用国内镜像(userpatches/config-default.conf 中 CHINA_DOWNLOAD_MIRROR具有值时),为CM4编译时在最终的Installing [xxx.deb] 阶段也出现了大量unable to fetch error
我通过将CHINA_DOWNLOAD_MIRROR注释掉解决了这个问题。推测可能是国内源适配问题
改成ustc源就可以了
请问要换成ustc源具体需要怎么操作?直接修改/etc/apt/source.list文件吗?
请问要换成ustc源具体需要怎么操作?直接修改/etc/apt/source.list文件吗?
scripts/configuration.sh 新增:
if [[ ${CHINA_DOWNLOAD_MIRROR} == ustc ]]; then
DEBIAN_MIRROR='mirrors.ustc.edu.cn/debian'
DEBIAN_SECURTY='mirrors.ustc.edu.cn/debian-security'
UBUNTU_MIRROR='mirrors.ustc.edu.cn/ubuntu-ports/'
fi
userpatches/config-example.conf
KERNEL_CONFIGURE="" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt
CLEAN_LEVEL="debs,oldcache" # comma-separated list of clean targets: "make" = make clean for selected kernel and u-boot,
# "debs" = delete packages in "./output/debs" for current branch and family,
# "alldebs" = delete all packages in "./output/debs", "images" = delete "./output/images",
# "cache" = delete "./output/cache", "sources" = delete "./sources"
# "oldcache" = remove old cached rootfs except for the newest 8 files
DEST_LANG="en_US.UTF-8" # sl_SI.UTF-8, en_US.UTF-8
# advanced
EXTERNAL_NEW="prebuilt" # compile and install or install prebuilt additional packages
INSTALL_HEADERS="" # install kernel headers package
LIB_TAG="master" # change to "branchname" to use any branch currently available.
USE_TORRENT="yes" # use torrent network for faster toolchain and cache download
DOWNLOAD_MIRROR="china" # set to "china" to use mirrors.tuna.tsinghua.edu.cn
BOARD=""
BRANCH=""
RELEASE=""
WIREGUARD="no"
BUILD_KSRC="no"
INSTALL_KSRC="no"
IGNORE_UPDATES="yes"
COMPRESS_OUTPUTIMAGE="gz"
NO_APT_CACHER="no"
CHINA_DOWNLOAD_MIRROR="ustc"
#install_balena_etcher="yes"
#install_zfs="yes"
#install_docker="yes"
#install_chromium="yes"
#install_firefox="yes"
当前分支:next - 55155f1d 构建目标:orangepizero2w (1GB), server standard/minimal 构建环境:ubuntu 22.04.3
deb构建成功的,但一直无法安装![image](https://github.com/orangepi-xunlong/orangepi-build/assets/25222988/83b04598-09e8-4b0c-98c5-8c2f0e91caeb)