This is a place to store notes and tips when I run into troubleshooting issues on the Raspberry Pi.
- If using a USB wi-fi dongle that has the Ralink RT5370 ** chip. I have been experiencing lost signals and shutoff after using for short and long periods of time. This dongle has a power management feature that is causing issues. From the command line on Pi type iwconfig . Do you see an entry for Wlan0 that mentions power management: on ?
Hop into your interfaces file at the command line using
sudo nano /etc/network/interfaces
Add the following line. wireless-power off in the file. Exit and reboot.
There is a good forum discussion on the topic here. http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=40474#p330868
- If you’ve made a change to /etc/network/interfaces you can restart networking with the command:
sudo /etc/init.d/networking restart
RaspBian Package Updates & Reinstalls:
- Clear your package cache :
sudo apt-get clean
- If you know the name of the package and want to remove it:
sudo apt-get --purge remove packagename
- Install and use the Synaptic Package Manager:
sudo apt-get install synaptic
- Distribution upgrade command: sudo apt-get dist-upgrade
- Remove unneeded packages, fix broken installs, update package list, upgrade installed packages).
sudo apt-get autoremove && sudo apt-get -f install && sudo apt-get update && sudo apt-get upgrade -y
List all packages installed
List packages using a search pattern
It is possible to add a search pattern to list packages:
dpkg-query -l 'foo*'
Show status of all packages on the system
To check the status of all packages on your system:
dpkg -l | more
This will show all packages (1 line each) that are in various stages of install (this includes packages that were removed but not purged). To show only the installed:
dpkg -l | grep '^i'