Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

enter image description here

enter image description here

share|improve this question
    
What do you mean by Computer Crashed? Could you explain little more! What was actual scenario? What error did you get? And what do you mean by Crashes Again? Is there any crashing loop of Ubuntu?? –  Saurav Kumar Sep 9 '13 at 20:35
    
Define "crashed" or "crashes" in context. Does the command just fail? Is there a kernel panic? Does your computer just completely and suddenly power off? We need more details of what exactly happens. –  Thomas W. Sep 9 '13 at 20:35
2  
That message is not complete, we only see "Kernel panic - not syncing: Attempted to" and we can't see anything else. Can you also include a shot of the rest of the message since it's being cut off? –  Thomas W. Sep 9 '13 at 20:44
1  
What happens if you just do sudo apt-get update && sudo apt-get upgrade? –  Mitch Sep 17 '13 at 5:31
1  
Try safe-booting and see whether the problem persists. –  Mitch Sep 17 '13 at 18:40

4 Answers 4

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!

share|improve this answer
    
Nothing worked. –  dustin Sep 12 '13 at 12:50
    
@dustin: It was just a suggestion to try.. If it doesn't work then I will delete it.. Just want your confirmation. –  Saurav Kumar Sep 12 '13 at 13:01

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!

share|improve this answer

In order to isolate hard disk issues:

  • Borrow a drive at least as large as the drive currently in your computer
  • Boot from a live USB stick and make a block level copy of your current drive to the borrowed drive
  • Boot from the borrowed drive
  • Retry

Let me know if you need more detailed instructions. If even cloning doesn't work, the reason is most probably a faulty drive.

share|improve this answer

(Please, read the whole answer before doing anithing)

Quick and Dirty (?)

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.

I want to fix it without reinstall

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.