AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[ros](ubuntu)

Martin Hope
abhijith krishnan
Asked: 2024-02-09 23:40:08 +0800 CST

有什么办法可以在树莓派 5 中使用 Ubuntu 22.04 版本

  • 5

我已经购买了全新的树莓派 5,但无法使用 23.10 以外的任何 ubuntu 版本。我需要在 pi 5 中安装 ros 2,但在 23.10 版本中无法安装。那么有什么方法可以在 pi 5 上使用较低的 ubuntu 版本,或者可以在 23.10 版本中安装 ros 2。谢谢

ros
  • 1 个回答
  • 62 Views
Martin Hope
Gautham 005
Asked: 2024-02-01 06:30:26 +0800 CST

我如何摆脱这个错误,每当我尝试使用 sudo apt update 时都会收到此错误![复制]

  • 5
这个问题在这里已经有了答案:
以下密钥 ID 1397BC53640DB551 没有可用的公钥 (2 个答案)
昨天关门了。

在此输入图像描述

sudo apt update所以这就是每当我尝试在终结者上使用时出现的错误

ros
  • 1 个回答
  • 55 Views
Martin Hope
Akash
Asked: 2021-10-18 22:47:24 +0800 CST

CMAKE_C_COMPILER: /usr/local/bin/cc 不是现有编译器工具的完整路径

  • 0

我知道互联网上有很多类似的问题,但我什么都试过了。但是我做错了什么,没有任何效果。

  The CMAKE_C_COMPILER:

    /usr/local/bin/cc

  is not a full path to an existing compiler tool.

我可以在 usr/bin 下找到 gcc、g++ 文件,但在错误中,它会在 usr/local/bin 上搜索编译器。

set(CATKIN_TOPLEVEL TRUE)
set(CMAKE_C_COMPILER "/usr/bin/cc")

即使我更改了编译器的 CMake 列表中的路径。仍然没有运气,顺便说一句,我正在使用 ros1 和 ubuntu。当我尝试 catkin_make 我的工作区时,我遇到了这个错误。

ros
  • 1 个回答
  • 1432 Views
Martin Hope
user1133321
Asked: 2020-10-05 21:21:43 +0800 CST

每次打开 Ubuntu 终端时都没有这样的文件或目录

  • 0

我是 ubuntu 的新手,我正在尝试添加

echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc

然后我重新加载了.bashrc

source ~/.bashrc

现在我被这个困住了 - 每次我启动终端时,我都会首先得到这个:截图 #1

bash: /catkin_ws/devel/setup.bash: No such file or directory
bash: /home/ros/Home/catkin_ws/devel/setup.bash: No such file or directory

编辑:在cat ~/.bashrc我得到以下(文件的最后几行)之后:

else 
    if [ -f "/home/ros/anaconda3/etc/profile.d/conda.sh" ]; then 
        ."/home/ros/anaconda3/etc/profile.d/conda.sh"
    else 
        export PATH="/home/ros/anaconda3/bin:$PATH" 
    fi
fi
unset __conda_setup 
# <<< conda initialize <<<

source /opt/ros/noetic/setup.bash 
source /catkin_ws/devel/setup.bash 
source ~/catkin_ws/devel/setup.bash 
source ~/catkin_ws/devel/setup.bash 
source ~/catkin_ws/devel/setup.bash 
source ~/Home/catkin_ws/devel/setup.bash 
source ~/catkin_ws/devel/setup.bash 
source ~/catkin_ws/devel/setup.bash 
source ~/catkin_ws/devel/setup.bash 

并ls ~/catkin_ws/devel给出:

cmake.lock  local_setup.bash  setup.bash      setup.zsh
env.sh      local_setup.sh    setup.sh        share
lib         local_setup.zsh   _setup_util.py

截图#2

bashrc ros
  • 1 个回答
  • 2269 Views
Martin Hope
Bilal
Asked: 2020-09-16 00:42:17 +0800 CST

安装 ROS Melodic 后终端上出现奇怪的消息

  • 0

在我的 Ubuntu 18.0.4 LTS 上安装 ROS Melodic,我按照一些安装说明进行操作,之后,每当我启动终端或更改为 root 时,我都会收到此消息sudo -s

Reading: command not found
Building: command not found
Reading: command not found

请问我该如何解决?

gnome-terminal ros 18.04
  • 1 个回答
  • 125 Views
Martin Hope
Teo Protoulis
Asked: 2019-07-04 08:57:49 +0800 CST

如何在 Ubuntu 19.04 上安装 ROS Melodic?

  • 1

我正在尝试在 Ubuntu 19.04 上安装 ROS Melodic,并已完成所有适当的准备工作,我正在使用以下命令:

sudo apt install ros-melodic-desktop-full

我收到以下错误:

Unable to locate package ros-melodic-desktop-full

关于我应该做什么的任何想法?

software-installation ros 19.04
  • 1 个回答
  • 4992 Views
Martin Hope
Dr Drill
Asked: 2019-06-24 19:44:30 +0800 CST

如何更改catkin包的描述?

  • 0

我应该使用什么命令来更改描述(第 5 行)

cat package.xml<?xml version="1.0"?>
<package format="2">
  <name>beginner_tutorials</name>
  <version>0.0.0</version>
  <description>The beginner_tutorials package</description>

  <!-- One maintainer tag required, multiple allowed, one person per tag -->
  <!-- Example:  -->
  <!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
  <maintainer email="[email protected]">adriel</maintainer>


  <!-- One license tag required, multiple allowed, one license per tag -->
  <!-- Commonly used license strings: -->
  <!--   BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
  <license>TODO</license>


  <!-- Url tags are optional, but multiple are allowed, one per tag -->
  <!-- Optional attribute type can be: website, bugtracker, or repository -->
  <!-- Example: -->
  <!-- <url type="website">http://wiki.ros.org/beginner_tutorials</url> -->


  <!-- Author tags are optional, multiple are allowed, one per tag -->
  <!-- Authors do not have to be maintainers, but could be -->
  <!-- Example: -->
  <!-- <author email="[email protected]">Jane Doe</author> -->


  <!-- The *depend tags are used to specify dependencies -->
  <!-- Dependencies can be catkin packages or system dependencies -->
  <!-- Examples: -->
  <!-- Use depend as a shortcut for packages that are both build and exec dependencies -->
  <!--   <depend>roscpp</depend> -->
  <!--   Note that this is equivalent to the following: -->
  <!--   <build_depend>roscpp</build_depend> -->
  <!--   <exec_depend>roscpp</exec_depend> -->
  <!-- Use build_depend for packages you need at compile time: -->
  <!--   <build_depend>message_generation</build_depend> -->
  <!-- Use build_export_depend for packages you need in order to build against this package: -->
  <!--   <build_export_depend>message_generation</build_export_depend> -->
  <!-- Use buildtool_depend for build tool packages: -->
  <!--   <buildtool_depend>catkin</buildtool_depend> -->
  <!-- Use exec_depend for packages you need at runtime: -->
  <!--   <exec_depend>message_runtime</exec_depend> -->
  <!-- Use test_depend for packages you need only for testing: -->
  <!--   <test_depend>gtest</test_depend> -->
  <!-- Use doc_depend for packages you need only for building documentation: -->
  <!--   <doc_depend>doxygen</doc_depend> -->
  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>roscpp</build_depend>
  <build_depend>rospy</build_depend>
  <build_depend>std_msgs</build_depend>
  <build_export_depend>roscpp</build_export_depend>
  <build_export_depend>rospy</build_export_depend>
  <build_export_depend>std_msgs</build_export_depend>
  <exec_depend>roscpp</exec_depend>
  <exec_depend>rospy</exec_depend>
  <exec_depend>std_msgs</exec_depend>


  <!-- The export tag contains other, unspecified, tags -->
  <export>
    <!-- Other tools can request additional information be placed here -->

  </export>
</package>
package-management command-line ros cat
  • 1 个回答
  • 358 Views
Martin Hope
Dr Drill
Asked: 2019-06-22 18:08:08 +0800 CST

无法解决“packages.ros.org.ros”

  • 0

我最近安装了 Ubuntu 16.04 版并尝试在我的笔记本电脑上安装 ROS 动力学。但是,我在运行sudo apt-get update.

这是结果:

Err:1 http://packages.ros.org.ros/ubuntu xenial InRelease
  Could not resolve 'packages.ros.org.ros'
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease              
Hit:3 http://id.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://id.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://id.archive.ubuntu.com/ubuntu xenial-backports InRelease
Reading package lists... Done
W: Failed to fetch http://packages.ros.org.ros/ubuntu/dists/xenial/InRelease  Could not resolve 'packages.ros.org.ros'
W: Some index files failed to download. They have been ignored, or old ones used instead.

我已经在网上搜索了很长时间的解决方案,但似乎仍然无法解决问题。

package-management updates apt ros 16.04
  • 1 个回答
  • 2538 Views
Martin Hope
Dinesh Lama
Asked: 2018-06-05 10:03:44 +0800 CST

我可以对触摸屏进行编程吗?

  • 2

每当用户触摸或使用手写笔触摸 Ubuntu 16.04 中的屏幕时,我都想读取 x,y 坐标。这是因为我在我的 Ubuntu 上使用 ROS,并且我想从另一个带有触摸屏的设备上控制 ROS 节点。

在此之前,我尝试在Android中使用rosjava,但是在发现Ubuntu 16.04支持触摸屏后,我也觉得应该有一些方法可以访问用户在屏幕中触摸位置的x,y或压力数据。但是,我在互联网上没有找到任何示例代码或方法。

有人可以给我看一下触摸屏编程指南吗?

touchscreen ros
  • 1 个回答
  • 178 Views
Martin Hope
ravi
Asked: 2018-05-31 05:38:27 +0800 CST

由于损坏的包而陷入未满足的依赖项的无限循环

  • 0

我在SO中发布了这个问题,但没有找到任何建议。因此,我在这里发布希望。这个问题可能与其他问题重复,但是我已经尝试了他们的解决方案,但没有取得任何成功。我最近使用以下命令删除了 ROS Indigo -

ravi@lab:~$ sudo apt-get remove ros-*
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

现在,我需要它。所以我尝试使用以下命令再次安装它 -

ravi@lab:~$ sudo apt-get install ros-indigo-desktop-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-indigo-desktop-full : Depends: ros-indigo-perception but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

不幸的是,以上没有奏效。所以我尝试安装依赖项但没有成功-

ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
ravi@lab:~$ sudo dpkg --configure -a
ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

我尝试手动安装依赖ros-indigo-perception项但没有机会-

ravi@lab:~$ sudo apt-get install ros-indigo-perception
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-indigo-perception : Depends: ros-indigo-perception-pcl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试了更多并考虑安装另一个依赖ros-indigo-perception-pcl项,但徒劳无功-

ravi@lab:~$ sudo apt-get install ros-indigo-perception-pcl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-indigo-perception-pcl : Depends: ros-indigo-pcl-conversions but it is not going to be installed
                             Depends: ros-indigo-pcl-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

仍在尝试没有任何成功-

ravi@lab:~$ sudo apt-get install ros-indigo-pcl-conversions
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-indigo-pcl-conversions : Depends: libpcl-1.7-all but it is not going to be installed
                              Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ravi@lab:~$ sudo apt-get install libpcl-1.7-all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libpcl-1.7-all : Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ravi@lab:~$ sudo apt-get install libpcl-1.7-all-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libpcl-1.7-all-dev : Depends: libpcl-apps-1.7-dev but it is not going to be installed
                      Depends: libpcl-io-1.7-dev but it is not going to be installed
                      Depends: libpcl-outofcore-1.7-dev but it is not going to be installed
                      Depends: libpcl-people-1.7-dev but it is not going to be installed
                      Depends: libpcl-recognition-1.7-dev but it is not going to be installed
                      Depends: libpcl-visualization-1.7-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我的目标是在我的 Ubuntu 14.04 LTS PC 上安装 ROS Indigo(无需重新安装操作系统:D)

请问有什么办法吗?

package-management dependencies apt ros 14.04
  • 2 个回答
  • 2431 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve