Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turtlebot4_setup.sh fails on Raspberry Pi 5 if script detects kernel upgrade needed #18

Open
slowrunner opened this issue Jan 12, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@slowrunner
Copy link

slowrunner commented Jan 12, 2025

Robot Model

Turtlebot4 Lite

ROS distro

Humble

Networking Configuration

Simple Discovery

OS

Other Linux

Built from source or installed?

Installed

Package version

Jazzy turtlebot4_setup.sh

Expected behaviour

Following instructions at https://github.com/turtlebot/turtlebot4_setup/tree/jazzy

turtlebot4_setup.sh should install turtlebot4-setup

Actual behaviour

turtlebot4_setup.sh script failed to complete because script determined kernel upgrade required

Error messages

...
Diagnostics:
  The currently running kernel version is not the expected kernel version 6.8.0-1017-raspi.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.
...

(Complete console output attached)

and subsequently:

ubuntu@TB5WaLI:~$ turtlebot4-setup
turtlebot4-setup: command not found

To Reproduce

Following instructions in https://github.com/turtlebot/turtlebot4_setup/tree/jazzy

I ran:

wget -qO - https://raw.githubusercontent.com/turtlebot/turtlebot4_setup/jazzy/scripts/turtlebot4_setup.sh | bash

and after reboot, found that turtlebot4-setup was not installed.

The console output included:

Diagnostics:
  The currently running kernel version is not the expected kernel version 6.8.0-1017-raspi.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.

I rebooted and repeated the turtlebot4_setup.sh invocation:

wget -qO - https://raw.githubusercontent.com/turtlebot/turtlebot4_setup/jazzy/scripts/turtlebot4_setup.sh | bash

and the setup succeeded (albeit it asked for my password):

Setting up ros-jazzy-turtlebot4-navigation (2.0.1-1noble.20241229.075007) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Scanning processes...                                                                                                                                                   
Scanning processor microcode...                                                                                                                                         
Scanning linux images...                                                                                                                                                

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
[sudo] password for ubuntu: 
Cloning into 'turtlebot4_setup'...
remote: Enumerating objects: 481, done.
remote: Counting objects: 100% (110/110), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 481 (delta 78), reused 56 (delta 56), pack-reused 371 (from 2)
Receiving objects: 100% (481/481), 115.60 KiB | 1.58 MiB/s, done.
Resolving deltas: 100% (260/260), done.
mv: failed to preserve ownership for '/boot/firmware/cmdline.txt': Operation not permitted
mv: failed to preserve ownership for '/boot/firmware/config.txt': Operation not permitted
export ROBOT_SETUP=/etc/turtlebot4/setup.bash
source $ROBOT_SETUP
source /etc/turtlebot4/aliases.bash
Installation complete. Reboot then run turtlebot4-setup to configure the robot.

Failed_turtlebot4_setup.sh.txt

Other notes

Workaround: Add to README.md document a step to update/upgrade step before running the turtlebot4_setup.sh script

Perform update/upgrade and reboot before continuing:  

sudo apt update 
sudo apt upgrade -y
sudo reboot
@slowrunner slowrunner added the bug Something isn't working label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants