Results 1 to 8 of 8

Thread: Ubuntu Tweak Messed Up apt-get

  1. #1
    Join Date
    Aug 2007
    Location
    Central Valley, CA USA
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Ubuntu Tweak Messed Up apt-get

    Hello All,

    When I run apt-get ANYTHING, I get the results of the command, but then I get this at the end of the results in Terminal:
    Setting up ubuntu-tweak (0.4.9-0~20090830~karmic1) ...
    Usage: update-python-modules [-v] [-c] package_directory [...]
    update-python-modules [-v] [-c] package.dirs [...]
    update-python-modules [-v] [-a|-f|-p]

    update-python-modules: error: /usr/share/python-support/ubuntu-tweak.private is not a directory
    dpkg: error processing ubuntu-tweak (--configure):
    subprocess post-installation script returned error exit status 2
    Errors were encountered while processing:
    ubuntu-tweak
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    No matter what the apt-get command is, ALWAYS Ubuntu Tweak results show as above.
    I CAN run Ubuntu Tweak, as it does work. So why do I get this error message?

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu Tweak Messed Up apt-get

    Try these in order. Accomplish the next if the previous doesn't work. Each is a separate attempt to correct the problem, ending with an attempted update. If an update works, STOP and do not run the subsequent commands.

    Code:
    sudo apt-get purge ubuntu-tweak
    sudo apt-get update
    ___
    
    sudo apt-get install -f
    sudo apt-get update
    ___
    
    dpkg --configure ubuntu-tweak
    sudo apt-get update
    ___
    
    sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bad
    sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
    sudo apt-get update
    If one of these sets don't solve it, you can get a bit more aggressive. You have already backed up the status file to status.bad. Now you will remove the ubuntu-tweak information.

    Code:
    gksudo gedit /var/lib/dpkg/status
    Find the entry for ubuntu-tweak. It will start with:
    "Package: ubuntu-tweak"
    and end with
    "Homepage: http://ubuntu-tweak.com"
    Delete the entire section, save the file, and then run the update command again. You can also then try to reinstall ubuntu-tweak if you wish.


    Added: Please mark the thread solved via the Thread Tools link near the upper right of the original post when you no longer need assistance. And tell us how you fixed it.
    Last edited by drs305; September 7th, 2009 at 03:55 AM. Reason: Typo
    Back to Xorg...

    Retired.

  3. #3
    Join Date
    Aug 2007
    Location
    Central Valley, CA USA
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu Tweak Messed Up apt-get

    Thanks for the tips! Here's what I got:
    Code:
    sudo apt-get purge ubuntu-tweak
    sudo apt-get update
    Same problem
    ___
    Code:
    sudo apt-get install -f
    sudo apt-get update
    Same problem
    ___
    Code:
    dpkg --configure ubuntu-tweak
    sudo apt-get update
    Same problem
    ___
    Code:
    sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bad
    sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status-old
    sudo apt-get update
    Now I get this when running apt-get:
    Reading package lists... Error!
    E: Could not open file /var/lib/dpkg/status - open (2 No such file or directory)
    E: The package lists or status file could not be parsed or opened.
    Code:
    gksudo gedit /var/lib/dpkg/status
    This opens an empty file...

  4. #4
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu Tweak Messed Up apt-get

    Sorry for the typo:
    Code:
    sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
    sudo apt-get update
    Then continue if it doesn't work. I'll correct the original.

    The reason it came up empty is because there wasn't a /var/lib/dpkg/status file. If you get an error message because you have saved the empty one, delete it before running the above.
    Back to Xorg...

    Retired.

  5. #5
    Join Date
    Aug 2007
    Location
    Central Valley, CA USA
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu Tweak Messed Up apt-get

    I also get this in my Panel's Status Area:

  6. #6
    Join Date
    Aug 2007
    Location
    Central Valley, CA USA
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu Tweak Messed Up apt-get

    Thanks! So I removed that section from the file. Do I need to restart X?

  7. #7
    Join Date
    Aug 2007
    Location
    Central Valley, CA USA
    Beans
    48
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Ubuntu Tweak Messed Up apt-get

    You ROCK drs305!!! Thanks. Fixed via your instructions above.

  8. #8
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu Tweak Messed Up apt-get

    Quote Originally Posted by espmartin View Post
    Thanks! So I removed that section from the file. Do I need to restart X?

    No, just running the apt-get update command would be sufficient.
    Back to Xorg...

    Retired.

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
  •