鱼香ROS介绍:
鱼香ROS是由机器人爱好者共同组成的社区,欢迎一起参与机器人技术交流。
进群加V:fishros2048
文章信息:
标题:树莓派4B(Pi buster)一键安装apt存在问题,WARNING: apt does not have a stable CLI interface
原文地址:https://fishros.org.cn/forum/topic/92
关键词:树莓派 4b
,一键安装
,apt存在问题
,
参与者: huangguoming,小鱼,
版权声明: 文章中所有知识产权归鱼香ROS及原作者所有。
pi@raspberrypi:~ $ wget http://fishros.com/install -O fishros && . fishros --2022-03-30 09:12:53-- http://fishros.com/install
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://fishros.com/install/ [following]
--2022-03-30 09:12:54-- http://fishros.com/install/
Reusing existing connection to fishros.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 300 [application/octet-stream]
Saving to: ‘fishros’
fishros 100%[===================>] 300 --.-KB/s in 0s
2022-03-30 09:12:54 (8.01 MB/s) - ‘fishros’ saved [300/300]
--2022-03-30 09:12:54-- http://fishros.com/install/install1s/tools/base.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36343 (35K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/base.py’
/tmp/fishinstall/to 100%[===================>] 35.49K 200KB/s in 0.2s
2022-03-30 09:12:55 (200 KB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [36343/36343]
Run CMD Task:[dpkg --print-architecture]
[-]Result:success
基础检查通过...
RUN Choose Task:[请输入括号内的数字]
---众多工具,等君来用---
[1]:一键安装:ROS(支持ROS和ROS2,树莓派Jetson)
[2]:一键安装:github桌面版(小鱼常用的github客户端)
[3]:一键配置:rosdep(小鱼的rosdepc,又快又好用)
[4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
[5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
[6]:一键安装:nodejs开发环境(通过nodejs可以预览小鱼官网噢)
[7]:一键安装:VsCode
[8]:一键安装:Docker
[77]:测试模式:运行自定义工具测试
[0]:quit
请输入[]内的数字以选择:1
--2022-03-30 09:13:05-- http://fishros.com/install/install1s/tools/tool_install_ros.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7989 (7.8K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_ros.py’
/tmp/fishinstall/to 100%[===================>] 7.80K --.-KB/s in 0.006s
2022-03-30 09:13:06 (1.31 MB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [7989/7989]
--2022-03-30 09:13:06-- http://fishros.com/install/install1s/tools/tool_config_rosenv.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2307 (2.3K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_config_rosenv.py’
/tmp/fishinstall/to 100%[===================>] 2.25K --.-KB/s in 0.002s
2022-03-30 09:13:06 (1.06 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2307/2307]
--2022-03-30 09:13:06-- http://fishros.com/install/install1s/tools/tool_config_system_source.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3340 (3.3K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_config_system_source.py’
/tmp/fishinstall/to 100%[===================>] 3.26K --.-KB/s in 0.002s
2022-03-30 09:13:06 (1.53 MB/s) - ‘/tmp/fishinstall/tools/tool_config_system_source.py’ saved [3340/3340]
欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
小鱼:检测当前系统debian10.11:buster 支持一键安装ROS
=========接下来这一步很重要,请小白关注,大佬请忽略========
RUN Choose Task:[请输入括号内的数字]
墙裂建议小白一定换源并清理三方源,换源!!!系统默认国外源容易失败!!
[1]:更换系统源再继续安装
[2]:不更换继续安装
[0]:quit
请输入[]内的数字以选择:1
欢迎使用模板工程,本工具由作者小鱼提供
欢迎使用一键换源工具,本工具由[鱼香ROS]小鱼贡献..
RUN Choose Task:[请输入括号内的数字]
请选择换源方式
[1]:仅更换系统源
[2]:更换系统源并清理第三方源
[0]:quit
请输入[]内的数字以选择:2
Run CMD Task:[sudo rm -rf /etc/apt/sources.list]
[-]Result:success
删除一个资源文件
Run CMD Task:[dpkg --print-architecture]
[-]Result:success
检测到当前系统架构为[armhf],正在为你更换对应源..
替换完成,尝试第一次更新....
Run CMD Task:[sudo apt update]
[-]Result:code:100 0 443]uster-security Releaseeee
镜像修复完成.....
Run CMD Task:[sudo apt update]
[-]Result:code:100 0 443]uster-security Releaseeee
你的系统当前apt存在问题,请先使用一键换源处理...若无法处理,请将下列错误信息告知小鱼...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', "E: The repository 'https://mirrors.ustc.edu.cn/ubuntu-ports buster Release' does not have a Release file.\n", "E: The repository 'https://mirrors.ustc.edu.cn/ubuntu-ports buster-updates Release' does not have a Release file.\n", "E: The repository 'https://mirrors.ustc.edu.cn/ubuntu-ports buster-backports Release' does not have a Release file.\n", "E: The repository 'https://mirrors.ustc.edu.cn/ubuntu-ports buster-security Release' does not have a Release file.\n"]
@huangguoming 完整测试后发现,官方虽然有buster镜像,但是发布的包并不全,所以无法完成二进制安装。建议使用原生系统的小伙伴转向ubuntu系统。
@huangguoming 说一下问题,因为你用的是树莓派的原生系统,所以一键安装目前不兼容,不过如果你愿意配合测试,我可以添加对其的支持,因为我看到其系统版本已经被一键安装检测出来,并且和ubuntu是可以使用相同安装源的。
@小鱼 嗯嗯,测试如果不麻烦的话,我可以的。但是如果太耗时,估计我搞不过来,我这边本来也有很多事情。
@huangguoming 不麻烦,QQ上聊,我这边加几行代码就行。
pi@raspberrypi:~ $ wget http://fishros.com/install -O fishros && . fishros --2022-03-30 11:42:31-- http://fishros.com/install
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://fishros.com/install/ [following]
--2022-03-30 11:42:31-- http://fishros.com/install/
Reusing existing connection to fishros.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 300 [application/octet-stream]
Saving to: ‘fishros’
fishros 100%[===================>] 300 --.-KB/s in 0s
2022-03-30 11:42:32 (8.05 MB/s) - ‘fishros’ saved [300/300]
--2022-03-30 11:42:32-- http://fishros.com/install/install1s/tools/base.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36343 (35K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/base.py’
/tmp/fishinstall/to 100%[===================>] 35.49K --.-KB/s in 0.07s
2022-03-30 11:42:32 (486 KB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [36343/36343]
Run CMD Task:[dpkg --print-architecture]
[-]Result:success
基础检查通过...
RUN Choose Task:[请输入括号内的数字]
---众多工具,等君来用---
[1]:一键安装:ROS(支持ROS和ROS2,树莓派Jetson)
[2]:一键安装:github桌面版(小鱼常用的github客户端)
[3]:一键配置:rosdep(小鱼的rosdepc,又快又好用)
[4]:一键配置:ROS环境(快速更新ROS环境设置,自动生成环境选择)
[5]:一键配置:系统源(更换系统源,支持全版本Ubuntu系统)
[6]:一键安装:nodejs开发环境(通过nodejs可以预览小鱼官网噢)
[7]:一键安装:VsCode
[8]:一键安装:Docker
[77]:测试模式:运行自定义工具测试
[0]:quit
请输入[]内的数字以选择:1
--2022-03-30 11:42:44-- http://fishros.com/install/install1s/tools/tool_install_ros.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7989 (7.8K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_install_ros.py’
/tmp/fishinstall/to 100%[===================>] 7.80K --.-KB/s in 0.005s
2022-03-30 11:42:44 (1.66 MB/s) - ‘/tmp/fishinstall/tools/tool_install_ros.py’ saved [7989/7989]
--2022-03-30 11:42:44-- http://fishros.com/install/install1s/tools/tool_config_rosenv.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2307 (2.3K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_config_rosenv.py’
/tmp/fishinstall/to 100%[===================>] 2.25K --.-KB/s in 0s
2022-03-30 11:42:44 (39.1 MB/s) - ‘/tmp/fishinstall/tools/tool_config_rosenv.py’ saved [2307/2307]
--2022-03-30 11:42:44-- http://fishros.com/install/install1s/tools/tool_config_system_source.py
Resolving fishros.com (fishros.com)... 139.9.131.171
Connecting to fishros.com (fishros.com)|139.9.131.171|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4490 (4.4K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/tool_config_system_source.py’
/tmp/fishinstall/to 100%[===================>] 4.38K --.-KB/s in 0.004s
2022-03-30 11:42:45 (1.22 MB/s) - ‘/tmp/fishinstall/tools/tool_config_system_source.py’ saved [4490/4490]
欢迎使用一键安装ROS和ROS2,支持树莓派Jetson,本工具由作者小鱼提供
欢迎使用ROS开箱子工具,本工具由[鱼香ROS]小鱼贡献..
小鱼:检测当前系统debian10.11:buster 支持一键安装ROS
=========接下来这一步很重要,请小白关注,大佬请忽略========
RUN Choose Task:[请输入括号内的数字]
墙裂建议小白一定换源并清理三方源,换源!!!系统默认国外源容易失败!!
[1]:更换系统源再继续安装
[2]:不更换继续安装
[0]:quit
请输入[]内的数字以选择:1
欢迎使用模板工程,本工具由作者小鱼提供
欢迎使用一键换源工具,本工具由[鱼香ROS]小鱼贡献..
RUN Choose Task:[请输入括号内的数字]
请选择换源方式
[1]:仅更换系统源
[2]:更换系统源并清理第三方源
[0]:quit
请输入[]内的数字以选择:2
Run CMD Task:[sudo rm -rf /etc/apt/sources.list]
[-]Result:success
删除一个资源文件
Run CMD Task:[dpkg --print-architecture]
[-]Result:success
检测到当前系统架构为[armhf],正在为你更换对应源..
替换完成,尝试第一次更新....
Run CMD Task:[sudo apt update]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[|] The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY DCC9[/] The following signatures couldn't be verified because the public key is not[|] The following signatures couldn't be verified because the public key is not[-]Err:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[/] The following signatures couldn't be verified because the public key is not[-]Result:code:100 KEY 54404762BBB6E853
更新失败,开始更换导入方式并三次尝试...
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9]
[\]Executing: /tmp/apt-key-gpghome.MXx3s0eCKZ/gpg.1.sh --keyserver keyserver.ubu[-]Result:success
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517]
[\]Executing: /tmp/apt-key-gpghome.JM3MLy1UjS/gpg.1.sh --keyserver keyserver.ubu[-]Result:success
Run CMD Task:[apt-get install debian-keyring debian-archive-keyring]
[/]Package debian-keyring is not available, but is referred to by another packag[-]Result:code:100 has been obsoleted, or
Run CMD Task:[apt-key update]
[\]gpg: key 9165938D90FDDD2E: "Mike Thompson (Raspberry Pi Debian armhf ARMv6+VF[-]Result:success
Run CMD Task:[sudo apt update]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[\]Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf Packages [|]Err:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[-] The following signatures couldn't be verified because the public key is not[/]Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main Translation-en [\]Get:7 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib armhf Packag[|]Get:8 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib Translation-[-]Get:9 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free armhf Packa[/]Get:10 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free Translatio[\]Get:11 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main armhf [|]Get:12 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main Transl[-]Get:13 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main armh[/]Get:14 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main Tran[\]Get:15 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib a[|]Get:16 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib T[-]Get:17 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free [/]Get:18 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free [-]Result:code:100
因为您的这块程序未经过充分测试,所以还是发生了错误,可以联系小鱼进行修复哦~
镜像修复完成.....
Run CMD Task:[sudo apt update]
[|]Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [5[-]Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [/]Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[\]Err:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InR[|] The following signatures couldn't be verified because the public key is not[-]Result:code:100 KEY 54404762BBB6E853
你的系统当前apt存在问题,请先使用一键换源处理...若无法处理,请将下列错误信息告知小鱼...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', "W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 112695A0E562B32A NO_PUBKEY 54404762BBB6E853\n", "E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease' is not signed.\n"]
@huangguoming 完整测试后发现,官方虽然有buster镜像,但是发布的包并不全,所以无法完成二进制安装。建议使用原生系统的小伙伴转向ubuntu系统。