There is no currently defined end of Ubuntu (new versions are planned to be released and no mention of this regular cadence of releases stopping). How long Ask Ubuntu lasts depends on 3 factors:
- How long Canonical allow us to.
- How long Stack Exhange allows us to.
- How long we continue as a community.
The actual information we post to Ask Ubuntu is under a Creative Commons licence, can be freely copied (with attribution), which in the event of any combination of the above 3 points will allow someone to preserve the information elsewhere and even setup an alternative to askUbuntu.