Results 1 to 2 of 2

Thread: Broken package manager

  1. #1
    Join Date
    Feb 2020

    Broken package manager


    I'm running ubuntu 18.04. When I run sudo apt-get update, I get the error given below.

    Reading package lists... Error!
    E: Encountered a section with no Package: header
    E: Problem with MergeList /var/lib/apt/lists/ buntu1804_x86%5f64_Packages
    E: The package lists or status file could not be parsed or opened.

    I've scoured all the forums and they invariably say to remove package lists and then update:

    sudo rm /var/lib/apt/lists/* -vf
    sudo apt-get update

    I've tried to remove the problematic file myself.
    However the error persists. I can't update or uninstall any packages. Any help is appreciated.

  2. #2
    Join Date
    Jul 2010
    ozarks, Arkansas, USA
    Xubuntu 20.04 Focal Fossa

    Re: Broken package manager

    jamesoreilly - Hello

    Try it like:
    sudo rm -fr /var/lib/apt/lists
    sudo mkdir -pv /var/lib/apt/lists/partial
    sudo apt update
    sudo apt upgrade
    MergeLists are a working tool of apt, part of the way it keeps track of which packages are in which repositories. It's the gears of a text-based database that apt relies upon. When corrupted, they can be safely deleted. Apt will recreate them during the next apt update.
    maybe now Yes
    THE current(cy) in Documentation:

    Happy ubuntu'n !

Tags for this Thread


Posting Permissions

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