I was installing wine with the command sudo aptitude install wine
and the computer crashed.
When I run sudo dpkg --configure -a
, the computer crashes again.
What can I do?
If nothing worked for you then you should give it a try!
When your system starts chose Safe Mode (2nd option in grub menu. Hold Shift while boots if your system starts directly without Grub Menu
).
From the Menu just go to Grub option, it will give a message like Updating grub will mount your system in read/write mode. Just chose yes to mount your system in read/write mode. It will update your grub and will exit from Grub menu.
chose network option it'll enable your network.(May take some time)
Then chose dpkg menu from the list, chose yes for all.
Finally chose root option and login. Execute following commands one after another:
# apt-get autoremove
# apt-get autoclean
# apt-get -f install
# dpkg-reconfigure -a (it would take some time)
# apt-get update
# apt-get dist-upgrade (skip if don't want to upgrade)
# apt-get upgrade (skip if you don't want to upgrade)
Then finally execute following command to remove Wine
# apt-get autoremove wine
# apt-get --purge remove wine
Reboot your system and check if your problem is solved or not.
# reboot
Reply if something goes wrong.. or you need some help!
I don't know if I can solve the internal issues, but try downloading it the old fashioned way.
Go to "Ubuntu Software Center"
, type wine in the search field and try downloading that way. See if that works... Good Luck!
In order to isolate hard disk issues:
Let me know if you need more detailed instructions. If even cloning doesn't work, the reason is most probably a faulty drive.
(Please, read the whole answer before doing anithing)
Sometimes, when you don't know what to do, the best thing is start from 0. Use a Live system, do a full backup of all your data in the /home
directory, if your system boots you can do dpkg --get-selections | grep -v deinstall >> package.list
and save the resultant file, then reinstall the system.
When you get your new system, do sudo apt-get update && sudo apt-get upgrade
once that is done restore your installed packages list.
sudo dpkg --set-selections < package.list
sudo apt-get check
sudo apt-get deselect-upgrade
Now, you got your system ready to rumble.
This is tricky, and you will need to spend your time in this. You may need to read the debugging the kernel guide, and/or throw a stab in the air with the follow procedure:
Since you said that the problem started with wine, I will assume the package is somehow dirty, or something is terribly wrong. So, instead "executing" lets say that we simulate:
sudo dpkg --no-act --configure -a
If the below command produce the Kernel Panic, is safe to assume that the scripts were incorrectly unpacked or that the package is incomplete. To discard first, you may use the Recovery Mode to run a filesystem check:
When your system starts chose Safe Mode (2nd option in grub menu. Hold Shift while boots if your system starts directly without Grub Menu
).
From the Menu just go to Grub option, it will give a message like Updating grub will mount your system in read/write mode. Don't chose yes to mount your system in read/write mode.
Once you get the recovery menu, select check filesystem or fsck
. It will take a time, repair the errors you find (if any), reboot into a normal boot, and try to run sudo dpkg --no-act --configure -a
again. If no panic arises just run without the --no-act
switch. It should work.
sudo apt-get update && sudo apt-get upgrade
?