Results 1 to 3 of 3

Thread: How to Restore Trashed File that Prevents Updates?

  1. #1
    Join Date
    Nov 2005
    Beans
    349
    Distro
    Ubuntu 13.04 Raring Ringtail

    Question How to Restore Trashed File that Prevents Updates?

    I can't get any software updates. Running apt-get check produces the following error message:

    Reading package lists... Error!
    E: Encountered a section with no Package: header
    E: Problem with MergeList /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_raring_main_i18 n_Translation-en
    E: The package lists or status file could not be parsed or opened.


    And, indeed, when I look at the file that apt-get is complaining about, /var/lib/apt/lists/gb.archive...Translation-en, I see that it is the click-to-agree-to-terms page from the internet link I was using when I attempted to update a few days ago.

    Anyway, how can I get a correct version of the file?

    P.S. I've tried simply deleting the file in the hope that Ubuntu would see it missing and regenerate a sane version of it. No luck.
    Last edited by Ubuntist; June 15th, 2013 at 02:00 PM. Reason: EDIT: Removed query as to how the MergeList file was replaced with HTML and provided explanation thereof.

  2. #2
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to Restore Trashed File that Prevents Updates?

    Quote Originally Posted by Ubuntist View Post
    I can't get any software updates. Running apt-get check produces the following error message:

    Reading package lists... Error!
    E: Encountered a section with no Package: header
    E: Problem with MergeList /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_raring_main_i18 n_Translation-en
    E: The package lists or status file could not be parsed or opened.


    And, indeed, when I look at the file that apt-get is complaining about, /var/lib/apt/lists/gb.archive...Translation-en, I see that it is the click-to-agree-to-terms page from the internet link I was using when I attempted to update a few days ago.

    Anyway, how can I get a correct version of the file?

    P.S. I've tried simply deleting the file in the hope that Ubuntu would see it missing and regenerate a sane version of it. No luck.
    Delete the list files with
    Code:
    sudo rm -rf /var/lib/apt/lists/*
    and then reload them with
    Code:
    sudo apt-get update
    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  3. #3
    Join Date
    Nov 2005
    Beans
    349
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to Restore Trashed File that Prevents Updates?

    Yo, plucky, you da man, dude!

    Thanks -- it worked perfectly.

Tags for this Thread

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
  •