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

相关推荐
春日见6 小时前
如何入门端到端自动驾驶?
linux·人工智能·算法·机器学习·自动驾驶
dys_Codemonkey6 小时前
如何在树莓派上用 VS Code 优雅直连内部的 Ubuntu 子系统/容器用来访问容器内的文件和代码?
linux·运维·ubuntu·树莓派
炸膛坦客6 小时前
Linux - Ubuntu - PC端:(五)shell 操作(终端命令,2026)→ 3)基础命令,27 个常用命令
linux·ubuntu
·醉挽清风·7 小时前
学习笔记—Linux—文件IO
linux·服务器·学习
宁波阿成7 小时前
OpenClaw 在 Ubuntu 22.04.5 LTS 上的安装与问题处理记录
java·linux·ubuntu·openclaw·龙虾
徐子元竟然被占了!!7 小时前
Linux的cat
linux·运维·服务器
坐吃山猪9 小时前
Python进度条
linux·服务器·python
IMPYLH10 小时前
Linux 的 b2sum 命令
linux·运维·服务器·bash
celeste031010 小时前
Redis Summary
linux·运维·服务器·redis·笔记
Sylvan.C10 小时前
Windows+Ubuntu 双系统安装超详细保姆级教程2026,包括系统安装、英伟达独显驱动安装以及双系统时间同步的所有过程
linux·运维·ubuntu