Quoted By:
My own meals for long hikes, up to three months, have been the following:
>Morning
Tea
Crystalized fruit
Bread + Honey
Muesli, cereals and dried fruits
Fermented milk, cheese
>Lunch/diner
Dry sausage
Rice, semolina, lentils
Dried vegetables
This will offer you everything you need to stay healthy for a long time. It also requires very little actual cooking, considering all of this except for tea and rice/semolina/lentils is eaten as is, don't even need to be heated, and can be kept this way for a very long time.
When it comes to dried vegetables, my own mix is dried tomatoes, pepper bells and onions kept in olive oil, which can be found as is all around the Mediterranean sea. As for milk, fermented milk lasts longer than regular milk, and won't suffer from temperature swings.
Also, note that all of those are very common things that can be found in any area of the world, allowing you to easily refill your stock for very cheap whether it is at a local supermarket, or in more remote places, even at the smallest village. Just be ready to switch to goat milk, dried snake meat and questionnable hallucinogen tea.