Until last week, if you'd asked me what the longest-lasting computer I'd owned was, I would have said the laptop I had at university (lasted six years). It turns out I was wrong. It's this:
This has been my always-on home "server" since about 2012, and it's been pretty solid. It must have eaten an SD card or two, but that's par for the course.
I finally pensioned it off because the CPU isn't up to running rdiff-backup (one doesn't think of such things as CPU-intensive, but to a computer which is roughly equivalent to a Pentium II, it certainly is). So it's finally been replaced by a Pi 4 - let's see if that lasts to a full decade, though the difference in running temperature is pretty significant.