can occur if there was replication setup on the server and the server was renamed before replication was dropped. In order to correct this you will need to run the proper SQL statements to drop both the publisher and distributor on the server. Then manually go through the original publisher and distributor server to ensure all replication has been removed before you begin setting up replication on the server.
If the server was renamed then you can run the following SQL statements on the corresponding servers to check if they return the correct server names.
Check Server Properties
If the @@ServerName returns a NULL than try the following query:
Sp_Addserver ‘NewName’, ‘local’
You can use the @@SERVERNAME global variable or the SERVERPROPERTY(‘ServerName’) function in SQL Server to find the network name of the computer running SQL Server.
The ServerName property of the SERVERPROPERTY function automatically reports the change in the network name of the computer when you restart the computer and the SQL Server service.
The @@SERVERNAME global variable retains the original SQL Server computer name until the SQL Server name is manually reset.