Bug 3874 - vboxadditions fails to install (kernel-*-devel-latest packages not included with DVD)
Summary: vboxadditions fails to install (kernel-*-devel-latest packages not included w...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: Anne Nicolas
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-24 13:41 CET by AL13N
Modified: 2014-05-08 18:05 CEST (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description AL13N 2011-12-24 13:41:00 CET
when updating cauldron on a vbox setup, it fails, because of no kernel source installed... ? this is the output; see at the very end:

...
    http://10.238.9.1/mageia/distrib/cauldron/x86_64/media/core/release/kernel-desktop-3.1.6-2.mga2-1-1.mga2.x86_64.rpm
    http://10.238.9.1/mageia/distrib/cauldron/x86_64/media/core/release/kernel-desktop-latest-3.1.6-2.mga2.x86_64.rpm                                       
    http://10.238.9.1/mageia/distrib/cauldron/x86_64/media/core/release/lib64gmime2.6_0-2.6.3-1.mga2.x86_64.rpm                                             
installing kernel-desktop-3.1.6-2.mga2-1-1.mga2.x86_64.rpm lib64gmime2.6_0-2.6.3-1.mga2.x86_64.rpm kernel-desktop-latest-3.1.6-2.mga2.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     ##########################################################################################################################
  347/349: kernel-desktop-3.1.6-2.mga2
                                 ##########################################################################################################################
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
I: *** Including module: dash ***
I: *** Including module: i18n ***
I: *** Including module: rpmversion ***
I: *** Including module: plymouth ***
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
I: *** Including module: kernel-modules ***
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
E: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
I: *** Including module: resume ***
I: *** Including module: rootfs-block ***
I: *** Including module: terminfo ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 95-late.rules
I: *** Including module: usrmount ***
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: *** Including module: shutdown ***
I: Skipping program kexec as it cannot be found and is flagged to be optional
I: *** Including modules done ***
I: Wrote /boot/initrd-3.1.6-desktop-2.mga2.img:
I: -rw-r--r-- 1 root root 5759173 Dec 24 13:37 /boot/initrd-3.1.6-desktop-2.mga2.img
defaulting background resolution to 1024x768
  348/349: kernel-desktop-latest ##########################################################################################################################
  349/349: lib64gmime2.6_0       ##########################################################################################################################

vboxadditions (4.1.6-2.mga2): Installing module.
  Kernel source for 3.1.6-desktop-2.mga2 not installed.  Cannot install this module.
You should restart your computer for kernel-desktop-3.1.6-2.mga2
Comment 1 Sander Lepik 2011-12-24 13:54:41 CET
I'm not sure how to solve this problem.

dkms-vboxadditions requires dkms. dkms itself requires kernel-devel and *suggests* kernel-devel-latest.

What you are probably missing at the moment is kernel-devel-latest which should pull latest source for latest kernel.

How did you install your system? You should have kernel-devel-latest as well if you didn't uninstall it yourself (or didn't use urpmi --no-suggests).

CC: (none) => sander.lepik

Comment 2 AL13N 2011-12-24 14:05:10 CET
[root@localhost ~]# rpm -q -a | grep kernel
kernel-desktop-devel-3.1.4-2.mga2-1-1.mga2
kernel-desktop-3.1.6-2.mga2-1-1.mga2
kernel-desktop-3.1.4-2.mga2-1-1.mga2
kernel-desktop-3.1.6-0.rc1.1.mga2-1-1.mga2
kernel-firmware-20110703-2.mga2
kernel-desktop-latest-3.1.6-2.mga2


i just installed and updated, from mga2a2 to cauldron and further. i never used --no-suggests
Comment 3 AL13N 2011-12-24 14:07:48 CET
i installed the kernel-desktop-devel-latest and did the following:

[root@localhost ~]# urpmi vboxadditions --replacepkgs 
To satisfy dependencies, the following package is going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  dkms-vboxadditions             4.1.6        2.mga2        x86_64  
4.3MB of additional disk space will be used.
445KB of packages will be retrieved.
Proceed with the installation of one package? (Y/n) 


    http://10.238.9.1/mageia/distrib/cauldron/x86_64/media/core/release/dkms-vboxadditions-4.1.6-2.mga2.x86_64.rpm
installing dkms-vboxadditions-4.1.6-2.mga2.x86_64.rpm from /var/cache/urpmi/rpms                                                                            
Preparing...                     ##########################################################################################################################
      1/1: dkms-vboxadditions    ##########################################################################################################################
+ /usr/sbin/dkms --rpm_safe_upgrade add -m vboxadditions -v 4.1.6-2.mga2

Error! DKMS tree already contains: vboxadditions-4.1.6-2.mga2
You cannot add the same module/version combo more than once.
+ /usr/sbin/dkms --rpm_safe_upgrade build -m vboxadditions -v 4.1.6-2.mga2

Error! This module/version has already been built on: 3.1.4-desktop-2.mga2
Directory: /var/lib/dkms/vboxadditions/4.1.6-2.mga2/3.1.4-desktop-2.mga2/x86_64
already exists.  Use the dkms remove function before trying to build again.
+ :



what now?
Comment 4 Sander Lepik 2011-12-24 14:21:29 CET
I think reboot should fix your problem, on next reboot dkms should compile vboxadditions for your latest kernel.

But the problem seems to be quite simple. *-devel-latest packages are not included in DVD so this will break suggests and in later stage new devel is not installed and so it will break dkms packages.

On mga1 *-devel-latest packages are included. They should also be included in mga2.

I'm not sure if Thierry is the right person to fix this but if not he can reassign to more accurate person :)

Assignee: bugsquad => thierry.vignaud

Sander Lepik 2011-12-24 14:22:13 CET

Summary: vboxadditions fails to install => vboxadditions fails to install (kernel-*-devel-latest packages not included with DVD)

Manuel Hiebel 2011-12-25 13:16:06 CET

CC: (none) => ennael1, sysadmin-bugs
Component: RPM Packages => Release (media or process)
Source RPM: kernel => meta-task

Comment 5 Thomas Backlund 2011-12-25 14:02:25 CET
I've altered core kernel (beginning with 3.2-0.rc7.1.mga2) and all other kernels to not trigger dkms build on install if the mathing -devel rpm is not installed.
(of course the warning will still show up on boot, if no matching -devel rpm is installed)

But missing *-devel-latest on dvds is something for ennael (or any other dvd iso builder) to fix ...

CC: (none) => tmb
Assignee: thierry.vignaud => ennael1
Source RPM: meta-task => (none)

Comment 6 AL13N 2011-12-26 01:27:58 CET
no idea, but i installed using mga2a2, then upgraded to cauldron, then updated for these bunch of updates.

so, if mga2a2 didn't install -devel-latest, i donno, maybe it shouldn't even get installed on normal install.

perhaps i'm more asking if vboxadditions needs -devel-latest or it doesn't proceed... then perhaps it should require -devel-latest? so it would get installed if needed by it?
Comment 7 Sander Lepik 2011-12-26 09:48:22 CET
(In reply to comment #6)
> so, if mga2a2 didn't install -devel-latest, i donno, maybe it shouldn't even
> get installed on normal install.
> 
> perhaps i'm more asking if vboxadditions needs -devel-latest or it doesn't
> proceed... then perhaps it should require -devel-latest? so it would get
> installed if needed by it?

-deve-latest didn't get installed as it's not on DVD. urpmi installed dkms from DVD but as suggested -devel-latest was not there, urpmi didn't see a problem.

vboxadditions doesn't need to require it, not all people want it.

We just need *-devel-latest packages on DVD and the problem will be solved.
Comment 8 AL13N 2011-12-26 10:35:31 CET
i'm not sure you're right, here:

vboxadditions should require -devel-latest, because it doesn't work without it.

not all people need vboxadditions, true, but then the requirement to -devel-latest isn't problematic, is it?

if you can tell me a usage for vboxadditions without the need for -devel-latest, then i'll agree with you.
Comment 9 Sander Lepik 2011-12-26 10:47:28 CET
Well, vboxadditions doesn't need -devel-latest, it only needs -devel. Which is installed for first kernel. Actually vboxadditions requires dkms and doesn't need to know anything about -devel*.

vboxadditions works OK until you don't update your kernel. Now if -devel-latest package would be on DVD, dkms would suggest it and problem gets solved. Everyone will be happy like it was with mga1.
Comment 10 AL13N 2011-12-26 11:17:08 CET
ic

wouldn't it be better if vboxadditions can be rebuild for 2 kernels?

we could possibly have it detect your running kernel and try to suggest installing -devel for the current kernel? i mean, in urpmi-post, when rebuilding vboxadditions, to say, hmm, let's just invoke another urpmi command to install the new -devel one?

technically, it looks like valid requirements, but it isn't really.

so dkms-* depends on the kernel it want's it to be installed for

so, if we would have conditional suggests, we could have kernel-* suggest kernel-devel-* if dkms-* is installed...
Comment 11 Nicolas Vigier 2011-12-26 11:43:20 CET
You can't invoque urpmi recursively because of urpmi/rpm locks. And you don't know if people are installing using urpmi, rpm, rpmdrake, packagekit or something else, or if they used some options to enable only some repositories, so calling urpmi with default options is probably not a good idea.

What would be needed is rpm dependencies evaluated at runtime, but I don't think it's supported at the moment by either rpm, urpmi or genhdlists. Until then, what we have now is :
- people that want to use the latest kernel install suggested kernel-devel-latest package and everything should be working
- people that don't want the latest kernel, usually advanced users, don't install the suggested kernel-devel-latest package but install the kernel-devel package for the version of the kernel they want to use

CC: (none) => boklm

Comment 12 AL13N 2011-12-26 12:28:49 CET
ok, so if we want to fix this for the less advanced users, we need to have kernel-latest-devel (suggested by dkms) on the DVD, so that this problem doesn't happen?


btw: what if you have installed a kernel X, kernel-devel X, dkms and you have an updated dkms to be installed, when installing the updated dkms or-module, install the suggested kernel-latest-devel ? or, since it's an upgrade not install all the suggested extra packages, but only upgrade those installed?
Comment 13 Manuel Hiebel 2012-01-08 12:49:10 CET
kernel-(kernel/server/..)-devel-latest still missing in the pre alpha3

it was in the idx of mdv 2010.2 or mga 1

Priority: Normal => release_blocker

Comment 14 Anne Nicolas 2012-01-08 19:58:38 CET
Added in next set of isos
Comment 15 Anne Nicolas 2012-01-15 21:42:52 CET
ping ?
Comment 16 AL13N 2012-01-15 22:31:19 CET
hmm, i'll try and reproduce with alpha3 soon-ish
Comment 17 Manuel Hiebel 2012-01-16 16:19:54 CET
I guess we can close without a lot of (no ? :D) test
Comment 18 Anne Nicolas 2012-02-01 08:58:05 CET
ping ?
Comment 19 AL13N 2012-02-01 12:52:27 CET
ah shit, i forgot /o\, i'll try tonight
Comment 20 AL13N 2012-02-02 23:39:24 CET
in DVD installer alpha3 x86_64, not updated, there is no *-devel-latest:

[root@localhost ~]# urpmq --list-url
core media cdrom://x86_64/media/core
[root@localhost ~]# urpmq -Y kernel
kernel-desktop-3.2.0-1.mga2
kernel-desktop-devel-3.2.0-1.mga2
kernel-desktop-latest
kernel-doc
kernel-firmware
kernel-server-3.2.0-1.mga2
kernel-server-devel-3.2.0-1.mga2
kernel-server-latest
kernel-source-3.2.0-1.mga2
kernel-source-latest
kernel-userspace-headers
lib64kplatokernel9
virtualbox-kernel-desktop-3.2.0-1.mga2
virtualbox-kernel-desktop-latest
virtualbox-kernel-netbook-3.2.0-1.mga2
virtualbox-kernel-server-3.2.0-1.mga2
virtualbox-kernel-server-latest
virtualbox-kernel-xen-pvops-3.2.0-1.mga2
[root@localhost ~]# rpm -q -a | grep kernel
kernel-desktop-3.2.0-1.mga2-1-1.mga2
kernel-userspace-headers-3.2.0-2.mga2
kernel-firmware-20111229-1.mga2
kernel-desktop-devel-3.2.0-1.mga2-1-1.mga2
kernel-desktop-latest-3.2.0-1.mga2

so... no, i guess not fixed (at least not in x86_64), i mounted the image and doublechecked, it's not there...
Comment 21 Manuel Hiebel 2012-02-03 00:33:51 CET
indeed iirc it was the case in a pre alpha but for the release seems not 
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/iso/cauldron/Mageia-2-alpha3-x86_64/Mageia-2-alpha3-x86_64-DVD.idx :/
Comment 22 AL13N 2012-02-25 22:30:26 CET
kernel-desktop-devel-latest is installed now

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Nicolas Vigier 2014-05-08 18:05:50 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.