天天看點

樹莓派4B(Pi buster)一鍵安裝apt存在問題,WARNING: apt does not have a stable CLI interface

樹莓派4B(Pi buster)一鍵安裝apt存在問題,WARNING: apt does not have a stable CLI interface

魚香ROS介紹:

魚香ROS是由機器人愛好者共同組成的社群,歡迎一起參與機器人技術交流。

文章資訊:

标題:樹莓派4B(Pi buster)一鍵安裝apt存在問題,WARNING: apt does not have a stable CLI interface

關鍵詞: ​

​樹莓派 4b​

​​,​

​一鍵安裝​

​​,​

​apt存在問題​

​​,

參與者: ​​​huangguoming​​​,​​小魚​​​,

版權聲明: 文章中所有知識産權歸魚香ROS及原作者所有。

1. ​​huangguoming​​喜滋滋的說:

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"]      

2. ​​小魚​​苦兮兮的說:

@huangguoming 完整測試後發現,官方雖然有buster鏡像,但是釋出的包并不全,是以無法完成二進制安裝。建議使用原生系統的小夥伴轉向ubuntu系統。

3. ​​小魚​​掰着手指頭說:

@huangguoming 說一下問題,因為你用的是樹莓派的原生系統,是以一鍵安裝目前不相容,不過如果你願意配合測試,我可以添加對其的支援,因為我看到其系統版本已經被一鍵安裝檢測出來,并且和ubuntu是可以使用相同安裝源的。

4. ​​huangguoming​​苦兮兮的說:

@小魚 嗯嗯,測試如果不麻煩的話,我可以的。但是如果太耗時,估計我搞不過來,我這邊本來也有很多事情。

5. ​​小魚​​看着天空說:

6. ​​huangguoming​​喜滋滋的說:

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"]      

7. ​​小魚​​苦兮兮的說: