Just had a quick look through Liverpool marriages and census....
The William Lamie (Tailor brn c1837 Dublin) married 1st in 1861 to Margaret Ann Hands, she dies 1869 he then goes on to marry Ellen Sarah Hale in 1870, then she dies 1872 he goes on to marry Mary Jane McFarlane 1876 - didn't have much luck with wivess did he?

?
Given that the William in question didn't leave Ireland until after 1868, I don't think this is your man.
Angie