Results 1 to 10 of 10

Thread: I just deleted part of my system

  1. #1
    Join Date
    Jul 2011
    Beans
    77

    I just deleted part of my system

    I'm running Kubuntu Desktop 12.04.

    I wanted to install LAMP server on my system, and used the program "tasksel" for the job, as I saw in an online article. When I went to the installer, kubuntu-desktop, ubuntu-desktop were checked. I unchecked them, and marked LAMP for installation (I realize now why this was stupid).

    After I progressed to the next screen, the installer started removing various KDE packages, and I immediately realized what I had done. I quickly closed the installer so it wouldn't remove anything else. I now cannot launch Konsole, and various other programs. I've not yet logged out of this session in fear of not being able to get back into it.

    I'm going to assume I have to completely reinstall kubuntu-desktop packages by "apt-get install kubuntu-desktop", but I'm hoping that's all that got removed, and nothing more critical to the system.

    What is the best course of action at this point?

  2. #2
    Join Date
    Jul 2011
    Beans
    77

    Re: I just deleted part of my system

    I just found this thread:

    http://ubuntuforums.org/showthread.php?t=1369551

    User Mofef offers this command that I feel may work. Good idea?

    Code:
    sudo apt-get install $(for i in $(cat /var/log/dpkg.log |grep -oP "(?<=`date +%Y-%m-%d`\s\d\d\:\d\d:\d\d\sremove)\s\S*\s"); do echo -n "$i "; done;)

  3. #3
    Join Date
    Jul 2011
    Beans
    77

    Re: I just deleted part of my system

    Well I ran that script, and it just tells me that one of my packages can't be found:

    "E: Unable to locate package redshiftgui"

    I'm at a loss here. If I shut my computer down, I'm most likely just going to have to reinstall Ubuntu altogether, and it's 2am here so I may just have to do that if I get no replies in the next half hour or so.

  4. #4
    Join Date
    Apr 2008
    Location
    London
    Beans
    1,873
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: I just deleted part of my system

    In earlier versions of Ubuntu you could do Ctrl+Alt+F1 or F2 or whatever, to bring up a normal xserver screen. Can you do that and reinstall kubuntu that way?

    If not, you can always reinstall it using a LiveCD.

    .

  5. #5
    Join Date
    Jul 2011
    Beans
    77

    Re: I just deleted part of my system

    Yes, I'm going to try that now. Thanks.

  6. #6
    Join Date
    Jul 2011
    Beans
    77

    Re: I just deleted part of my system

    How do I install kubuntu-desktop while on the Live-CD?

  7. #7
    Join Date
    Jul 2011
    Beans
    77

    Re: I just deleted part of my system

    Do I just mount the Ubuntu partition into /mnt, cd into it, and "sudo apt-get install kubuntu-desktop"?

    edit: Do I use chroot?
    Last edited by Thrashrokz33; December 18th, 2012 at 08:55 AM.

  8. #8
    Join Date
    Apr 2008
    Location
    London
    Beans
    1,873
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: I just deleted part of my system

    See here under Update Failure. You need to replace hda1 with sda1 or sda2 or whatever is appropriate for your system. Instead of just updating you can install or remove packages too.

    .

  9. #9
    Join Date
    Jul 2011
    Beans
    77

    Re: I just deleted part of my system

    Well, after fixing Grub, it looks like crisis semi-averted. I've lost all of my installed applications, and it looks like I'll have to tweak my Desktop again, but it's better than starting from fresh I guess. Thanks for your help.

  10. #10
    Join Date
    Apr 2008
    Location
    London
    Beans
    1,873
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: I just deleted part of my system

    Good! It's an opportunity to try out a new theme!

    .

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •