Building of libunistring0 fails

Asked by Phillip Smith

Binary package hint: libunistring0

root@dev:~# aptitude install kernel-package
The following NEW packages will be installed:
  gettext{a} intltool-debian{a} kernel-package libunistring0{a} po-debconf{a}
0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 438kB/2,507kB of archives. After unpacking 8,806kB will be used.
Do you want to continue? [Y/n/?] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ maverick/main libunistring0 amd64 0.9.3-1 [438kB]
Fetched 438kB in 0s (5,520kB/s)
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libu/libunistring/libunistring0_0.9.3-1_amd64.deb: Hash Sum mismatch

Right so I try install this package manually

root@dev:~# dpkg -i libunistring0_0.9.3-1_amd64.deb
(Reading database ... 53671 files and directories currently installed.)
Unpacking libunistring0 (from libunistring0_0.9.3-1_amd64.deb) ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:0>: invalid stored block lengths'
dpkg-deb: subprocess <decompress> returned error exit status 2
dpkg: error processing libunistring0_0.9.3-1_amd64.deb (--install):
 short read on buffer copy for backend dpkg-deb during `./usr/lib/libunistring.so.0.1.2'
Errors were encountered while processing:
 libunistring0_0.9.3-1_amd64.deb

root@dev:~# uname -a
Linux dev 2.6.35-24-server #42-Ubuntu SMP Thu Dec 2 03:58:11 UTC 2010 x86_64 GNU/Linux

root@dev:~# cat /etc/apt/sources.list
#
# deb cdrom:[Ubuntu-Server 10.04.1 LTS _Lucid Lynx_ - Release amd64 (20100816.2)]/ maverick main restricted

#deb cdrom:[Ubuntu-Server 10.04.1 LTS _Lucid Lynx_ - Release amd64 (20100816.2)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse

I have tried a number of repository's with all the same issues.

root@dev:~# apt-cache policy libunistring0
libunistring0:
  Installed: (none)
  Candidate: 0.9.3-1
  Version table:
     0.9.3-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages

root@dev:~# lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

3) I expect the package to install

4) It doesn't.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libunistring Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #702317.

Revision history for this message
Micah Gersten (micahg) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug. There is also a vibrant support community available at http://askubuntu.com and you might consider asking your question there.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#2

Try running:

sudo aptitude clean
sudo aptitude update
sudo aptitude install libunistring0

That might fix the problem. If not, please post the output of all three commands.

Can you help with this problem?

Provide an answer of your own, or ask Phillip Smith for more information if necessary.

To post a message you must log in.