[SOLVED] packages have unexpected size

update

(JOduMonT) #1

On a fresh install
when I try to upgrade I have error

Get:1 http://deb.parrotsec.org/parrot parrot/main amd64 parrot-interface-common all 4.3+parrot2 [18.1 MB]
Err:1 http://deb.parrotsec.org/parrot parrot/main amd64 parrot-interface-common all 4.3+parrot2
File has unexpected size (18130220 != 18130664). Mirror sync in progress? [IP: 104.24.125.114 80]
Hashes of expected file:

  • SHA256:8ed826872d608b66e4409517661737806489e47c1ff36299cf709aced9595929
  • SHA1:211fe80ee2d6d79363ae5707c44d49fa5d794c8b [weak]
  • MD5Sum:974cfb9d0732dd30706d21033914cc3d [weak]
  • Filesize:18130664 [weak]

so I tried without success

compare my /etc/apt/sources.list and /etc/apt/sources.list.d/*

rm -rf /var/lib/apt/list/*
apt clean
apt clean all
apt update --fix-missing
apt upgrade --force

now I noticed the last-sync (http://deb.parrotsec.org/parrot/) append between my installation and these command but I don’t know if it’s is linked

How I could fix this ?


(Matt) #2

Make sure that /ect/apt/sources.list is empty.

Try a different mirror https://www.parrotsec.org/docs/mirror-list/.


(JOduMonT) #3

thanks for your quick reply and the solution :slight_smile:

I wonder why but by replacing

    deb http://deb.parrotsec.org/parrot parrot main contrib non-free

by

    deb http://deb.parrotsec.org/parrot stable main contrib non-free

did the works