← Back to team overview

ocaml-maint team mailing list archive

[Bug 1387581] Re: Hash Sum mismatch cz.archive.ubuntu.com | ocaml-compiler-libs

 

*** This bug is a duplicate of bug 1373598 ***
    https://bugs.launchpad.net/bugs/1373598

** This bug has been marked a duplicate of bug 1373598
   apt-get update fails, hash sum mismatches (trusty)

-- 
You received this bug notification because you are a member of Debian
OCaml Maintainers, which is subscribed to ocaml in Ubuntu.
https://bugs.launchpad.net/bugs/1387581

Title:
  Hash Sum mismatch cz.archive.ubuntu.com | ocaml-compiler-libs

Status in ocaml package in Ubuntu:
  New

Bug description:
  Package on cz.archive.ubuntu.com is probably corrupted I had to 'wget'
  it manually to '/var/cache/apt/archives/' for enabling dist-upgrade.

  From '/var/log/apt/term.log':

  Log started: 2014-10-29  17:02:01
  (Reading database ... 629931 files and directories currently installed.)
  Preparing to unpack .../ocaml-compiler-libs_4.01.0-4ubuntu1_i386.deb ...
  Unpacking ocaml-compiler-libs (4.01.0-4ubuntu1) over (4.01.0-3ubuntu3) ...
  dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
  dpkg-deb: error: subprocess <decompress> returned error exit status 2
  dpkg: error processing archive /var/cache/apt/archives/ocaml-compiler-libs_4.01.0-4ubuntu1_i386.deb (--unpack):
   cannot copy extracted data for './usr/lib/ocaml/compiler-libs/btype.cmi' to '/usr/lib/ocaml/compiler-libs/btype.cmi.dpkg-new': unexpected end of file or stream
  Errors were encountered while processing:
   /var/cache/apt/archives/ocaml-compiler-libs_4.01.0-4ubuntu1_i386.deb
  Log ended: 2014-10-29  17:02:19

  I solved it by changing mirror:

  sed -i 's/cz.archive.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
  apt-get update
  apt-get -f install

  
  /* before mirror update:

  apt-get -f install
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  Correcting dependencies... Done
  The following extra packages will be installed:
    ocaml-compiler-libs
  The following packages will be upgraded:
    ocaml-compiler-libs
  1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
  6 not fully installed or removed.
  Need to get 1,312 kB of archives.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n] 
  Get:1 http://cz.archive.ubuntu.com/ubuntu/ utopic/main ocaml-compiler-libs i386 4.01.0-4ubuntu1 [1,312 kB]
  Fetched 1,312 kB in 1s (1,225 kB/s)              
  E: Failed to fetch http://cz.archive.ubuntu.com/ubuntu/pool/main/o/ocaml/ocaml-compiler-libs_4.01.0-4ubuntu1_i386.deb  Hash Sum mismatch

  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  */

  ProblemType: Bug
  DistroRelease: Ubuntu 14.10
  Package: ocaml-compiler-libs 4.01.0-3ubuntu3
  ProcVersionSignature: Ubuntu 3.16.0-23.31-generic 3.16.4
  Uname: Linux 3.16.0-23-generic i686
  ApportVersion: 2.14.7-0ubuntu8
  Architecture: i386
  Date: Thu Oct 30 09:38:25 2014
  Dependencies:
   
  InstallationDate: Installed on 2013-01-14 (653 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.2)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: ocaml
  UpgradeStatus: Upgraded to utopic on 2014-10-28 (1 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocaml/+bug/1387581/+subscriptions


References