鲁班猫2,lubancat2,linux sdk4.19整编出现的镜像源的问题修复

错误如图所示

c 复制代码
[2026-02-04 22:33:25] lb bootstrap_archive-keys 
Ign:1 http://deb.debian.org/debian buster InRelease
Err:2 http://deb.debian.org/debian buster Release
  404  Not Found [IP: 151.101.74.132 80]
Reading package lists...
E: The repository 'http://deb.debian.org/debian buster Release' no longer has a Release file.
P: Begin unmounting filesystems...
P: Saving caches...
if [ -f binary-tar.tar.gz ]; then \
	tar -jcf linaro-buster-alip-`date +%Y%m%d`-1.config.tar.bz2 auto/ config/ configure; \
	sudo mv binary.contents linaro-buster-alip-`date +%Y%m%d`-1.contents; \
	sudo mv chroot.packages.live linaro-buster-alip-`date +%Y%m%d`-1.packages; \
	sudo mv binary-tar.tar.gz linaro-buster-alip-`date +%Y%m%d`-1.tar.gz; \
	md5sum linaro-buster-alip-`date +%Y%m%d`-1.build-log.txt linaro-buster-alip-`date +%Y%m%d`-1.config.tar.bz2 linaro-buster-alip-`date +%Y%m%d`-1.contents linaro-buster-alip-`date +%Y%m%d`-1.packages linaro-buster-alip-`date +%Y%m%d`-1.tar.gz > linaro-buster-alip-`date +%Y%m%d`-1.md5sums.txt; \
	sha1sum linaro-buster-alip-`date +%Y%m%d`-1.build-log.txt linaro-buster-alip-`date +%Y%m%d`-1.config.tar.bz2 linaro-buster-alip-`date +%Y%m%d`-1.contents linaro-buster-alip-`date +%Y%m%d`-1.packages linaro-buster-alip-`date +%Y%m%d`-1.tar.gz > linaro-buster-alip-`date +%Y%m%d`-1.sha1sums.txt; \
fi
 Failed to run livebuild, please check your network connection. 
VERSION=none TARGET=xfce-full SOC=rk356x ./mk-buster-rootfs.sh
 Building for arm64 
\033[41;36m Run mk-base-debian.sh first \033[0m
ERROR: Running build_debian failed!
ERROR: exit code 255 from line 953:
    RELEASE=$RELEASE TARGET=$RK_ROOTFS_TARGET VERSION=$RK_ROOTFS_DEBUG SOC=$RK_SOC ARCH=$ARCH ./mk-rootfs.sh

可以得知是lb bootstrap_archive-keys命令运行错误,且根据日志追踪,最后在SDK->debian/ubuntu-build-service/buster-xfce-full-arm64目录下面运行了Makefile

同时查看前面,调用的脚本名称为:mk-base-debian.sh

buster-xfce-full-arm64:这个目录是可以通过build.sh脚本推断出来的,因为这是编译debian出现的错误,不太理解的请仔细查看错误日志,对比build.sh脚本去理解

bash 复制代码
make clean

./configure

make

最后不断运行、尝试,发现问题是出现在lb build 2>&1,然后会生成chroot目录,然后里面的etc/apt/source.list文件。打开之后直接替换一下源,同时修改mk-base-debian.sh,将make clean注释

相关推荐
fengyehongWorld4 小时前
TeraTerm ttl脚本登录wsl
linux·teraterm
乌托邦的逃亡者4 小时前
Linux中如何检测IP冲突
linux·运维·tcp/ip
一曦的后花园4 小时前
linux搭建promethes并对接node-exporter指标
linux·运维·服务器
乌托邦的逃亡者5 小时前
CentOS/Openeuler主机中,为一个网卡设置多个IP地址
linux·运维·网络·tcp/ip·centos
念恒123066 小时前
进程控制---自定义Shell
linux·c语言
风曦Kisaki6 小时前
# Linux Shell 编程入门 Day02:条件测试、if 判断、循环与随机数
linux·运维·chrome
李日灐6 小时前
< 6 > Linux 自动化构建工具:makefile 详解 + 进度条实战小项目
linux·运维·服务器·后端·自动化·进度条·makefile
嵌入式×边缘AI:打怪升级日志7 小时前
嵌入式Linux开发:开源组件、第三方库与许可证详解
linux
计算机安禾7 小时前
【Linux从入门到精通】第34篇:搭建FTP与Samba——跨平台文件共享解决方案
linux·运维·服务器
日取其半万世不竭7 小时前
用 Netdata 实时监控服务器,比 Prometheus + Grafana 轻量得多
linux·服务器·网络·系统架构·负载均衡·zabbix·grafana