sudo systemctl stop motioneye
sudo rm -rf /opt/motioneye
sudo rm -f /usr/local/bin/meyectl /usr/local/bin/motioneye_init
cd /opt
sudo git clone https://github.com/motioneye-project/motioneye.git
cd motioneye
sudo python3 -m pip install --break-system-packages .
sudo motioneye_init