diff --git a/debian/tests/installcheck b/debian/tests/installcheck
index 4612308876a453687986cbb08a1b9e99f4eb1b8c..c36534824b85b7d6483d4a1545ed1f898a459479 100755
--- a/debian/tests/installcheck
+++ b/debian/tests/installcheck
@@ -12,6 +12,9 @@ MYSQL="mysql --defaults-file=/etc/mysql/debian.cnf -v mysql"
 
     service mariadb start || service mysql start || exit 77
 
+    # work around bug in Ubuntu jammy (2022-03-02)
+    test -d /var/run/mysqld && chmod -v 755 /var/run/mysqld
+
     # Create the MySQL test database and user.
     echo "== creating the MySQL test database"
     cat debian/tests/mysql.testschema.sql | $MYSQL