mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 07:21:36 +08:00
setup: prevent prompt during install
This should prevent debconf from asking questions during install. Presumably, the exported env variable DEBIAN_FRONTEND is not taken into account in a sudo command, hence we need to add it every time.
This commit is contained in:
+6
-10
@@ -32,7 +32,7 @@ done
|
|||||||
# detect if running in docker
|
# detect if running in docker
|
||||||
if [ -f /.dockerenv ]; then
|
if [ -f /.dockerenv ]; then
|
||||||
echo "Running within docker, installing initial dependencies";
|
echo "Running within docker, installing initial dependencies";
|
||||||
apt-get --quiet -y update && apt-get --quiet -y install \
|
apt-get --quiet -y update && DEBIAN_FRONTEND=noninteractive apt-get --quiet -y install \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gnupg \
|
gnupg \
|
||||||
lsb-core \
|
lsb-core \
|
||||||
@@ -67,14 +67,11 @@ elif [[ "${UBUNTU_RELEASE}" == "18.04" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Installing PX4 general dependencies"
|
echo "Installing PX4 general dependencies"
|
||||||
|
|
||||||
sudo apt-get update -yy --quiet
|
sudo apt-get update -y --quiet
|
||||||
sudo apt-get -yy --quiet --no-install-recommends install \
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
||||||
astyle \
|
astyle \
|
||||||
build-essential \
|
build-essential \
|
||||||
ccache \
|
ccache \
|
||||||
@@ -120,7 +117,7 @@ if [[ $INSTALL_NUTTX == "true" ]]; then
|
|||||||
echo
|
echo
|
||||||
echo "Installing NuttX dependencies"
|
echo "Installing NuttX dependencies"
|
||||||
|
|
||||||
sudo apt-get -yy --quiet --no-install-recommends install \
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bison \
|
bison \
|
||||||
@@ -176,7 +173,7 @@ if [[ $INSTALL_SIM == "true" ]]; then
|
|||||||
echo "Installing PX4 simulation dependencies"
|
echo "Installing PX4 simulation dependencies"
|
||||||
|
|
||||||
# java (jmavsim or fastrtps)
|
# java (jmavsim or fastrtps)
|
||||||
sudo apt-get -yy --quiet --no-install-recommends install \
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
||||||
ant \
|
ant \
|
||||||
openjdk-8-jre \
|
openjdk-8-jre \
|
||||||
openjdk-8-jdk \
|
openjdk-8-jdk \
|
||||||
@@ -185,8 +182,7 @@ if [[ $INSTALL_SIM == "true" ]]; then
|
|||||||
# Gazebo
|
# Gazebo
|
||||||
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
|
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
|
||||||
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
|
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
|
||||||
sudo apt-get update -yy --quiet
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -yy --quiet --no-install-recommends install \
|
|
||||||
gazebo9 \
|
gazebo9 \
|
||||||
gstreamer1.0-plugins-bad \
|
gstreamer1.0-plugins-bad \
|
||||||
gstreamer1.0-plugins-base \
|
gstreamer1.0-plugins-base \
|
||||||
|
|||||||
Reference in New Issue
Block a user