Error: Command 'apt install -y tesseract-ocr' returned non-zero exit status 100

Hi,

Anyone see this error before?

Had a working endpoint using a private mode and custom handler based on nielsr/layoutlmv2-finetuned-funsd · Hugging Face that started failing and now never builds sucessfully.

Code is
run(“apt install -y tesseract-ocr”, shell=True, check=True)

Error log

2024-03-19T09:28:54.726+00:00 subprocess.CalledProcessError: Command ‘apt install -y tesseract-ocr’ returned non-zero exit status 100.

preceeded by this which is possibly the root cause for the apt error.

2024-03-19T09:28:54.724+00:00 E: Could not open lock file /var/lib/dpkg/lock-frontend - open (2: No such file or directory)

Seems environment related as I rolled back the handler versions and still get the same error.
Tried recreating multiple times and using different data centers but same issue.

Thoughts?