鲁班猫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注释

相关推荐
groundhappy14 小时前
idalib安装和codex ida-mcp配置
linux·开发语言·python
通信小小昕15 小时前
Ubuntu 26.04 中文输入法安装
linux·运维·ubuntu
张小姐的猫16 小时前
【Linux】网络编程 —— HTTP协议(上)
linux·运维·服务器·网络·http·单例模式·策略模式
栩栩云生16 小时前
AI 写代码犯的错,早被写进了错题集
linux·安全·ai编程
imc.1117 小时前
linux基础IO
linux·运维·服务器
BelongPanda19 小时前
Linux Nginx 纯手动 Let‘s Encrypt 泛域名证书配置教程
linux·nginx
酷可达拉斯19 小时前
Linux操作系统-shell编程(0)
linux·运维·服务器·python·云计算
2301_7779983420 小时前
Linux中断机制:操作系统如何高效运行
linux·运维·服务器
yunwei3720 小时前
eBPF 教程:检查 exec 后真正安装的可执行镜像
linux·开源
笑锝没心没肺20 小时前
yum update 报错:GPG key retrieval failed: [Errno 14] HTTPS Error 404 - Not Found
linux·运维·服务器