Closed HuaYuXiao closed 9 months ago
According to https://github.com/fishros/install/issues/22#issuecomment-1446536778, after I replaced . fishros
with bash fishros
,
(base) hyx020222@MacBook-Pro-4 ~ % wget http://fishros.com/install -O fishros && bash fishros
--2023-12-05 09:12:09-- 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]
--2023-12-05 09:12:09-- http://fishros.com/install/
Reusing existing connection to fishros.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 582 [application/octet-stream]
Saving to: ‘fishros’
fishros 100%[================================================================================================================>] 582 --.-KB/s in 0s
2023-12-05 09:12:09 (29.2 MB/s) - ‘fishros’ saved [582/582]
Password:
The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.
--2023-12-05 09:12:13-- 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: 44694 (44K) [application/octet-stream]
Saving to: ‘/tmp/fishinstall/tools/base.py’
/tmp/fishinstall/tools/base.py 100%[================================================================================================================>] 43.65K --.-KB/s in 0.1s
2023-12-05 09:12:13 (398 KB/s) - ‘/tmp/fishinstall/tools/base.py’ saved [44694/44694]
WARN:No Yaml Module!
Traceback (most recent call last):
File "/tmp/fishinstall/install.py", line 122, in <module>
main()
File "/tmp/fishinstall/install.py", line 57, in main
from tools.base import CmdTask,FileUtils,PrintUtils,ChooseTask,ChooseWithCategoriesTask
File "/private/tmp/fishinstall/tools/base.py", line 775, in <module>
osversion = GetOsVersion()
File "/private/tmp/fishinstall/tools/base.py", line 105, in GetOsVersion
import distro
ModuleNotFoundError: No module named 'distro'
fishros: line 16: /Users/hyx020222/.bashrc: No such file or directory
Answer from Copilot:
看起来您正在尝试在macOS上使用apt
命令,这是一个在Debian和Ubuntu等Linux发行版中常用的软件包管理工具。然而,macOS上的apt
命令实际上是Java SE开发工具包(JDK)中已被弃用的注解处理工具的占位符。这个命令会尝试调用当前已安装的JDK中的对应工具,如果无法执行则会打印错误信息。
在这种情况下,apt
工具在JDK 8(也称为1.8)及更高版本中已被移除,只有在安装JDK 7或更早版本时才能找到。但是,即使解决了这个问题,您也无法通过apt
命令在macOS上安装软件,因为这是一个完全不同的工具,只是恰好与apt
命令同名。
谢谢,我已经解决了这个问题。祝好—————————————华羽霄系统设计与智能制造学院南方科技大学深圳 @.+86-13701490089On Dec 7, 2023, at 16:46, Yinan Qin @.> wrote: 此问题是由于,macOS并没有ROS2的二进制发行版本,因此,我们无法编写一个一键安装程序在macOS上使用。 但是,由于macOS支持docker,因此,可以尝试使用docker安装。 目前的安装程序仅在Ubuntu上可以使用
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>