Failed for submodule update --init --recursive


#1

git submodule update --init --recursive
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/ChibiOS.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’ failed
Failed to clone ‘modules/ChibiOS’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/gbenchmark’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/google/benchmark.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/gbenchmark’ failed
Failed to clone ‘modules/gbenchmark’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/gtest’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/googletest’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/gtest’ failed
Failed to clone ‘modules/gtest’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/libcanard’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/libcanard.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/libcanard’ failed
Failed to clone ‘modules/libcanard’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/mavlink’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/mavlink’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/mavlink’ failed
Failed to clone ‘modules/mavlink’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/uavcan’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/uavcan.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/uavcan’ failed
Failed to clone ‘modules/uavcan’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/waf’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/waf.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/waf’ failed
Failed to clone ‘modules/waf’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/ChibiOS.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’ failed
Failed to clone ‘modules/ChibiOS’ a second time, aborting

I have tried every solution on this page and it doesn’t work, please can someone write another solution. I also deleted repo and tried everything from the beginning and nothing.


#2

Seems there was something amiss upstream from what you shared. Perhaps show all the steps used up to this point.


#3

sudo apt-get install python-dev python-opencv python-wxgtk3.0 python-matplotlib python-pygame python-lxml python-yaml vim git screen -y
[sudo] password for karla:
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-dev is already the newest version (2.7.15~rc1-1).
python-yaml is already the newest version (3.12-1build2).
python-matplotlib is already the newest version (2.1.1-2ubuntu3).
python-pygame is already the newest version (1.9.1release+dfsg-10build1).
python-wxgtk3.0 is already the newest version (3.0.2.0+dfsg-7).
git is already the newest version (1:2.17.1-1ubuntu0.18).
python-lxml is already the newest version (4.2.1-1ubuntu0.6).
screen is already the newest version (4.6.2-1ubuntu1.1).
vim is already the newest version (2:8.0.1453-1ubuntu1.13).
python-opencv is already the newest version (3.2.0+dfsg-4ubuntu0.1).
The following packages were automatically installed and are no longer required:
fonts-lato fonts-liberation2 fonts-opensymbol gir1.2-goa-1.0
gir1.2-gudev-1.0 gir1.2-snapd-1 gir1.2-udisks-2.0 grilo-plugins-0.3-base
gstreamer1.0-gtk3 libccd-dev libccd2 libcdr-0.1-1 libclucene-contribs1v5
libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0
libe-book-0.1-1 libedataserverui-1.2-2 libeot0 libepubgen-0.1-1
libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2
libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6
libgpod-common libgpod4 libgraphviz-dev libgvc6-plugins-gtk
liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmbim-glib4
libmbim-proxy libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libopenal-dev
libqmi-glib5 libqmi-proxy libqqwing2v5 libqtpropertybrowser4
librevenge-0.0-0 libruby2.5 libsgutils2-2 libssh-4 libsuitesparseconfig5
libvncclient1 libwinpr2-2 libxapian30 libxdot4 libxmlsec1 libxmlsec1-nss
lp-solve media-player-info python3-mako python3-markupsafe rake ruby
ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert
ruby-test-unit ruby2.5 rubygems-integration syslinux syslinux-common
syslinux-legacy usb-creator-common usb-modeswitch usb-modeswitch-data
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
karla@karla-Inspiron-5593:~$ sudo apt install python-pip
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.8).
The following packages were automatically installed and are no longer required:
fonts-lato fonts-liberation2 fonts-opensymbol gir1.2-goa-1.0
gir1.2-gudev-1.0 gir1.2-snapd-1 gir1.2-udisks-2.0 grilo-plugins-0.3-base
gstreamer1.0-gtk3 libccd-dev libccd2 libcdr-0.1-1 libclucene-contribs1v5
libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0
libe-book-0.1-1 libedataserverui-1.2-2 libeot0 libepubgen-0.1-1
libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2
libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6
libgpod-common libgpod4 libgraphviz-dev libgvc6-plugins-gtk
liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmbim-glib4
libmbim-proxy libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libopenal-dev
libqmi-glib5 libqmi-proxy libqqwing2v5 libqtpropertybrowser4
librevenge-0.0-0 libruby2.5 libsgutils2-2 libssh-4 libsuitesparseconfig5
libvncclient1 libwinpr2-2 libxapian30 libxdot4 libxmlsec1 libxmlsec1-nss
lp-solve media-player-info python3-mako python3-markupsafe rake ruby
ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert
ruby-test-unit ruby2.5 rubygems-integration syslinux syslinux-common
syslinux-legacy usb-creator-common usb-modeswitch usb-modeswitch-data
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
karla@karla-Inspiron-5593:~$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
karla@karla-Inspiron-5593:~$ sudo pip install MAVProxy==1.8.17
The directory ‘/home/karla/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/karla/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Requirement already satisfied: MAVProxy==1.8.17 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: pymavlink>=2.3.3 in /usr/local/lib/python2.7/dist-packages (from MAVProxy==1.8.17)
Requirement already satisfied: pyserial>=3.0 in /usr/lib/python2.7/dist-packages (from MAVProxy==1.8.17)
Requirement already satisfied: future in ./.local/lib/python2.7/site-packages (from pymavlink>=2.3.3->MAVProxy==1.8.17)
Requirement already satisfied: lxml in ./.local/lib/python2.7/site-packages (from pymavlink>=2.3.3->MAVProxy==1.8.17)
karla@karla-Inspiron-5593:~$ sudo usermod -a -G dialout $USER
karla@karla-Inspiron-5593:~$ sudo apt-get remove modemmanager
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ‘modemmanager’ is not installed, so not removed
The following packages were automatically installed and are no longer required:
fonts-lato fonts-liberation2 fonts-opensymbol gir1.2-goa-1.0
gir1.2-gudev-1.0 gir1.2-snapd-1 gir1.2-udisks-2.0 grilo-plugins-0.3-base
gstreamer1.0-gtk3 libccd-dev libccd2 libcdr-0.1-1 libclucene-contribs1v5
libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libdazzle-1.0-0
libe-book-0.1-1 libedataserverui-1.2-2 libeot0 libepubgen-0.1-1
libetonyek-0.1-1 libevent-2.1-6 libexiv2-14 libfreerdp-client2-2
libfreerdp2-2 libgc1c2 libgee-0.8-2 libgexiv2-2 libgom-1.0-0 libgpgmepp6
libgpod-common libgpod4 libgraphviz-dev libgvc6-plugins-gtk
liblangtag-common liblangtag1 liblirc-client0 liblua5.3-0 libmbim-glib4
libmbim-proxy libmediaart-2.0-0 libmspub-0.1-1 libodfgen-0.1-1 libopenal-dev
libqmi-glib5 libqmi-proxy libqqwing2v5 libqtpropertybrowser4
librevenge-0.0-0 libruby2.5 libsgutils2-2 libssh-4 libsuitesparseconfig5
libvncclient1 libwinpr2-2 libxapian30 libxdot4 libxmlsec1 libxmlsec1-nss
lp-solve media-player-info python3-mako python3-markupsafe rake ruby
ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert
ruby-test-unit ruby2.5 rubygems-integration syslinux syslinux-common
syslinux-legacy usb-creator-common usb-modeswitch usb-modeswitch-data
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
karla@karla-Inspiron-5593:~$ cd ~
karla@karla-Inspiron-5593:~$ mkdir courseRoot
karla@karla-Inspiron-5593:~$ ls
ardupilot Documents mav.parm Public Templates
ardupilot_gazebo Downloads mav.tlog PX4-Autopilot terrain
catkin_ws eeprom.bin mav.tlog.raw Release.key Videos
coordinates.py geo_coords.py mission.py snap winetricks
courseRoot land.py Music square_1.py
demo_1.py land.py.save params.yaml square_client.py
demo.py logs Pictures square_mission.py
Desktop mavlink precise.py square_server.py
karla@karla-Inspiron-5593:~$ sudo echo “export courseRoot=/home/$USER/courseRoot” >> ~/.bashrc
karla@karla-Inspiron-5593:~$ source .bashrc
karla@karla-Inspiron-5593:~$ source ~/.bashrc
karla@karla-Inspiron-5593:~$ cd $courseRoot
karla@karla-Inspiron-5593:~/courseRoot$ cd
karla@karla-Inspiron-5593:~$ cd $courseRoot
karla@karla-Inspiron-5593:~/courseRoot$ cd …
karla@karla-Inspiron-5593:~$ cd …
karla@karla-Inspiron-5593:/home$ cd karla/
karla@karla-Inspiron-5593:~$ cd $courseRoot
karla@karla-Inspiron-5593:~/courseRoot$ mkdir apm
karla@karla-Inspiron-5593:~/courseRoot$ cd apm
karla@karla-Inspiron-5593:~/courseRoot/apm$ git clone -b Copter-4.0.3 https://github.com/ardupilot/ardupilot
Cloning into ‘ardupilot’…
remote: Enumerating objects: 417949, done.
remote: Counting objects: 100% (677/677), done.
remote: Compressing objects: 100% (354/354), done.
remote: Total 417949 (delta 389), reused 483 (delta 320), pack-reused 417272
Receiving objects: 100% (417949/417949), 283.67 MiB | 6.38 MiB/s, done.
Resolving deltas: 100% (308814/308814), done.
Note: checking out ‘ffd08628c43694c5611b9e815de99e3a459e1b44’.

You are in ‘detached HEAD’ state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

karla@karla-Inspiron-5593:~/courseRoot/apm$ ls
ardupilot
karla@karla-Inspiron-5593:~/courseRoot/apm$ ls
ardupilot
karla@karla-Inspiron-5593:~/courseRoot/apm$ cd ardupilot
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ ls
AntennaTracker ArduSub docs modules uncrustify_cpp.cfg
APMrover2 benchmarks Doxyfile.in README.md uncrustify_headers.cfg
appveyor.yml BUILD.md libraries reformat.sh Vagrantfile
ArduCopter COPYING.txt Makefile tests waf
ArduPlane Dockerfile mk Tools wscript
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule update --init --recursive
Submodule ‘modules/ChibiOS’ (git://github.com/ArduPilot/ChibiOS.git) registered for path ‘modules/ChibiOS’
Submodule ‘modules/gbenchmark’ (git://github.com/google/benchmark.git) registered for path ‘modules/gbenchmark’
Submodule ‘gtest’ (git://github.com/ArduPilot/googletest) registered for path ‘modules/gtest’
Submodule ‘modules/libcanard’ (git://github.com/ArduPilot/libcanard.git) registered for path ‘modules/libcanard’
Submodule ‘modules/mavlink’ (git://github.com/ArduPilot/mavlink) registered for path ‘modules/mavlink’
Submodule ‘modules/uavcan’ (git://github.com/ArduPilot/uavcan.git) registered for path ‘modules/uavcan’
Submodule ‘modules/waf’ (git://github.com/ArduPilot/waf.git) registered for path ‘modules/waf’
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/ChibiOS.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’ failed
Failed to clone ‘modules/ChibiOS’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/gbenchmark’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/google/benchmark.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/gbenchmark’ failed
Failed to clone ‘modules/gbenchmark’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/gtest’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/googletest’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/gtest’ failed
Failed to clone ‘modules/gtest’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/libcanard’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/libcanard.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/libcanard’ failed
Failed to clone ‘modules/libcanard’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/mavlink’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/mavlink’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/mavlink’ failed
Failed to clone ‘modules/mavlink’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/uavcan’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/uavcan.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/uavcan’ failed
Failed to clone ‘modules/uavcan’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/waf’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/waf.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/waf’ failed
Failed to clone ‘modules/waf’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/ChibiOS.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’ failed
Failed to clone ‘modules/ChibiOS’ a second time, aborting
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule
add foreach status sync
deinit init summary update
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule update
AntennaTracker/ Doxyfile.in README.md
APMrover2/ .editorconfig reformat.sh
appveyor.yml .flake8 tests/
ArduCopter/ .git/ Tools/
ArduPlane/ .gitattributes .travis.yml
ArduSub/ .github/ uncrustify_cpp.cfg
.azure/ .gitignore uncrustify_headers.cfg
benchmarks/ .gitmodules Vagrantfile
BUILD.md libraries/ .valgrindrc
COPYING.txt Makefile .valgrind-suppressions
.dir-locals.el mk/ waf
Dockerfile modules/ wscript
docs/ .pydevproject
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule update –
–depth --merge --recommend-shallow
–force --no-fetch --recursive
–init --no-recommend-shallow --reference
–jobs --rebase --remote
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule update --init –
–depth --merge --recommend-shallow
–force --no-fetch --recursive
–init --no-recommend-shallow --reference
–jobs --rebase --remote
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule update --init --re
–rebase --recursive --remote
–recommend-shallow --reference
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule update --init --rec
–recommend-shallow --recursive
karla@karla-Inspiron-5593:~/courseRoot/apm/ardupilot$ git submodule update --init --recursive
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/ChibiOS.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’ failed
Failed to clone ‘modules/ChibiOS’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/gbenchmark’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/google/benchmark.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/gbenchmark’ failed
Failed to clone ‘modules/gbenchmark’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/gtest’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/googletest’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/gtest’ failed
Failed to clone ‘modules/gtest’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/libcanard’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/libcanard.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/libcanard’ failed
Failed to clone ‘modules/libcanard’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/mavlink’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/mavlink’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/mavlink’ failed
Failed to clone ‘modules/mavlink’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/uavcan’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/uavcan.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/uavcan’ failed
Failed to clone ‘modules/uavcan’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/waf’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/waf.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/waf’ failed
Failed to clone ‘modules/waf’. Retry scheduled
Cloning into ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’…
fatal: I don’t handle protocol ‘“https’
fatal: clone of ‘git://github.com/ArduPilot/ChibiOS.git’ into submodule path ‘/home/karla/courseRoot/apm/ardupilot/modules/ChibiOS’ failed
Failed to clone ‘modules/ChibiOS’ a second time, aborting

These are all the steps that I have done.


#4

Other than what I suggested in your other message about quote marks, the steps look correct as per the course.

Since most users are migrating over to python 3, you might want to try this. There have been other forum talk on this topic [https://community.dojofordrones.com/t/wsl2-instead-of-virtualbox/711]. You can just use the latest version of Ubuntu and Copter as well.

It is best to go through each step so you understand it, but here I provide an easy means to setup the system. .

Notes

  • I am substituting ‘drone’ for ‘courseRoot’.
  • I have included .bashrc parameters to conveniently cd into ‘drone’ and ‘ArduCopter’.
  • I have included mkdir /drone/dk
  • It does not include installation of QGC.
  • It doesn’t include some dependencies and programs needed for Precision Landing simulation, for which I have not tested it

Hopefully it all works for you.

cd
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
sudo apt install build-essential manpages-dev git -y
sudo apt install python3-dev python3-pip -y
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
sudo apt install python3-opencv python3-wxgtk4.0 -y
sudo apt install python3-matplotlib python3-lxml -y
sudo apt install python3-serial python3-scipy python3-pexpect python3-tk -y
sudo apt install python3-future
sudo apt install screen -y
python3 -m pip install -U pygame --user
pip3 install PyYAML mavproxy
pip3 install mavproxy pymavlink --user --upgrade
python -m pip install empy
sudo echo “export PATH=$PATH:$HOME/.local/bin” >> ~/.bashrc
sudo echo “~/drone/apm/ardupilot/Tools/autotest”:$PATH >> ~/.bashrc
sudo echo “export drone=/home/$USER/drone” >> ~/.bashrc
sudo echo “export ArduCopter=/home/$USER/drone/apm/ardupilot/ArduCopter” >> ~/.bashrc
source .bashrc
sudo usermod -a -G dialout $USER
sudo apt remove modemmanager -y
mkdir drone
cd drone
mkdir dk
mkdir apm
cd apm
git clone -b Copter-4.3.7 https://github.com/ardupilot/ardupilot
cd ardupilot
git submodule update --init --recursive
cd
sudo -H pip3 install dronekit==2.9.2
sudo -H pip3 install dronekit-sitl==3.3.0
cd ~/drone/apm/ardupilot
./waf configure
./waf copter
cd


Still no python3 course update? or a VM?
Installing dependencies and configuring our environment
Ubuntu 20 + Python3 setup
Ubuntu 18.04.6 (course build); "Launch QGC with DK script part3" mode GUIDED loop hanging (launchSitl basic_template.py)
Full gz sim on 22.04 LTS
#5

karla@karla-Inspiron-5593:~/drone/apm$ cd ardupilot

karla@karla-Inspiron-5593:~/drone/apm/ardupilot$ ls
AntennaTracker benchmarks Dockerfile mk tests
appveyor.yml Blimp docs modules Tools
ArduCopter BUILD.md Doxyfile.in pyproject.toml Vagrantfile
ArduPlane CODE_OF_CONDUCT.md libraries README.md waf
ArduSub COPYING.txt Makefile Rover wscript

karla@karla-Inspiron-5593:~/drone/apm/ardupilot$ cd build
bash: cd: build: No such file or directory

After your commands worked for me, I went to “Connecting MAVProxy to SITL Drone” video, and why I dont have build in my ardupilot file


Git submodule update error
#6

I resolved the problem using commands : ./waf configure and ./was copter


#7

It is normally compiled when you first run sim_vehicle.py, so it is not necessary to run waf.
Nevertheless, I have included this for convenience in the code above.
Note you show ‘./was copter’ instead of ‘./waf copter’.


closed #8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.