I've had this problem before on Arch Linux. Installing gnome keying, and chromium fixed it.
This is normal villagers won't trade jobs at a certain time of day.
Ah, this is a single player glitch that's been out forever. It happens when you close application on ps4 or force close the game on pc. This isn't a high priority for Mojang because it only works in single player. Hope this helps.
I'm assuming you don't have any saves there because you are installing. Try deleting ~/.minecraft then re-open Minecraft. Also try sudo apt update && sudo apt upgrade