[Bug 310544] Re: Size mismatch remains after much fiddling
John Botha
launchpad at yellowacorn.com
Mon Dec 22 14:31:57 UTC 2008
This is probably as far as I can go now. The following steps addressed
the symptom and allowed me to install the packages. I still don't know
what went wrong in the first place, though, but hopefully this can help
others. Do all as root.
I took the first package which it complains about, and wanted to find
where on my system it is:
# locate cups_1.3.9-2ubuntu4_i386.deb | xargs ls -l
-rw-r--r-- 1 root root 1161864 2008-11-26 18:05 /var/cache/apt/archives/partial/cups_1.3.9-2ubuntu4_i386.deb
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 1161864 2008-12-19 09:08 /var/cache/apt-cacher-ng/uburep/pool/main/c/cups/cups_1.3.9-2ubuntu4_i386.deb
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng 248 2008-12-19 09:08 /var/cache/apt-cacher-ng/uburep/pool/main/c/cups/cups_1.3.9-2ubuntu4_i386.deb.head
The first two have the same size, and diff showed them to be identical.
The third is a control file with the following contents:
# cat /var/cache/apt-cacher-ng/uburep/pool/main/c/cups/cups_1.3.9-2ubuntu4_i386.deb.headHTTP/1.0 200 OK
Connection: keep-alive
Content-Length: 1161864
Last-Modified: Wed, 26 Nov 2008 16:05:05 GMT
X-Original-Source: http://za.archive.ubuntu.com/ubuntu/pool/main/c/cups/cups_1.3.9-2ubuntu4_i386.deb
Date: Fri Dec 19 07:08:19 2008
This shows the same file size, and the date & time agree as well, taking
into account my listing is GMT+2.
I was at my wits' end with this, so I deleted the three files and again
ran "apt-get update" and "apt-get upgrade". That solved the problem for
this file, but of course not for the others. To get the others sorted
out I wrote the following one-liner, which you can pull apart if you
like:
echo Y | apt-get upgrade 2>&1 | grep "^Failed to" | cut -d" " -f4 | awk
-F/ '{system("locate " $NF)}' | xargs rm
Check the results by running "apt-get upgrade".
Before running it, though, save the output of your "apt-get upgrade"
command, so you can check later if everything went well.
It's a bit over the top, but saves a LOT of typing. It will only work if
before you run it, you have updated your "locate" data base by running
"updatedb".
You would also do well first to have checked what was upgraded in the
process: in my case Firefox was updated and needed a re-start.
--
Size mismatch remains after much fiddling
https://bugs.launchpad.net/bugs/310544
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list