Linux Not Updating: 0% [waiting for headers]

What to do when Linux is not updating?


Update means update in the repositories with the new information and upgrading means to upgrade what is in the new repositories. To update your Linux type

Code:
sudo apt-get update; sudo apt-get upgrade 

Hit enter, it will ask for you password. Check that in, Now it should be checking the repositories. But if somehow the update gets stuck at some place. just read below what to do.

Sometimes u will see that while updating the Linux operating system from terminal, the following message appears
0% [waiting for headers]
and nothing seems to change after that. It becomes a headache when it is stuck at 0% or sometimes at 99%
Just type this code whenever the updating gets stuck.

Code:
sudo rm -rf /var/lib/apt/lists/*
and then update normally your Linux with

Code:
sudo apt-get update

3 comments:

  1. this happens when I try sudo apt-get update: E: Lists directory /var/lib/apt/lists/partial is missing.

    ReplyDelete
  2. Hy tiggy,

    Login as root user and enter the following command:

    # mkdir -p /var/cache/apt/archives/partial
    # apt-get autoclean

    if not success, try also without -p

    Then update with sudo apt-get update

    Hope it helps. Good Luck

    ReplyDelete

Cool Inventions To Buy In 2017