coriolis-install: Changed example cell name to chip_r
[dev-env-setup.git] / install-hdl-apt-reqs
index c125fc8791afd6a38c61f14d7b33934df57fd236..b46a44ac8c4c22b0262257ac469251fa66b2532e 100755 (executable)
@@ -4,10 +4,17 @@ if [ "$EUID" -ne 0 ]
   exit
 fi
 # for qemu 5.2 use debian/buster backports
-cat << EOF > /etc/apt/sources.list.d/buster_backports
+cat << EOF > /etc/apt/sources.list.d/buster_backports.list
 deb http://deb.debian.org/debian buster-backports main
 EOF
 
+# oooo annoying, pin preferences for buster-backports
+cat << EOF > /etc/apt/preferences.d/99buster-backports
+Package: *
+Pin: release a=buster-backports
+Pin-Priority: 900
+EOF
+
 apt-get update -y
 apt-get upgrade -y
 apt-get install -y autoconf \
@@ -38,6 +45,7 @@ apt-get install -y autoconf \
     ninja-build \
     pkg-config \
     python \
+    python2.7 \
     python-dev \
     python-setuptools \
     python-virtualenv \