This PC uses a last-gen CPU which was a value buy before AMD moved to a new platform. It's basically a budget build at a non-budget price with an overpriced GPU in it. For AMD CPUs, you should look for the 7000 series, and for Intel you'd want the 13000 series.
If you're up for it, I strongly recommend building your own PC, perhaps getting help from someone if you need it. If not, look for something current-gen so that at the very least there's an easy upgrade path.
If you're going Linux, try to find a computer that doesn't include Windows, since you're paying extra for the license. For the GPU, AMD is usually the preferred choice for Linux builds since the drivers are open source and built into the kernel. I'd also recommend more RAM, but that's something that can be upgraded later if it doesn't fit into your current budget.