nvidia-current doesn't check if /usr/share/applications exists

Bug #886560 reported by Gijs Molenaar
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

nvidia-current doesn't check if /usr/share/applications exists. It runs update-alternatives to set ubuntu-nvidia-settings.desktop, but this assumes /usr/share/applications already exists. This happens when to packages that use this path are installed. This happens when you have empty Ubntu server system or a empty debootstrap chroot.

Error:

Setting up nvidia-current (280.13-0ubuntu6) ...
update-alternatives: using /usr/lib/nvidia-current/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-alternatives: error: unable to make /usr/share/applications/ubuntu-nvidia-settings.desktop.dpkg-tmp a symlink to /etc/alternatives/x86_64-linux-gnu_nvidia_desktop: No such file or directory
dpkg: error processing nvidia-current (--configure):
 subprocess installed post-installation script returned error exit status 2

How to reproduce: run apt-get install nvidia-graphics-drivers in an empty debootstrap chroot.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.