diff --git a/containers/jug/dev.Dockerfile b/containers/jug/dev.Dockerfile
index c390af8bb2dce238a4c0fd39d73c7594350788f4..4b0c8f8ee9f5eef4f4b2bf966092396773d419c8 100644
--- a/containers/jug/dev.Dockerfile
+++ b/containers/jug/dev.Dockerfile
@@ -173,7 +173,9 @@ RUN du -sh $SPACK_ROOT                                                  \
 ## See
 #https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir
 ## and links therin for more info
-RUN strip --remove-section=.note.ABI-tag /usr/local/lib/libQt5Core.so
+RUN if [ -f /usr/local/lib/libQt5Core.so ] ; then                       \
+      strip --remove-section=.note.ABI-tag /usr/local/lib/libQt5Core.so;\
+    fi
 
 RUN spack debug report                                                  \
       | sed "s/^/ - /" | sed "s/\* \*\*//" | sed "s/\*\*//"             \