Error:add_group: name git_submodules already present

Hi,guys. I’m new here and I encounter some problem.
While I type /home/anatole/ardupilot/Tools/autotest/sim_vehicle.py -v ArduSub in my terminal window then it showed this and said " build failed"

SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at SITL location
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/home/anatole/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Setting top to : /home/anatole/ardupilot
Setting out to : /home/anatole/ardupilot/build
Autoconfiguration : enabled
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 3.6.9 : 3.10.12
Setting board to : sitl
Using toolchain : native
Checking for ‘g++’ (C++ compiler) : /usr/bin/g++
Checking for ‘gcc’ (C compiler) : /usr/bin/gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
CXX Compiler : g++ 11.4.0
Checking for need to link with librt : not necessary
Checking for feenableexcept : yes
Enabling -Werror : yes
Enabled OpenDroneID : no
Enabled firmware ID checking : no
GPS Debug Logging : no
Enabled custom controller : yes
Checking for HAVE_CMATH_ISFINITE : yes
Checking for HAVE_CMATH_ISINF : yes
Checking for HAVE_CMATH_ISNAN : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : yes
Checking for header endian.h : yes
Checking for header byteswap.h : yes
Checking for HAVE_MEMRCHR : yes
Configured VSCode Intellisense: : no
DC_DSDL compiler : /home/anatole/ardupilot/modules/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Checking for program ‘size’ : /usr/bin/size
Benchmarks : disabled
Unit tests : enabled
Scripting : maybe
Scripting runtime checks : enabled
Debug build : disabled
Coverage build : disabled
Force 32-bit build : disabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (0.838s)
{‘waf_target’: ‘bin/ardusub’, ‘default_params_filename’: ‘default_params/sub.parm’, ‘model’: ‘vectored’, ‘sitl-port’: True}
SIM_VEHICLE: Building
SIM_VEHICLE: “/home/anatole/ardupilot/modules/waf/waf-light” “build” “–target” “bin/ardusub”
Waf: Entering directory `/home/anatole/ardupilot/build/sitl’
Embedding file locations.txt:Tools/autotest/locations.txt
Embedding file models/Callisto.json:Tools/autotest/models/Callisto.json
Embedding file models/plane-3d.parm:Tools/autotest/models/plane-3d.parm
Embedding file models/plane.parm:Tools/autotest/models/plane.parm
Embedding file models/xplane_heli.json:Tools/autotest/models/xplane_heli.json
Embedding file models/xplane_plane.json:Tools/autotest/models/xplane_plane.json
Embedding file locations.txt:Tools/autotest/locations.txt
Embedding file models/Callisto.json:Tools/autotest/models/Callisto.json
Embedding file models/plane-3d.parm:Tools/autotest/models/plane-3d.parm
Embedding file models/plane.parm:Tools/autotest/models/plane.parm
Embedding file models/xplane_heli.json:Tools/autotest/models/xplane_heli.json
Embedding file models/xplane_plane.json:Tools/autotest/models/xplane_plane.json
add_group: name git_submodules already present
SIM_VEHICLE: Build failed
SIM_VEHICLE: Killing tasks

Hi! Have the same error. But, as it turned out, this is because I accidentally copied the ardupilot directory inside itself. I.e. inside ardupilot there was another copy of ardupilot with all the waf scripts and the add_group operation was called twice with the same name of group (“git_submodules”).