can not update index

Archived topics about LMDE 1 and LMDE 2
Locked
mfaridi

can not update index

Post by mfaridi »

today when I want update packages repo I see this error and can not download index

Code: Select all

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correc
and I see this

Code: Select all

Failed to fetch gzip:/var/lib/apt/lists/partial/packages.linuxmint.com_dists_debian_main_source_Sources  Hash Sum mismatch
Failed to fetch gzip:/var/lib/apt/lists/partial/packages.linuxmint.com_dists_debian_main_binary-amd64_Packages  Hash Sum mismatch
Failed to fetch gzip:/var/lib/apt/lists/partial/packages.linuxmint.com_dists_debian_main_binary-i386_Packages  Hash Sum mismatch
Some index files failed to download. They have been ignored, or old ones used instead.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: can not update index

Post by Monsta »

mfaridi

Re: can not update index

Post by mfaridi »

I check all two link but I have that problem again and it ca not solve
User avatar
karlchen
Level 23
Level 23
Posts: 18239
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: can not update index

Post by karlchen »

Hello, mfaridi.

I would try the following steps:
  1. Remove the temporary cache files.

    Code: Select all

    sudo rm -rf /var/lib/apt/lists/*
  2. Recreate the needed folder structure,

    Code: Select all

    sudo mkdir -p /var/lib/apt/lists/partial
  3. Try apt-get again.

    Code: Select all

    sudo apt-get update
    sudo apt-get dist-upgrade
Kind regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
mfaridi

Re: can not update index

Post by mfaridi »

karlchen wrote:Hello, mfaridi.

I would try the following steps:
  1. Remove the temporary cache files.

    Code: Select all

    sudo rm -rf /var/lib/apt/lists/*
  2. Recreate the needed folder structure,

    Code: Select all

    sudo mkdir -p /var/lib/apt/lists/partial
  3. Try apt-get again.

    Code: Select all

    sudo apt-get update
    sudo apt-get dist-upgrade
Kind regards,
Karl
I do not know why this method sometime can not work and I see that error again
Locked

Return to “LMDE Archive”