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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I was running the command line to uninstall java7 to replace by 8
~:sudo apt-get remove --purge oracle-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openjdk-
Suggested packages:
icedtea-
fonts-
ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
The following packages will be REMOVED:
oracle-
The following NEW packages will be installed:
openjdk-
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-
Unpacking openjdk-
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/
cannot copy extracted data for './usr/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: openjdk-
ProcVersionSign
Uname: Linux 3.16.0-45-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
Date: Mon Aug 10 08:12:32 2015
DuplicateSignature: package:
ErrorMessage: cannot copy extracted data for './usr/
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-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
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.]