Skip to content

Commit c8ca000

Browse files
committed
some extra trouble shooting added
1 parent 660108e commit c8ca000

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

_pages/shared_pages/ros-related-pages/simulation-gazebo.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,43 @@ We can add some items by just adding items as we included the sun and the ground
285285
You can change the position and orientation of any object which you have added with the `<pose>x y z roll pitch yaw</pose>` tag. Probably the easiest is to design the world in Gazebo and directly save there.
286286

287287
{: .notice--info}
288-
Don't forget to add your /world folder directory in the **setup.py**
288+
Don't forget to add your /world folder directory in the **setup.py**
289+
290+
# Troubleshooting
291+
292+
## Cannot do "sudo apt update"
293+
The problem is either about your internet connection or ROS 2 GPG Key. First make sure that you have internet. Afterwards open a new terminal and paste this command: `sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg`
294+
295+
296+
Now you can:
297+
```
298+
sudo apt update
299+
sudo apt upgrade
300+
```
301+
302+
## Getting "cache lock" error
303+
It might be your **lock-frontend** process blocking the system. Find its process id (PID) and kill the process:
304+
305+
```
306+
sudo lsof /var/lib/dpkg/lock-frontend
307+
```
308+
309+
Use this PID and replace \<PID\> in the next command:
310+
311+
```
312+
sudo kill -9 <PID>
313+
```
314+
315+
## Robot looks weird on Gazebo
316+
That is such an annoying problem but let's try. Probably your ros2-control packages are outdated and ´sudo apt upgrade´ cannot fix them - IDK why. We can remove them and reinstall them. Try using these commands:
317+
318+
```
319+
sudo apt remove ros-foxy-ros2-control*
320+
sudo apt remove ros-foxy-gazebo-*
321+
sudo apt update
322+
sudo apt upgrade
323+
sudo apt install ros-foxy-ros2-control*
324+
sudo apt install ros-foxy-gazebo-*
325+
```
326+
327+
and then restart the VM.

0 commit comments

Comments
 (0)