How upgrade robot hat and pidog V1 raspberry pi4/B 8GB

Help me

How upgrade version robot hat ‘2.3.5’ to ‘2.5.1’

How upgrade version pidog "1.3.9” to “1.3.10a1”

To update and upgrade robot-hat:
cd ~/robot-hat
git checkout -f 2.5.x
sudo python3 install.py

To update and upgrade pidog:
cd ~/pidog
git pull
sudo pip3 install . --break
Please try these commands and see if the update and upgrade process completes normally.