Loaded new 9.04 box, applied updates, libmagickcore1 and mono-jit have issues

Bug #448268 reported by Michael Lueck
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mono (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: imagemagick

I installed a new 8.04 box, applied the updates right away via Synaptic. I received the following errors:

>>>
E: /var/cache/apt/archives/libmagickcore1_7%3a6.4.5.4.dfsg1-1ubuntu3.1_i386.deb: short read in buffer_copy (backend dpkg-deb during `./usr/lib/libMagickCore.so.1.0.0')
E: /var/cache/apt/archives/mono-jit_2.0.1-4ubuntu0.1_i386.deb: corrupted filesystem tarfile - corrupted package archive
<<<<

When I started shutting down to reboot, then I see behind the Synaptic window the Update Notifier window was ALSO thinking about updating on its own. Most annoying. I disable Update Notifier on my 9.04 systems - prefer instead to get the tray icon when updates are available and apply them via Synaptic.

I will adjust my process to disabling Update Notifier before I try to update new loads.

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: short read in buffer_copy (backend dpkg-deb during `./usr/lib/libMagickCore.so.1.0.0')
Package: libmagickcore1 7:6.4.5.4.dfsg1-1ubuntu3.1
SourcePackage: imagemagick
Title: package libmagickcore1 7:6.4.5.4.dfsg1-1ubuntu3.1 failed to install/upgrade: short read in buffer_copy (backend dpkg-deb during `./usr/lib/libMagickCore.so.1.0.0')
Uname: Linux 2.6.28-15-generic i686

Revision history for this message
Michael Lueck (mlueck) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

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. If so please set the bug's status to Invalid. Thanks in advance!

Changed in imagemagick (Ubuntu):
status: New → Incomplete
tags: added: short-read
Changed in imagemagick (Ubuntu):
importance: Undecided → Low
Michael Lueck (mlueck)
summary: - Loaded new 8.04 box, applied updates, libmagickcore1 and mono-jit have
+ Loaded new 9.04 box, applied updates, libmagickcore1 and mono-jit have
issues
Revision history for this message
Michael Lueck (mlueck) wrote :

I apologize, this ticket is only about 9.04 systems. I seem to have intermixed 8.04 and 9.04 previously. Updating the title of the ticket.

I tried your apt-get clean suggestion, still does not clean up the crud caused by Update Notifier silently started while Synaptic was updating the system.

id@host:~$ sudo apt-get clean
id@host:~$ sudo apt-get install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up mono-jit (2.0.1-4ubuntu0.1) ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/cli for update_mode ()
dpkg: error processing mono-jit (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 mono-jit
E: Sub-process /usr/bin/dpkg returned an error code (1)
id@host:~$

affects: imagemagick (Ubuntu) → mono (Ubuntu)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The file /var/lib/dpkg/alternatives/cli looks corrupted. If it's still an issue, could you please attach it to this report and try to run:
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall mono-git libmagickcore1

Thanks.

Revision history for this message
Michael Lueck (mlueck) wrote :

I tried the three apt-get commands, and the install produced the following output:

$ sudo apt-get install --reinstall mono-git libmagickcore1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package mono-git

Going in Aptitude, I do not even see mono-git. Has that package been renamed or something since I originally loaded this box?

After that, I appled all available updates via Aptitude, and the updates applied, and at the tail end the same mono-.... aaarrrggg...

mono-jig not mono-git!!! I shall try again in this case... Bye!

Revision history for this message
Michael Lueck (mlueck) wrote :

With the corrected package name - error seems to yet persist... (All thanks to Update Notifier getting caught in the gears of Aptitude working. gggrrrr..... head shaking... do I need to open a separate bug against what I observed Update Notifier doing here?)

$ sudo apt-get install --reinstall mono-jit libmagickcore1
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 1654kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://us.archive.ubuntu.com jaunty-updates/main libmagickcore1 7:6.4.5.4.dfsg1-1ubuntu3.1 [1654kB]
Fetched 1654kB in 3s (418kB/s)
(Reading database ... 121375 files and directories currently installed.)
Preparing to replace libmagickcore1 7:6.4.5.4.dfsg1-1ubuntu3.1 (using .../libmagickcore1_7%3a6.4.5.4.dfsg1-1ubuntu3.1_i386.deb) ...
Unpacking replacement libmagickcore1 ...
Setting up mono-jit (2.0.1-4ubuntu0.1) ...
update-alternatives: error or eof reading /var/lib/dpkg/alternatives/cli for update_mode ()
dpkg: error processing mono-jit (--configure):
 subprocess post-installation script returned error exit status 2
Setting up libmagickcore1 (7:6.4.5.4.dfsg1-1ubuntu3.1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 mono-jit
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The file /var/lib/dpkg/alternatives/cli is certainly truncated ( size of 0 )

Remove that file (just move it to another place)
$ sudo mv /var/lib/dpkg/alternatives/cli ~/

You can then the broken file by running :
$ sudo update-alternatives --install /usr/bin/cli cli /usr/bin/mono 10 --slave /usr/share/man/man1/cli.1.gz cli.1.gz /usr/share/man/man1/mono.1.gz
$ sudo update-alternatives --auto cli

Then try performing the upgrade of mono-jit again.

I hope this helps.

Revision history for this message
Michael Lueck (mlueck) wrote :

Woo hoo! That finally resolved the errors! Thanks so much, Jean-Baptiste!

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for following up. I'm closing this report due to your last comment. Don't hesitate to submit any new bug.

Changed in mono (Ubuntu):
status: Incomplete → Invalid
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.