Error from RUN apt install ros-noetic-moveit -y

I am using Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1, and i’m trying to build the docker image from GitHub - EuropeanRoverChallenge/ERC-Remote-Maintenance-Sim. However, each time i build it, i get the error:

"
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command ‘/bin/sh -c apt install ros-noetic-moveit -y’ returned a non-zero code: 100
"
Along with some other [Errno 13] Permission denied errors. I’ve tried to run as root user, but i encounter the same issue. The Dockerfile can be found on the github link above.
Been stuck on this error for a couple of days, trying many different fixes without luck.

My ubuntu is version:
|Distributor ID:|Ubuntu|
|Description:|Ubuntu 22.04.3 LTS|
|Release:|22.04|
|Codename:|jammy|

It is worth mentioning, that this DOES run for other people on their machines.