I'm actually trying to diagnose a partly-broken system -- several symptoms have recently arisen. Odd combinations -- Ctl-Alt-F1 no longer works, my web page is down, I can no longer mount FAT thumb drives, some files are temporarily unavailable (produce errors) then become available again. I suspect configuration files, software, hardware, or a curse. In other words, I have no clue.
What I want to do is replicate the system in a sanitary way -- not by copying (which might copy the cause) but by rebuilding.
So, I can get a list of installed packages with apt list, or dpkg-query, but don't immediately see a way to use that list to bring my copy up to the level of the original.
How can I do that? Especially, is there a simple way to use the list to get the packages installed. The tools I know about generate a list that is not immediately useful for input to apt or similar programs. Note that the usual simple reinstall from a thumb drive is not available because of the presence of other OS partitions, including Windows.
https://askubuntu.com/questions/2389
. I'll be asking a very similar question over there.... – ForDummies Jan 30 '23 at 19:43