linux - 如何解决找不到apt-get命令

标签 linux ubuntu apt-get

大家好,我是 ubuntu 和 linux 的新手,我正在研究 baxter 机器人,我有几个问题.. 当我按照指南步骤操作时,我有一个命令需要编辑 gedit 文件并写入我的电脑的主机名和 ip_address :

gedit baxter.sh  

我做了几次,当我在写的时候建立了 ssh 连接:

. baxter.sh

我不是:

EXITING - Please edit this file, modifying the 'baxter_hostname' variable to reflect Baxter's current hostname.

之后我在 rosrun、apt-get、rosnode 命令上遇到错误

sudo: apt-get command not found

当我第一次更改 baxter.sh 的 ip 地址和主机名时,它起作用了,但那次我没有收到那个提示,我不知道这是否与更多信息相关。 感谢帮助

最佳答案

修复

EXITING - Please edit this file, modifying the 'baxter_hostname' variable to reflect Baxter's current hostname.

第一步是确保设置 baxter 主机名。根据 baxter sdk guide :

Baxter's hostname is defaulted as the robot's serial number. The serial number can be located on the back of the robot, next to the power button.

Alternatively, you can find your robot's hostname by plugging a USB keyboard into the back of Baxter and pressing Ctrl+Alt+F3.

您可以通过在终端中打开文件(通过 gedit)来编辑它,或者您可以使用文件浏览器导航到该文件并在文本编辑器中进行更改。

修复

sudo: apt-get command not found

检查一些 documentation on the baxter.sh script .

关于linux - 如何解决找不到apt-get命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44226588/

相关文章:

linux - 确定嵌入式设备上是否存在内存泄漏

ubuntu - java.lang.NoSuchFieldError : IBM_JAVA 错误

c++ - Cassandra CPP 驱动程序

运行命令 apt update (tensorflow/tensorflow :1. 5.0-devel-gpu-py3) 时,Docker 容器卡在 0% [Working]

ubuntu - 使用 `apt-get` 时,如何以编程方式跳过粉色 Ubuntu 用户提示?

linux - 巴什 |将文件排序到子目录

需要 Linux 库监控工具

javascript - Unable to start mongodb service in ubuntu failed to connect on Ubuntu 20.04

linux - 如何使我的程序可通过 linux 存储库安装(例如,使用 apt-get)?

linux - Emacs Lisp 中的无效函数