[Users] Installation of latest Kernel fails

Ola Lundqvist ola at inguza.com
Sat Feb 15 14:26:47 PST 2014


Hi Kir

The immediate reason is that the Packages file does not match the file size.

Package: linux-image-openvz-amd64
Priority: extra
Section: kernel
Installed-Size: 36
Maintainer: OpenVZ team <devel at openvz.org>
Architecture: amd64
Version: 042+1
Provides: vzkernel
Depends: linux-image-2.6.32-openvz-amd64
Filename:
dists/wheezy/main/binary-amd64/kernel/linux-image-openvz-amd64_042+1_amd64.deb
*Size: 3084*

But if you look at the size of the file it is larger.
ola at debarchiver:/srv/apt-repository/root$ ls -l
dists/wheezy/main/binary-amd64/kernel/linux-image-openvz-amd64_042*
-rw-r--r-- 1 apt-repository apt-repository* 3834* feb 13 20:43
dists/wheezy/main/binary-amd64/kernel/linux-image-openvz-amd64_042+1_amd64.deb

The md5sum does not match either.

The question is why this is the case. dpkg-deb shows a different size, so
the package is really that size.

ola at debarchiver:/srv/apt-repository/root/dists/wheezy/main/binary-amd64$
dpkg-deb -I kernel/linux-image-openvz-amd64*
 new debian package, version 2.0.
 size *3834* bytes: control archive=805 bytes.

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.

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.

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.

I'll install a new version of debarchiver with that sets the option for
apt-ftparchive soon.

// Ola



On Fri, Feb 14, 2014 at 9:48 PM, Kir Kolyshkin <kir at openvz.org> wrote:

> Reproduced locally
>     apt-get remove linux-image-openvz-amd64
>     apt-get clean
>     apt-get update
>     apt-get install linux-image-openvz-amd64
>     ....
>     (same error as below)
>
> Ola, can you please check?
>
> On 02/14/2014 11:43 AM, Stefan Antonelli wrote:
>
>> Hi,
>>
>> 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:
>>
>> --snip--
>>
>> root at debian:~# apt-get install linux-image-openvz-amd64
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> The following extra packages will be installed:
>>    linux-image-2.6.32-openvz-amd64
>> Suggested packages:
>>    fdutils linux-doc-2.6.32-openvz-amd64 linux-source-2.6.32-openvz-amd64
>> ksymoops linux-image-2.6.32-openvz-amd64-dbg
>> The following NEW packages will be installed:
>>    linux-image-2.6.32-openvz-amd64 linux-image-openvz-amd64
>> 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
>> Need to get 44.0 MB of archives.
>> After this operation, 132 MB of additional disk space will be used.
>> Do you want to continue [Y/n]?
>> Get:1 http://download.openvz.org/debian/ wheezy/main
>> linux-image-2.6.32-openvz-amd64 amd64 042stab084.25 [44.0 MB]
>> Get:2 http://download.openvz.org/debian/ wheezy/main
>> linux-image-openvz-amd64 amd64 042+1 [3,084 B]
>> Fetched 44.0 MB in 1min 33s (471 kB/s)
>> Failed to fetch http://download.openvz.org/debian/dists/wheezy/main/
>> binary-amd64/kernel/linux-image-openvz-amd64_042+1_amd64.deb  Size
>> mismatch
>> E: Unable to fetch some archives, maybe run apt-get update or try with
>> --fix-missing?
>>
>> --snap---
>>
>> Any ideas?
>>
>> -Stefan
>> _______________________________________________
>> Users mailing list
>> Users at openvz.org
>> https://lists.openvz.org/mailman/listinfo/users
>>
>
>


-- 
 --- Inguza Technology AB --- MSc in Information Technology ----
/  ola at inguza.com                    Annebergsslingan 37        \
|  opal at debian.org                   654 65 KARLSTAD            |
|  http://inguza.com/                Mobile: +46 (0)70-332 1551 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9  /
 ---------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20140215/f3240d59/attachment.html>


More information about the Users mailing list