<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFCC">
<br>
<div class="moz-forward-container"><br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
I am having a problem with updating any software on my Ubuntu
Studio 12.04<br>
<br>
There are various updates listed, but when trying to install them
I get an error:<br>
<br>
installArchives() failed: (Reading database ... dpkg:
unrecoverable fatal error, aborting:
<br>
unable to open files list file for package `libgmp10':
Input/output error
/var/cache/apt/archives/libgmp10_2%3a5.0.2+dfsg-2ubuntu1_amd64.deb<br>
Error in function:
<br>
SystemError: E:Sub-process /usr/bin/dpkg returned an error code
(2)<br>
<br>
<br>
/var/lib/dpkg/status contains the following entry:<br>
<br>
Package: libgmp10<br>
Status: install ok installed<br>
Multi-Arch: same<br>
Priority: optional<br>
Section: libs<br>
Installed-Size: 486<br>
Maintainer: Ubuntu Developers <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:ubuntu-devel-discuss@lists.ubuntu.com"><ubuntu-devel-discuss@lists.ubuntu.com></a><br>
Architecture: amd64<br>
Source: gmp<br>
Version: 2:5.0.2+dfsg-2ubuntu1<br>
Depends: libc6 (>= 2.7)<br>
Pre-Depends: multiarch-support<br>
Description: Multiprecision arithmetic library<br>
GNU MP is a programmer's library for arbitrary precision<br>
arithmetic (ie, a bignum package). It can operate on signed<br>
integer, rational, and floating point numeric types.<br>
.<br>
It has a rich set of functions, and the functions have a regular<br>
interface.<br>
Original-Maintainer: Debian Science Team <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:debian-science-maintainers@lists.alioth.debian.org"><debian-science-maintainers@lists.alioth.debian.org></a><br>
Homepage: <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://gmplib.org/">http://gmplib.org/</a><br>
<br>
<br>
<br>
I removed this from the status file and ran<br>
<br>
sudo apt-get -f install<br>
<br>
I am still getting errors, and libgmp10 is installed, and is the
latest version, but Synaptic cannot list its installed files, and
dpkg is getting an error reading its files<br>
<br>
<br>
I have tried just reinstalling libgmp10 but it fails, I have tried
updating the list of updates, I have tried updates via Update
Manager, Synaptic and apt-get on the CLI.<br>
<br>
<br>
Whatever I try to do I get an error with dpkg, and it is something
to do with libgmp10. I am loathe to remove it as so much else
depends on this vital software.<br>
<br>
<br>
If I try<br>
sudo apt-get install --reinstall libgmp10<br>
<br>
The following output is shown:<br>
<br>
<br>
Reading package lists... Done<br>
Building dependency tree <br>
Reading state information... Done<br>
The following packages were automatically installed and are no
longer required:<br>
gir1.2-ubuntuoneui-3.0 calligra-l10n-engb libhsqldb-java gjs
kde-l10n-engb<br>
gir1.2-gdesktopenums-3.0 libubuntuoneui-3.0-1 libcmis-0.2-0<br>
gir1.2-gjsdbus-1.0 libgjs0c<br>
Use 'apt-get autoremove' to remove them.<br>
The following packages will be upgraded:<br>
libgmp10<br>
1 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.<br>
1 not fully installed or removed.<br>
Need to get 238 kB of archives.<br>
After this operation, 498 kB of additional disk space will be
used.<br>
Get:1 <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://gb.archive.ubuntu.com/ubuntu/">http://gb.archive.ubuntu.com/ubuntu/</a>
precise/main libgmp10 amd64 2:5.0.2+dfsg-2ubuntu1 [238 kB]<br>
Fetched 238 kB in 1s (160 kB/s) <br>
(Reading database ... <br>
dpkg: warning: files list file for package `libgmp10' missing,
assuming package has no files currently installed.<br>
(Reading database ... 751863 files and directories currently
installed.)<br>
Preparing to replace libgmp10 2:5.0.2+dfsg-2ubuntu1 (using
.../libgmp10_2%3a5.0.2+dfsg-2ubuntu1_amd64.deb) ...<br>
Unpacking replacement libgmp10 ...<br>
dpkg: error processing
/var/cache/apt/archives/libgmp10_2%3a5.0.2+dfsg-2ubuntu1_amd64.deb
(--unpack):<br>
failed to install updated files list file for package libgmp10:
Input/output error<br>
Errors were encountered while processing:<br>
/var/cache/apt/archives/libgmp10_2%3a5.0.2+dfsg-2ubuntu1_amd64.deb<br>
E: Sub-process /usr/bin/dpkg returned an error code (1)<br>
<br>
<br>
<br>
When trying to remove unneeded packages with apt-get autoremove<br>
I still get the same errors<br>
<br>
<br>
<br>
What can I do to fix this?<br>
<br>
<br>
<br>
David K<br>
<br>
<br>
</div>
<br>
<br>
</body>
</html>