This article explains some methods for general troubleshooting. For application specific issues, please reference the particular wiki page for that program.
Before you can solve a problem, you must be aware of what the problem is. Try to find:
- What are the symptoms?
- Is there any error message?
- Under what conditions does the problem appear?
- What has changed in the time between now and when everything last worked perfectly?
you should try to understand the problem as specifically as possible; instead of saying:
Program A doesn't work
you should think of it as
Program A produces Result B when I try to perform Task C under Condition D.
Once you are able to accurately fill in the variables, you will have a more concrete understanding of the situation than if you try to deal with the problem more abstractly.
Single user mode
If you cannot boot due to errors caused by a daemon, display manager or Xorg, you may be able use the single user runlevel:
- Boot to single user mode by appending 1 or s to kernel line in grub.
- Then edit the daemons array in rc.conf and remove the daemon which caused the problem.
- telinit 3 to go back to multi user mode .
- Then try to track down the issue by running the daemon manually.
file: could not find any magic files!
Once after update or installation some package you geting this error:
# file: could not find any magic files!
And after this your system can be completely broken. Any time you try to reinstall or recompile for example:
# mkinitcpio -p linux ==> Building image from preset: 'default' -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img file: could not find any magic files! ==> ERROR: invalid kernel specifier: `/boot/vmlinuz-linux' ==> Building image from preset: 'fallback' -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect file: could not find any magic files! @==> ERROR: invalid kernel specifier: `/boot/vmlinuz-linux'
Tipicaly some program installed before add in folder /etc/ld.so.conf.d/ new config file or make changes in /etc/ld.so.conf
1. Chroot to the system from Boot CD or Boot Flash Drive. 2. Take a look carefully at this two point, remove invalid file or line 3. Reboot the system again 4. Reinstall package file with the command:
# pacman -S file