Encounter installation problems on postgres 12
Your log lines are truncated (use --no-pager with journalctl when you want the full output) but the full error message that is the most relevant is probably:

2020-10-25 12:56:02.995 CST [7586] LOG: could not bind IPv4 address &quot;172.18.56.1&quot;: Cannot assign [truncated here] requested
address

You did not mention what you set listen_addresses to, but a plausible explanation for this error is that it's set to 172.18.56.1, and this address is not assigned to a network interface of the host, so it's a mistake to use it in   listen_addresses.
Use ifconfig or ip a list to see the network addresses on the host.