LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-21-2006, 12:30 PM   #1
katheo
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
help- aptitude undo?


Help, I think I have made a major boo-boo.
I was trying to install mysql-query-browser on debian sarge using aptitude but the F10 key is unfortunately right above the - key. I think something might have gotten accidentally marked for deletion rather than installation (even though I'm pretty sure it was Green and not Red before I pressed g).

I tried to run the install but it started removing a lot of stuff. Then it said ...
You are running a kernel (version 2.6.8-2-686-smp) and attempting to remove
the same version. This is a potentially disastrous action. Not only
will /boot/vmlinuz-2.6.8-2-686-smp be removed, making it impossible to boot
it, (you will have to take action to change your boot loader to boot
a new kernel), it will also remove all modules under the directory
/lib/modules/2.6.8-2-686-smp. Just having a copy of the kernel image is not
enough, you will have to replace the modules too.

I repeat, this is very dangerous. If at all in doubt, answer
no. If you know exactly what you are doing, and are prepared to
hose your system, then answer Yes.
Remove the running kernel image (not recommended) [No]? no
dpkg: error processing kernel-image-2.6.8-2-686-smp (--remove):
subprocess pre-removal script returned error exit status 1

Even though I said NO, it started removing more things. Everything ended with the message:
Errors were encountered while processing:
kernel-image-2.6.8-2-686-smp
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ack! Something bad happened while installing packages. Trying to recover:
Press return to continue.

Then aptitude didn't show the Undo option as available.

Help! Can I revert to the state before all of this began? I thought aptitude could do that? I haven't closed aptitude yet...

Thanks enormously for any help you might be able to provide.

Last edited by katheo; 07-21-2006 at 12:34 PM.
 
Old 07-22-2006, 09:54 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Search for the kernel package and re-install. Or, if you know the exact name of that package, use apt-get to satisfy dependencies.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VI and UNDO jinksys Linux - Software 1 07-30-2005 04:46 PM
How do i undo this?! Jengo Slackware 2 07-13-2004 11:50 AM
undo rm * slackmagic General 3 04-25-2004 04:16 PM
i know what i have done ! how do i undo it ? ethereal9 Mandriva 2 10-03-2003 05:19 PM
How to undo this? latino Linux - Software 4 09-21-2003 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration