# Hash Sum mismatch sur les package php7.0-dev et aptitude

**URL:** <https://www.debian-fr.org/t/hash-sum-mismatch-sur-les-package-php7-0-dev-et-aptitude/77995>\
**Category:** Support Debian\
**Created:** [Novembre 15, 2018, 12:10 UTC](https://www.debian-fr.org/t/hash-sum-mismatch-sur-les-package-php7-0-dev-et-aptitude/77995 "2018-11-15T12:10:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugo2](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/h/db5fbb/32.png) [@hugo2](https://www.debian-fr.org/u/hugo2)\
**Post date:** [Novembre 15, 2018, 12:10 UTC](https://www.debian-fr.org/t/hash-sum-mismatch-sur-les-package-php7-0-dev-et-aptitude/77995/1 "2018-11-15T12:10:40Z")

</div>

Bonjour,

J’essaye d’installer `php7.0-dev` et je choppe des erreurs `Hash Sum Mismatch` sur les dépendances

J’ai déjà essayé `apt-get clean` `rm -rf /var/lib/apt/lists/* ....etc` et des `flags -o Acquire` trouvés en ligne mais sans grand succès…

Je suis sur `Debian 9 Stretch` avec `apt version 1.4.8.`

Log :

```nohighlight
apt-get -o Acquire::http::No-Cache=true install php7.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  autoconf automake autopoint autotools-dev binutils build-essential cpp cpp-6 debhelper dh-autoreconf dh-php dh-strip-nondeterminism dpkg-dev fakeroot g++ g++-6 gcc gcc-6 gettext gettext-base groff-base intltool-debian
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-zip-perl libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libcroco3 libdpkg-perl libexporter-tiny-perl libfakeroot
  libfile-fcntllock-perl libfile-stripnondeterminism-perl libgcc-6-dev libglib2.0-0 libglib2.0-data libgomp1 libisl15 libitm1 liblist-moreutils-perl liblsan0 libltdl-dev libmail-sendmail-perl libmpc3 libmpfr4 libmpx2 libpcre16-3
  libpcre3-dev libpcre32-3 libpcrecpp0v5 libpipeline1 libquadmath0 libsigsegv2 libstdc++-6-dev libsys-hostname-long-perl libtimedate-perl libtool libtsan0 libubsan0 linux-libc-dev m4 make man-db manpages manpages-dev pkg-php-tools
  po-debconf shared-mime-info shtool xdg-user-dirs xml2
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc binutils-doc cpp-doc gcc-6-locales dh-make debian-keyring g++-multilib g++-6-multilib gcc-6-doc libstdc++6-6-dbg gcc-multilib flex bison gdb gcc-doc gcc-6-multilib libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan3-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg gettext-doc libasprintf-dev libgettextpo-dev groff glibc-doc libtool-doc libstdc++-6-doc gfortran
  | fortran95-compiler gcj-jdk m4-doc make-doc www-browser libmail-box-perl
The following NEW packages will be installed:
  autoconf automake autopoint autotools-dev binutils build-essential cpp cpp-6 debhelper dh-autoreconf dh-php dh-strip-nondeterminism dpkg-dev fakeroot g++ g++-6 gcc gcc-6 gettext gettext-base groff-base intltool-debian
  libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-zip-perl libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libcroco3 libdpkg-perl libexporter-tiny-perl libfakeroot
  libfile-fcntllock-perl libfile-stripnondeterminism-perl libgcc-6-dev libglib2.0-0 libglib2.0-data libgomp1 libisl15 libitm1 liblist-moreutils-perl liblsan0 libltdl-dev libmail-sendmail-perl libmpc3 libmpfr4 libmpx2 libpcre16-3
  libpcre3-dev libpcre32-3 libpcrecpp0v5 libpipeline1 libquadmath0 libsigsegv2 libstdc++-6-dev libsys-hostname-long-perl libtimedate-perl libtool libtsan0 libubsan0 linux-libc-dev m4 make man-db manpages manpages-dev php7.0-dev
  pkg-php-tools po-debconf shared-mime-info shtool xdg-user-dirs xml2
0 upgraded, 77 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.8 MB/57.2 MB of archives.
After this operation, 218 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y5
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:4021d318a8e9480d740fecfe5efba7a6d60eacc66a064ca3b5c1889b8c67e506
   - MD5Sum:a411993452ef331302f22e4ab0f4f611 [weak]
   - Filesize:28948 [weak]
  Hashes of received file:
   - SHA256:7f0a81e458df5e9648252bf3a76ffd57f366a0ddcab5290a9c3bb5bc0c79e513
   - MD5Sum:83c6ec240f9529814782a1143275f13e [weak]
   - Filesize:564486 [weak]
  Last modification reported: Thu, 05 Jan 2017 21:43:03 +0000

```

[tronqué]

Merci pour votre aide

---

<div class="post-metadata">

**Author:** ![mattotop](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mattotop/32/3942_2.png) [@mattotop](https://www.debian-fr.org/u/mattotop)\
**Post date:** [Novembre 15, 2018, 5:15 UTC](https://www.debian-fr.org/t/hash-sum-mismatch-sur-les-package-php7-0-dev-et-aptitude/77995/2 "2018-11-15T17:15:15Z")

</div>

Tu as bien fait un apt-get update avant ?  
Tu as uniquement les dépots standards debian ? Des backports ou des mirroirs ?

---

<div class="post-metadata">

**Author:** ![dindoun](https://www.debian-fr.org/user_avatar/www.debian-fr.org/dindoun/32/4281_2.png) [@dindoun](https://www.debian-fr.org/u/dindoun)\
**Post date:** [Novembre 15, 2018, 10:27 UTC](https://www.debian-fr.org/t/hash-sum-mismatch-sur-les-package-php7-0-dev-et-aptitude/77995/3 "2018-11-15T22:27:29Z")

</div>

salut  
quand j’ai un truc comme ça j’essaie d’accéder directement au .deb ( [http://ftp.crihan.fr/debian/pool/main/p/php7.0/php7.0-dev\_7.0.30-0+deb9u1\_amd64.deb](http://ftp.crihan.fr/debian/pool/main/p/php7.0/php7.0-dev_7.0.30-0+deb9u1_amd64.deb) par exemple )  
avec deux navigateurs : firefox et tor , je teste en local et je conclus.

---

<div class="post-metadata">

**Author:** ![hugo2](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/h/db5fbb/32.png) [@hugo2](https://www.debian-fr.org/u/hugo2)\
**Post date:** [Novembre 16, 2018, 10:45 UTC](https://www.debian-fr.org/t/hash-sum-mismatch-sur-les-package-php7-0-dev-et-aptitude/77995/4 "2018-11-16T10:45:27Z")

</div>

Oui pour le apt-get update.

J’ai trouvé depuis, c’est le firewall de mon environnement réseau qui filtre et change la taille des packets reçus.
