diff --git a/packaging/rules/debian/ring-all.postinst b/packaging/rules/debian/ring-all.postinst
index bef660135a50eb4f68ce09425939c230effef736..b3e3d5dafd7bd9155665df4949fa6e9d1908be56 100755
--- a/packaging/rules/debian/ring-all.postinst
+++ b/packaging/rules/debian/ring-all.postinst
@@ -93,10 +93,27 @@ CAN_ADD_DEB_SOURCE=true
 # the case then we simply don't want to provide automatic updates
 if [ -f /etc/os-release ]; then
     . /etc/os-release
+
     # Set-up Ring PPA end tag
-    ENDTAG="${ID}_${VERSION_ID}"
+    if [ "$OS" = "debian" ] && [ "$VER" = "9" ]; then
+        ENDTAG="${ID}_${VERSION_ID}"
+    elif [ "$OS" = "ubuntu" ] && [ "$VER" = "16.04" ]; then
+        ENDTAG="${ID}_${VERSION_ID}"
+    elif [ "$OS" = "ubuntu" ] && [ "$VER" = "17.04" ]; then
+        ENDTAG="${ID}_${VERSION_ID}"
+    elif [ "$OS" = "ubuntu" ] && [ "$VER" = "17.10" ]; then
+        ENDTAG="${ID}_${VERSION_ID}"
+    elif [ "$OS" = "ubuntu" ] && [ "$VER" = "18.04" ]; then
+        ENDTAG="${ID}_${VERSION_ID}"
+    elif [ "$OS" = "linuxmint" ] && [ "$UBUNTU_CODENAME" = "xenial" ]; then
+        ENDTAG="ubuntu_16.04"
+    elif [ "$OS" = "linuxmint" ] && [ "$UBUNTU_CODENAME" = "bionic" ]; then
+        ENDTAG="ubuntu_18.04"
+    else
+        # Distribution is not supported. Don't provide automatic updates.
+        CAN_ADD_DEB_SOURCE=false
+    fi
 else
-    # Distribution is not supported. Don't provide automatic updates.
     CAN_ADD_DEB_SOURCE=false
 fi