akmod Nvidia dependencies

Patrick O'Callaghan pocallaghan at gmail.com
Tue Jun 30 12:19:47 UTC 2015


On Tue, 2015-06-30 at 20:04 +0800, Ed Greshko wrote:
> On 06/30/15 19:47, Patrick O'Callaghan wrote:
> > On Tue, 2015-06-30 at 07:34 -0400, Tom Horsley wrote:
> > > If you don't give it time to recompile the driver
> > > after the yum update and before a reboot, things
> > > can be in a confusing state and it won't recompile
> > > after the boot. (At least that is what I have
> > > observed).
> > > 
> > > I always run "top" after a yum update and wait till
> > > all the compilation and rpm activity disappears before
> > > I type "reboot".
> > > 
> > > If you install akmod-nvidia again, it will probably
> > > update the driver at that time and you'll be back
> > > to normal.
> > I'm using dnf (forgot to mention this is F22) but presumably the 
> > same
> > applies. However I did let some time pass before rebooting, not 
> > because
> > I was waiting for a recompilation but it just happened that way. I 
> > also
> > tried removing and reinstalling akmod-nvidia and it made no 
> > difference.
> > 
> > In any case I would have expected the update not to complete until 
> > the
> > module had finished recompiling.
> 
> I have been seeing the same thing you're seeing.  I haven't tracked 
> down the cause as of yet.
>  
> However, after doing the dnf upgrade of the kernel check in 
> /var/cache/akmod and check the log.  You may see something like 
> this....
> 
> [root at meimei akmods]# tail akmods.log
> 2015/06/28 18:25:41 akmods: Building and installing nvidia-304xx-kmod
> 2015/06/28 18:25:41 akmods: Building RPM using the command 
> '/bin/akmodsbuild --target x86_64 --kernels 4.0.6-300.fc22.x86_64 
> /usr/src/akmods/nvidia-304xx-kmod.latest'
> 2015/06/28 18:26:00 akmods: Installing newly built rpms
> 2015/06/28 18:26:01 akmods: Could not install newly built RPMs. You 
> can find them and the logfile
> 2015/06/28 18:26:01 akmods: 304.125-3.10-for-4.0.6
> -300.fc22.x86_64.failed.log in /var/cache/akmods/nvidia-304xx/
> 2015/06/28 18:26:01 akmods: Hint: Some kmods were ignored or failed 
> to build or install.
> 2015/06/28 18:26:01 akmods: You can try to rebuild and install them 
> by by calling
> 2015/06/28 18:26:01 akmods: '/usr/sbin/akmods --force' as root.
> 
> At this point you have 2 choices.  Check the /var/cache/akmods/nvidia
> -"driver" directory to see if the rpm has actually been built or run 
> the command as a user as shown in the log.  In the case above it 
> would be
> 
> /bin/akmodsbuild --target x86_64 --kernels 4.0.6-300.fc22.x86_64 
> /usr/src/akmods/nvidia-304xx-kmod.latest
> 
> and install the resulting rpm.

This is what I find in the log:
Running transaction
RPMDB already locked by 22298
  The application with PID 22298 is: dnf
    Memory : 124 M RSS (686 MB VSZ)
    Started: Tue Jun 30 09:57:29 2015 - 03:30 ago
    State  : Sleeping
2015/06/30 10:00:59 akmods: Could not install newly built RPMs. You can find them and the logfile
2015/06/30 10:00:59 akmods: 346.72-2.1-for-4.0.6-300.fc22.x86_64.failed.log in /var/cache/akmods/nvidia/

So the problem is not with compilation, it's with dnf locking itself
out.

Running '/usr/sbin/akmods --force' solved it.

Not sure whether to report this against dnf or Nvidia.

poc





More information about the users mailing list