cannot install nvidia-390 driver, ubuntu 18.04
I accidentally uninstalled my active kernel as well as my graphics drivers using this command from a StackExchange suggestion:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d' | xargs sudo apt-get -y purge
After reinstalling the kernel, I am working on the graphics drivers.
ubuntu-drivers devices
returns:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C03sv0000196Esd0000119Fbc03sc00i00
vendor : NVIDIA Corporation
model : GP106 [GeForce GTX 1060 6GB]
manual_install: True
driver : nvidia-driver-390 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
sudo ubuntu-drivers autoinstall
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an
impossible situation or if you are using the unstable distribution that some
required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-390 : Depends: nvidia-dkms-390 (= 390.48-0ubuntu3)
Recommends: libnvidia-compute-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-decode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-encode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-ifr1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-fbc1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-gl-390:i386 (= 390.48-0ubuntu3)
E: Unable to correct problems, you have held broken packages.
sudo apt install nvidia-390
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nvidia-390 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is
only available from another source
However the following packages replace it:
libnvidia-gl-390 nvidia-kernel-source-390:i386 nvidia-headless-no-dkms-390:i386 libnvidia-gl-390:i386
nvidia-kernel-source-390 nvidia-headless-no-dkms-390
E: Package 'nvidia-390' has no installation candidate
sudo apt install -f
returns:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool libc-dev-bin thermald
Use 'sudo apt autoremove' to remove them.
sudo add-apt-repository ppa:graphics-drivers
returns the warning: This PPA is currently in testing, you should be experienced with packaging before you dive in here.
I am not experienced with packaging and do not want to mess something else up again, so I did not run it.
A side question: does anyone know how I can be certain that my kernel is running properly? I.e. that if I restart my computer it will boot?
uname -r
returns:
4.15.0-43-generic
So I believe it is functioning. Is there anything else it would be smart to check?
nvidia graphics
New contributor
add a comment |
I accidentally uninstalled my active kernel as well as my graphics drivers using this command from a StackExchange suggestion:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d' | xargs sudo apt-get -y purge
After reinstalling the kernel, I am working on the graphics drivers.
ubuntu-drivers devices
returns:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C03sv0000196Esd0000119Fbc03sc00i00
vendor : NVIDIA Corporation
model : GP106 [GeForce GTX 1060 6GB]
manual_install: True
driver : nvidia-driver-390 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
sudo ubuntu-drivers autoinstall
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an
impossible situation or if you are using the unstable distribution that some
required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-390 : Depends: nvidia-dkms-390 (= 390.48-0ubuntu3)
Recommends: libnvidia-compute-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-decode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-encode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-ifr1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-fbc1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-gl-390:i386 (= 390.48-0ubuntu3)
E: Unable to correct problems, you have held broken packages.
sudo apt install nvidia-390
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nvidia-390 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is
only available from another source
However the following packages replace it:
libnvidia-gl-390 nvidia-kernel-source-390:i386 nvidia-headless-no-dkms-390:i386 libnvidia-gl-390:i386
nvidia-kernel-source-390 nvidia-headless-no-dkms-390
E: Package 'nvidia-390' has no installation candidate
sudo apt install -f
returns:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool libc-dev-bin thermald
Use 'sudo apt autoremove' to remove them.
sudo add-apt-repository ppa:graphics-drivers
returns the warning: This PPA is currently in testing, you should be experienced with packaging before you dive in here.
I am not experienced with packaging and do not want to mess something else up again, so I did not run it.
A side question: does anyone know how I can be certain that my kernel is running properly? I.e. that if I restart my computer it will boot?
uname -r
returns:
4.15.0-43-generic
So I believe it is functioning. Is there anything else it would be smart to check?
nvidia graphics
New contributor
Runsudo apt install -f
– Pilot6
5 hours ago
I tried this and edited the post to include it
– natasha
5 hours ago
add a comment |
I accidentally uninstalled my active kernel as well as my graphics drivers using this command from a StackExchange suggestion:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d' | xargs sudo apt-get -y purge
After reinstalling the kernel, I am working on the graphics drivers.
ubuntu-drivers devices
returns:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C03sv0000196Esd0000119Fbc03sc00i00
vendor : NVIDIA Corporation
model : GP106 [GeForce GTX 1060 6GB]
manual_install: True
driver : nvidia-driver-390 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
sudo ubuntu-drivers autoinstall
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an
impossible situation or if you are using the unstable distribution that some
required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-390 : Depends: nvidia-dkms-390 (= 390.48-0ubuntu3)
Recommends: libnvidia-compute-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-decode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-encode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-ifr1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-fbc1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-gl-390:i386 (= 390.48-0ubuntu3)
E: Unable to correct problems, you have held broken packages.
sudo apt install nvidia-390
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nvidia-390 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is
only available from another source
However the following packages replace it:
libnvidia-gl-390 nvidia-kernel-source-390:i386 nvidia-headless-no-dkms-390:i386 libnvidia-gl-390:i386
nvidia-kernel-source-390 nvidia-headless-no-dkms-390
E: Package 'nvidia-390' has no installation candidate
sudo apt install -f
returns:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool libc-dev-bin thermald
Use 'sudo apt autoremove' to remove them.
sudo add-apt-repository ppa:graphics-drivers
returns the warning: This PPA is currently in testing, you should be experienced with packaging before you dive in here.
I am not experienced with packaging and do not want to mess something else up again, so I did not run it.
A side question: does anyone know how I can be certain that my kernel is running properly? I.e. that if I restart my computer it will boot?
uname -r
returns:
4.15.0-43-generic
So I believe it is functioning. Is there anything else it would be smart to check?
nvidia graphics
New contributor
I accidentally uninstalled my active kernel as well as my graphics drivers using this command from a StackExchange suggestion:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d' | xargs sudo apt-get -y purge
After reinstalling the kernel, I am working on the graphics drivers.
ubuntu-drivers devices
returns:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C03sv0000196Esd0000119Fbc03sc00i00
vendor : NVIDIA Corporation
model : GP106 [GeForce GTX 1060 6GB]
manual_install: True
driver : nvidia-driver-390 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
sudo ubuntu-drivers autoinstall
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an
impossible situation or if you are using the unstable distribution that some
required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nvidia-driver-390 : Depends: nvidia-dkms-390 (= 390.48-0ubuntu3)
Recommends: libnvidia-compute-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-decode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-encode-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-ifr1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-fbc1-390:i386 (= 390.48-0ubuntu3)
Recommends: libnvidia-gl-390:i386 (= 390.48-0ubuntu3)
E: Unable to correct problems, you have held broken packages.
sudo apt install nvidia-390
returns
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package nvidia-390 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is
only available from another source
However the following packages replace it:
libnvidia-gl-390 nvidia-kernel-source-390:i386 nvidia-headless-no-dkms-390:i386 libnvidia-gl-390:i386
nvidia-kernel-source-390 nvidia-headless-no-dkms-390
E: Package 'nvidia-390' has no installation candidate
sudo apt install -f
returns:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool libc-dev-bin thermald
Use 'sudo apt autoremove' to remove them.
sudo add-apt-repository ppa:graphics-drivers
returns the warning: This PPA is currently in testing, you should be experienced with packaging before you dive in here.
I am not experienced with packaging and do not want to mess something else up again, so I did not run it.
A side question: does anyone know how I can be certain that my kernel is running properly? I.e. that if I restart my computer it will boot?
uname -r
returns:
4.15.0-43-generic
So I believe it is functioning. Is there anything else it would be smart to check?
nvidia graphics
nvidia graphics
New contributor
New contributor
edited 4 hours ago
natasha
New contributor
asked 5 hours ago
natashanatasha
11
11
New contributor
New contributor
Runsudo apt install -f
– Pilot6
5 hours ago
I tried this and edited the post to include it
– natasha
5 hours ago
add a comment |
Runsudo apt install -f
– Pilot6
5 hours ago
I tried this and edited the post to include it
– natasha
5 hours ago
Run
sudo apt install -f
– Pilot6
5 hours ago
Run
sudo apt install -f
– Pilot6
5 hours ago
I tried this and edited the post to include it
– natasha
5 hours ago
I tried this and edited the post to include it
– natasha
5 hours ago
add a comment |
1 Answer
1
active
oldest
votes
nvidia-390 is part of the graphics-drivers PPA.
Run sudo /usr/bin/nvidia-uninstall
to uninstall a manually installed driver, if you still got one.
Remove everything of your old NVIDIA driver (simulate first):
sudo apt remove --purge -s nvidia-*
sudo apt remove --purge -s libnvidia-*
If only nvidia packages are there to be removed, remove really:
sudo apt remove --purge nvidia-*
sudo apt remove --purge libnvidia-*
Run sudo apt update
and ubuntu-drivers devices
again.
If nvidia-390 is still recommended, add your output of sudo ubuntu-drivers autoinstall
again.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
natasha is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118621%2fcannot-install-nvidia-390-driver-ubuntu-18-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
nvidia-390 is part of the graphics-drivers PPA.
Run sudo /usr/bin/nvidia-uninstall
to uninstall a manually installed driver, if you still got one.
Remove everything of your old NVIDIA driver (simulate first):
sudo apt remove --purge -s nvidia-*
sudo apt remove --purge -s libnvidia-*
If only nvidia packages are there to be removed, remove really:
sudo apt remove --purge nvidia-*
sudo apt remove --purge libnvidia-*
Run sudo apt update
and ubuntu-drivers devices
again.
If nvidia-390 is still recommended, add your output of sudo ubuntu-drivers autoinstall
again.
New contributor
add a comment |
nvidia-390 is part of the graphics-drivers PPA.
Run sudo /usr/bin/nvidia-uninstall
to uninstall a manually installed driver, if you still got one.
Remove everything of your old NVIDIA driver (simulate first):
sudo apt remove --purge -s nvidia-*
sudo apt remove --purge -s libnvidia-*
If only nvidia packages are there to be removed, remove really:
sudo apt remove --purge nvidia-*
sudo apt remove --purge libnvidia-*
Run sudo apt update
and ubuntu-drivers devices
again.
If nvidia-390 is still recommended, add your output of sudo ubuntu-drivers autoinstall
again.
New contributor
add a comment |
nvidia-390 is part of the graphics-drivers PPA.
Run sudo /usr/bin/nvidia-uninstall
to uninstall a manually installed driver, if you still got one.
Remove everything of your old NVIDIA driver (simulate first):
sudo apt remove --purge -s nvidia-*
sudo apt remove --purge -s libnvidia-*
If only nvidia packages are there to be removed, remove really:
sudo apt remove --purge nvidia-*
sudo apt remove --purge libnvidia-*
Run sudo apt update
and ubuntu-drivers devices
again.
If nvidia-390 is still recommended, add your output of sudo ubuntu-drivers autoinstall
again.
New contributor
nvidia-390 is part of the graphics-drivers PPA.
Run sudo /usr/bin/nvidia-uninstall
to uninstall a manually installed driver, if you still got one.
Remove everything of your old NVIDIA driver (simulate first):
sudo apt remove --purge -s nvidia-*
sudo apt remove --purge -s libnvidia-*
If only nvidia packages are there to be removed, remove really:
sudo apt remove --purge nvidia-*
sudo apt remove --purge libnvidia-*
Run sudo apt update
and ubuntu-drivers devices
again.
If nvidia-390 is still recommended, add your output of sudo ubuntu-drivers autoinstall
again.
New contributor
New contributor
answered 2 hours ago
JesseJesse
212
212
New contributor
New contributor
add a comment |
add a comment |
natasha is a new contributor. Be nice, and check out our Code of Conduct.
natasha is a new contributor. Be nice, and check out our Code of Conduct.
natasha is a new contributor. Be nice, and check out our Code of Conduct.
natasha is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1118621%2fcannot-install-nvidia-390-driver-ubuntu-18-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Run
sudo apt install -f
– Pilot6
5 hours ago
I tried this and edited the post to include it
– natasha
5 hours ago