<div dir="ltr">Hi Kir<div><br></div><div>The immediate reason is that the Packages file does not match the file size.</div><div><br></div><div><div>Package: linux-image-openvz-amd64</div><div>Priority: extra</div>
<div>Section: kernel</div><div>Installed-Size: 36</div><div>Maintainer: OpenVZ team <<a href="mailto:devel@openvz.org" target="_blank">devel@openvz.org</a>></div><div>Architecture: amd64</div><div>Version: 042+1</div>
<div>Provides: vzkernel</div>
<div>Depends: linux-image-2.6.32-openvz-amd64</div><div>Filename: dists/wheezy/main/binary-amd64/kernel/linux-image-openvz-amd64_042+1_amd64.deb</div><div><b>Size: 3084</b></div></div><div><br></div><div>But if you look at the size of the file it is larger.</div>
<div><div>ola@debarchiver:/srv/apt-repository/root$ ls -l dists/wheezy/main/binary-amd64/kernel/linux-image-openvz-amd64_042*</div><div>-rw-r--r-- 1 apt-repository apt-repository<b> 3834</b> feb 13 20:43 dists/wheezy/main/binary-amd64/kernel/linux-image-openvz-amd64_042+1_amd64.deb</div>
</div><div><br></div><div>The md5sum does not match either.</div><div><br></div><div>The question is why this is the case. dpkg-deb shows a different size, so the package is really that size.</div><div><br></div><div><div>
ola@debarchiver:/srv/apt-repository/root/dists/wheezy/main/binary-amd64$ dpkg-deb -I kernel/linux-image-openvz-amd64*</div><div> new debian package, version 2.0.</div><div> size <b>3834</b> bytes: control archive=805 bytes.</div>
</div><div><br></div><div>When I run the command "dpkg-scanpackages binary-amd64 override" manually it generates the correct output. However this is not the command used, instead apt-ftparchive is used. Apt-ftparchive has a cache file that in certain situations can get corrupt.</div>
<div><br></div><div>The cache file is a good thing as it is possible to scan large archives quickly, but it can also be corrupt sometimes (if you upload two packages with the same version number for example). With this cache the indexing takes a few seconds. Without this cache file the indexing takes ~6 minutes (when scanning all). I think I have found a good option to apt-ftparchive (AlwaysStat) to avoid this problem.</div>
<div><br></div><div>I have now removed this cache file and re-generated all the Package files and now it seems to work. Let me know if you see any further issues.</div><div><br></div><div>I'll install a new version of debarchiver with that sets the option for apt-ftparchive soon.</div>
<div><br></div><div>// Ola<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 14, 2014 at 9:48 PM, Kir Kolyshkin <span dir="ltr"><<a href="mailto:kir@openvz.org" target="_blank">kir@openvz.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Reproduced locally<br>
apt-get remove linux-image-openvz-amd64<br>
apt-get clean<br>
apt-get update<br>
apt-get install linux-image-openvz-amd64<br>
....<br>
(same error as below)<br>
<br>
Ola, can you please check?<br>
<br>
On 02/14/2014 11:43 AM, Stefan Antonelli wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
i try to set up OpenVZ on a clean Debian Wheezy. When i set up the kernel using "apt-get install linux-image-openvz-amd64” it fails to fetch the latest kernel. Here is my log:<br>
<br>
—snip—<br>
<br>
root@debian:~# apt-get install linux-image-openvz-amd64<br>
Reading package lists... Done<br>
Building dependency tree<br>
Reading state information... Done<br>
The following extra packages will be installed:<br>
linux-image-2.6.32-openvz-<u></u>amd64<br>
Suggested packages:<br>
fdutils linux-doc-2.6.32-openvz-amd64 linux-source-2.6.32-openvz-<u></u>amd64 ksymoops linux-image-2.6.32-openvz-<u></u>amd64-dbg<br>
The following NEW packages will be installed:<br>
linux-image-2.6.32-openvz-<u></u>amd64 linux-image-openvz-amd64<br>
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.<br>
Need to get 44.0 MB of archives.<br>
After this operation, 132 MB of additional disk space will be used.<br>
Do you want to continue [Y/n]?<br>
Get:1 <a href="http://download.openvz.org/debian/" target="_blank">http://download.openvz.org/<u></u>debian/</a> wheezy/main linux-image-2.6.32-openvz-<u></u>amd64 amd64 042stab084.25 [44.0 MB]<br>
Get:2 <a href="http://download.openvz.org/debian/" target="_blank">http://download.openvz.org/<u></u>debian/</a> wheezy/main linux-image-openvz-amd64 amd64 042+1 [3,084 B]<br>
Fetched 44.0 MB in 1min 33s (471 kB/s)<br>
Failed to fetch <a href="http://download.openvz.org/debian/dists/wheezy/main/binary-amd64/kernel/linux-image-openvz-amd64_042+1_amd64.deb" target="_blank">http://download.openvz.org/<u></u>debian/dists/wheezy/main/<u></u>binary-amd64/kernel/linux-<u></u>image-openvz-amd64_042+1_<u></u>amd64.deb</a> Size mismatch<br>
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?<br>
<br>
—snap---<br>
<br>
Any ideas?<br>
<br>
-Stefan<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" target="_blank">https://lists.openvz.org/<u></u>mailman/listinfo/users</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><font face="courier new, monospace" size="1"> --- Inguza Technology AB --- MSc in Information Technology ----</font></div><div><font face="courier new, monospace" size="1">/ <a href="mailto:ola@inguza.com" target="_blank">ola@inguza.com</a> Annebergsslingan 37 \</font></div>
<div><font face="courier new, monospace" size="1">| <a href="mailto:opal@debian.org" target="_blank">opal@debian.org</a> 654 65 KARLSTAD |</font></div><div><font face="courier new, monospace" size="1">| <a href="http://inguza.com/" target="_blank">http://inguza.com/</a> Mobile: +46 (0)70-332 1551 |</font></div>
<div><font face="courier new, monospace" size="1">\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /</font></div><div><font face="courier new, monospace" size="1"> ---------------------------------------------------------------</font></div>
</div><div><br></div></div>
</div>