Check the existence of the file `/etc/apt/sources.list.d/mono-xamarin.list`. Do not overwrite the file if it exists.