for updating, I have the all-in-one solution for 90% of synaptic errors:
Code:
sudo apt-get -f || echo "ERROR 0"
sudo rm /var/lib/apt/lists/partial/* || echo "ERROR 1: no partial packages - harmless error"
sudo rm /var/cache/apt/*.bin || echo "ERROR 2"
sudo apt-get clean || echo "ERROR 3"
sudo apt-get autoclean || echo "ERROR 4"
sudo apt-get autoremove || echo "ERROR 5"
sudo apt-get update || echo "ERROR 6"
sudo apt-get --fix-broken upgrade || echo "ERROR 7"
and for the X server its a little more dificult:
Code:
-choose recovery mode at grub
-drop to a root prompt
-type " telinit 3 " and login
-then type " xinit "
-when xinit starts type: " metacity & " - for ubuntu OR " compiz & " - if you have it OR flux/openbox & - if you have it OR " fvwm & " - for xubuntu
-then type " gnome-panel " & -for ubuntu OR " xfce4-panel & " -for xubuntu
-lastly type " nm-applet & " -for networking
probably run through that list once, write down the steps, and try it on a working system, because if X breaks, you need to know what to do.
anyway, those are my two scripts that seemingly fix 15% of all ubuntuforums problems.
Bookmarks