← Back to team overview

openjdk team mailing list archive

[Bug 1483233] Re: package openjdk-7-jre-headless (not installed) failed to install/upgrade: cannot copy extracted data for './usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so' to '/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so.dpkg-new': unexpected end of file or stream

 

Thank you for taking the time to report this bug and helping to make
Ubuntu better.  It seems that there was an error on your system when
trying to install a particular package.  Please execute the following
command, as it will clear your package cache, in a terminal:

sudo apt-get clean

Then try performing the update again.  This will likely resolve your
issue, but the failure could be caused by filesystem or memory
corruption.  So please also run a fsck on your filesystem(s) and a
memory test.  Thanks in advance!

[This is an automated message.  I apologize if it reached you
inappropriately; please just reply to this message indicating so.]

** Tags added: corrupted-package

** Changed in: openjdk-7 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1483233

Title:
  package openjdk-7-jre-headless (not installed) failed to
  install/upgrade: cannot copy extracted data for './usr/lib/jvm/java-7
  -openjdk-amd64/jre/lib/amd64/libhprof.so' to '/usr/lib/jvm/java-7
  -openjdk-amd64/jre/lib/amd64/libhprof.so.dpkg-new': unexpected end of
  file or stream

Status in openjdk-7 package in Ubuntu:
  Invalid

Bug description:
  I was running the command line to uninstall java7 to replace by 8

  ~:sudo apt-get remove --purge oracle-java7-installer 
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following extra packages will be installed:
    openjdk-7-jre-headless
  Suggested packages:
    icedtea-7-jre-jamvm sun-java6-fonts fonts-dejavu-extra fonts-ipafont-gothic
    fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei ttf-telugu-fonts
    ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
  The following packages will be REMOVED:
    oracle-java7-installer*
  The following NEW packages will be installed:
    openjdk-7-jre-headless
  0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
  Need to get 0 B/39.5 MB of archives.
  After this operation, 57.6 MB of additional disk space will be used.
  Do you want to continue? [Y/n] y
  (Reading database ... 234680 files and directories currently installed.)
  Preparing to unpack .../openjdk-7-jre-headless_7u79-2.5.6-0ubuntu1.14.04.1_amd64.deb ...
  Unpacking openjdk-7-jre-headless:amd64 (7u79-2.5.6-0ubuntu1.14.04.1) ...
  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/openjdk-7-jre-headless_7u79-2.5.6-0ubuntu1.14.04.1_amd64.deb (--unpack):
   cannot copy extracted data for './usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so' to '/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so.dpkg-new': unexpected end of file or stream
  Errors were encountered while processing:
   /var/cache/apt/archives/openjdk-7-jre-headless_7u79-2.5.6-0ubuntu1.14.04.1_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 14.04
  Package: openjdk-7-jre-headless (not installed)
  ProcVersionSignature: Ubuntu 3.16.0-45.60~14.04.1-generic 3.16.7-ckt14
  Uname: Linux 3.16.0-45-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.1-0ubuntu3.11
  Architecture: amd64
  Date: Mon Aug 10 08:12:32 2015
  DuplicateSignature: package:openjdk-7-jre-headless:(not installed):cannot copy extracted data for './usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so' to '/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so.dpkg-new': unexpected end of file or stream
  ErrorMessage: cannot copy extracted data for './usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so' to '/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so.dpkg-new': unexpected end of file or stream
  InstallationDate: Installed on 2015-07-28 (13 days ago)
  InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
  SourcePackage: openjdk-7
  Title: package openjdk-7-jre-headless (not installed) failed to install/upgrade: cannot copy extracted data for './usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so' to '/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libhprof.so.dpkg-new': unexpected end of file or stream
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1483233/+subscriptions


References