All we need is a bunch of potatoes, but don't figure to have a healthy stock of ketchup on board.
Could keep you alive long enough but eventually you'd want some other nutrients.
You generally need animal products for B12, but you can use supplements, I think. B12 deficiency can take a year or more to manifest severe symptoms.