I tried running these scripts. I believe it is failing for me when it tries to instal php. When it tries to start remastering-manager I get a "bad interpreter" message. If I try to run "apt-get --reinstall install php4-cgi -y" manually, I get the error messages "W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or open

Any help would be appreciated.
Thanks