A MTP TIM upgrade fails with error message: "chown: `apache\r': invalid user."
While upgrading a MTP TIM when uploading the TIM package, it fails with this error:
chown: `apache\r': invalid user
error: cannot change owner of /opt/CA/APM/tim/config/timsettings.db to apache
/opt/CA/APM/tim/postinstall/postinstall.sh ending at .... with status 1
error: %post(tim-9.x.y.z.nnnnnn-0.x86_64) scriptlet failed, exit status 1
Error installing package "tim-mtp"
The file "etc/httpd/conf/httpd.conf" has somehow become corrupted with invalid ^M characters at the end of each line.
To verify the presence of those characters, run this command: "cat -v /etc/httpd/conf/httpd.conf".
To remove the invalid ^M characters, run the command dos2unix on the file. Then re-confirm the removal by running the same cat command.
Then upload the TIM package again and the install should proceed without errors.