diff --git a/pi4j-distribution/pom.xml b/pi4j-distribution/pom.xml
index 9f9796ebf..f5ac5c03c 100644
--- a/pi4j-distribution/pom.xml
+++ b/pi4j-distribution/pom.xml
@@ -561,6 +561,7 @@
--access-key-id=${pi4j.aws.access.key}
--secret-access-key=${pi4j.aws.secret.key}
--bucket=repository.pi4j.com
+ --gpg-options="--pinentry-mode=loopback"
${project.build.directory}/pi4j-${project.version}.deb