My raspberry pi seems to have trouble staying connected to the internet. When running apt-get it can get stuck waiting for headers for minutes at a time. SSH is sketchy as well, I can log in immediately after booting but after a few minutes i get a "Broken Pipe" error. I am using a generic usb dongle that came with the pi, and have already tried moving it closer to the router and plugging it into a powered hub. Any thoughts on making consistent connections? Thanks
closed as too broad by goldilocks♦ Jan 10 at 14:47
There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.