Installing the nvidia-common, I got the following error messages.
u@u-Alienware-X51-R2:~$ sudo apt-get install nvidia-prime
[sudo] password for u:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nvidia-prime
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,538 B of archives.
After this operation, 51.2 kB of additional disk space will be used.
Selecting previously unselected package nvidia-prime.
(Reading database ... 159219 files and directories currently installed.)
Unpacking nvidia-prime (from .../nvidia-prime_0.2_all.deb) ...
cat: /etc/lightdm/lightdm.conf: No such file or directory
Setting up nvidia-prime (0.2) ...
cp: cannot stat ‘/usr/share/nvidia-prime/lightdm.conf’: No such file or directory
dpkg: error processing nvidia-prime (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nvidia-prime
E: Sub-process /usr/bin/dpkg returned an error code (1)
Installing the nvidia-common, I got the following error messages.
u@u-Alienware- X51-R2: ~$ sudo apt-get install nvidia-prime prime_0. 2_all.deb) ... lightdm. conf: No such file or directory nvidia- prime/lightdm. conf’: No such file or directory
[sudo] password for u:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nvidia-prime
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,538 B of archives.
After this operation, 51.2 kB of additional disk space will be used.
Selecting previously unselected package nvidia-prime.
(Reading database ... 159219 files and directories currently installed.)
Unpacking nvidia-prime (from .../nvidia-
cat: /etc/lightdm/
Setting up nvidia-prime (0.2) ...
cp: cannot stat ‘/usr/share/
dpkg: error processing nvidia-prime (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nvidia-prime
E: Sub-process /usr/bin/dpkg returned an error code (1)