package linux-image-3.16.0-37-generic (not installed) failed to install/upgrade: cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream

Bug #1452184 reported by Manish Vasoya
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Error while upgrading the linux-image-3.16.0-37-generic_3.16.0-37.49.....

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: linux-image-3.16.0-37-generic (not installed)
ProcVersionSignature: Ubuntu 3.16.0-34.47-generic 3.16.7-ckt8
Uname: Linux 3.16.0-34-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC0D0p: manish 2970 F...m pulseaudio
 /dev/snd/controlC0: manish 2970 F.... pulseaudio
Date: Wed May 6 11:53:29 2015
DpkgTerminalLog:
 Preparing to unpack .../linux-image-3.16.0-37-generic_3.16.0-37.49_amd64.deb ...
 Done.
 Unpacking linux-image-3.16.0-37-generic (3.16.0-37.49) ...
 dpkg: error processing archive /var/cache/apt/archives/linux-image-3.16.0-37-generic_3.16.0-37.49_amd64.deb (--unpack):
  cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
DuplicateSignature: package:linux-image-3.16.0-37-generic:(not installed):cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
ErrorMessage: cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
HibernationDevice: RESUME=UUID=f08d1729-dd77-4729-a024-17241163b3ac
InstallationDate: Installed on 2015-01-22 (103 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.16.0-34-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions: grub-pc N/A
RfKill:

SourcePackage: linux
Title: package linux-image-3.16.0-37-generic (not installed) failed to install/upgrade: cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
UpgradeStatus: No upgrade log present (probably fresh install)
WifiSyslog:
 May 6 11:46:42 STZ_plasticity kernel: [607541.345468] systemd-hostnamed[11955]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
 May 6 11:53:29 STZ_plasticity NetworkManager[1386]: <info> kernel firmware directory '/lib/firmware' changed
dmi.bios.date: 12/28/2012
dmi.bios.vendor: Intel Corp.
dmi.bios.version: BHZ7710H.86A.0097.2012.1228.1346
dmi.board.name: DZ77BH-55K
dmi.board.vendor: Intel Corporation
dmi.board.version: AAG39008-400
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrBHZ7710H.86A.0097.2012.1228.1346:bd12/28/2012:svn:pn:pvr:rvnIntelCorporation:rnDZ77BH-55K:rvrAAG39008-400:cvn:ct3:cvr:

Revision history for this message
Manish Vasoya (manishvasoya36) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
tags: removed: need-duplicate-check
Revision history for this message
Manish Vasoya (manishvasoya36) wrote :

Ok,

What I have do in order to solve this bug.

Changed in linux (Ubuntu):
importance: Undecided → High
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

It appears the .deb file is corrupt.

You may need to run the following from a terminal:

sudo apt-get install -f
sudo apt-get clean
sudo apt-get update

Then re-install the package.

If that does not resolve your issue, please mark the bug as "Confirmed"

Changed in linux (Ubuntu):
importance: High → Low
status: Confirmed → Incomplete
Revision history for this message
Matthew Bynum (mbynum) wrote :

I ran those commands and am having the same issue that Manish is having with the exact same package. The issue is still there:

Preparing to unpack .../linux-image-3.16.0-37-generic_3.16.0-37.51_amd64.deb ...
Done.
Unpacking linux-image-3.16.0-37-generic (3.16.0-37.51) over (3.16.0-37.49) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.16.0-37-generic_3.16.0-37.51_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

Revision history for this message
Manish Vasoya (manishvasoya36) wrote : Re: [Bug 1452184] Re: package linux-image-3.16.0-37-generic (not installed) failed to install/upgrade: cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
Download full text (4.7 KiB)

Yes, these command lines(sudo apt-get install -f, sudo apt-get clean, sudo
apt-get update) are giving error what Matthew have posted in his previous
mail. Thanks Matthew for the Email.

Manish

On 13 May 2015 at 01:25, Matthew Bynum <email address hidden> wrote:

> I ran those commands and am having the same issue that Manish is having
> with the exact same package. The issue is still there:
>
> Preparing to unpack
> .../linux-image-3.16.0-37-generic_3.16.0-37.51_amd64.deb ...
> Done.
> Unpacking linux-image-3.16.0-37-generic (3.16.0-37.51) over (3.16.0-37.49)
> ...
> dpkg: error processing archive
> /var/cache/apt/archives/linux-image-3.16.0-37-generic_3.16.0-37.51_amd64.deb
> (--unpack):
> cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to
> '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
> dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1452184
>
> Title:
> package linux-image-3.16.0-37-generic (not installed) failed to
> install/upgrade: cannot copy extracted data for
> './boot/vmlinuz-3.16.0-37-generic' to '/boot/vmlinuz-3.16.0-37-generic
> .dpkg-new': unexpected end of file or stream
>
> Status in linux package in Ubuntu:
> Incomplete
>
> Bug description:
> Error while upgrading the linux-
> image-3.16.0-37-generic_3.16.0-37.49.....
>
> ProblemType: Package
> DistroRelease: Ubuntu 14.10
> Package: linux-image-3.16.0-37-generic (not installed)
> ProcVersionSignature: Ubuntu 3.16.0-34.47-generic 3.16.7-ckt8
> Uname: Linux 3.16.0-34-generic x86_64
> ApportVersion: 2.14.7-0ubuntu8.4
> Architecture: amd64
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/pcmC0D0p: manish 2970 F...m pulseaudio
> /dev/snd/controlC0: manish 2970 F.... pulseaudio
> Date: Wed May 6 11:53:29 2015
> DpkgTerminalLog:
> Preparing to unpack
> .../linux-image-3.16.0-37-generic_3.16.0-37.49_amd64.deb ...
> Done.
> Unpacking linux-image-3.16.0-37-generic (3.16.0-37.49) ...
> dpkg: error processing archive
> /var/cache/apt/archives/linux-image-3.16.0-37-generic_3.16.0-37.49_amd64.deb
> (--unpack):
> cannot copy extracted data for './boot/vmlinuz-3.16.0-37-generic' to
> '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
> DuplicateSignature: package:linux-image-3.16.0-37-generic:(not
> installed):cannot copy extracted data for
> './boot/vmlinuz-3.16.0-37-generic' to
> '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
> ErrorMessage: cannot copy extracted data for
> './boot/vmlinuz-3.16.0-37-generic' to
> '/boot/vmlinuz-3.16.0-37-generic.dpkg-new': unexpected end of file or stream
> HibernationDevice: RESUME=UUID=f08d1729-dd77-4729-a024-17241163b3ac
> InstallationDate: Installed on 2015-01-22 (103 days ago)
> InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64
> (20141022.1)
> IwConfig:
> eth0 no wireless extensions.
>
> lo no wireless extensions.
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/...

Read more...

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
josh haglund (jhaglund) wrote :

I was getting this, and solved when df told me that /boot was full.

I tried to apt-get purge my old kernels but that didnt' work, apt said not enough disk space... um, yeah, that's why i wanted to remove stuff.

apparently apt-get tries to do some sorta boot config before removing, probably keeping things safe, but at the expense of being able to continue if /boot is full.

Solution was to go into /boot and delete the old kernel files as root

you can find out your current kernel by running uname -r

hope it helps!

Revision history for this message
josh haglund (jhaglund) wrote :

Oh, and then i was able to run apt-get purge and everything worked.

Revision history for this message
Manish Vasoya (manishvasoya36) wrote :

Ok. Thanks Josh.

I have also same issue. Now, it seems working well.

Thanks to everybody for all helpful comments.

Manish

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.