E: Sub-process /usr/bin/dpkg returned an error code (1)
I need help to solve this.
We are going to need a whole lot more information before we can even guess at this! What are you doing when this arises? Moodle version? Server platform? New install or upgrade? Where does this error appear?
A quick Google search hit this:
https://ubuntuforums.org/showthread.php?t=1642173
Don't run Ubuntu myself ... if above does not solve, might sign up on Ubuntu forums.org so you can participate there.
'spirit of sharing', Ken