Question Problems with sudo apt-get install

voxilicious

Reputable
Apr 24, 2019
8
0
4,510
As it says in the title I have trouble when I try to run an update with "sudo apt-get update", I want to update my Nvidia drivers to 418.
So when I type this in:

sudo apt install nvidia-driver-418
I get this:
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-418 : Depends: libnvidia-gl-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: nvidia-dkms-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: nvidia-kernel-source-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: libnvidia-decode-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: libnvidia-encode-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: nvidia-utils-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: xserver-xorg-video-nvidia-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: libnvidia-cfg1-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Depends: libnvidia-ifr1-418 (= 418.56-0ubuntu0~gpu18.04.1) but it is not going to be installed Recommends: libnvidia-decode-418:i386 (= 418.56-0ubuntu0~gpu18.04.1) Recommends: libnvidia-encode-418:i386 (= 418.56-0ubuntu0~gpu18.04.1) Recommends: libnvidia-ifr1-418:i386 (= 418.56-0ubuntu0~gpu18.04.1) Recommends: libnvidia-fbc1-418:i386 (= 418.56-0ubuntu0~gpu18.04.1) Recommends: libnvidia-gl-418:i386 (= 418.56-0ubuntu0~gpu18.04.1) E: Unable to correct problems, you have held broken packages.

So I tried the "sudo apt-get install" and then I get this:

Hit:1 [url=http://hr.archive.ubuntu.com/ubuntu]http://hr.archive.ubuntu.com/ubuntu[/url] bionic InRelease Hit:2 [url=http://hr.archive.ubuntu.com/ubuntu]http://hr.archive.ubuntu.com/ubuntu[/url] bionic-updates InRelease Hit:3 [url=http://hr.archive.ubuntu.com/ubuntu]http://hr.archive.ubuntu.com/ubuntu[/url] bionic-backports InRelease Hit:4 [url=http://security.ubuntu.com/ubuntu]http://security.ubuntu.com/ubuntu[/url] bionic-security InRelease Hit:5 [url=http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu]http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu[/url] bionic InRelease Hit:6 [url=http://packages.microsoft.com/repos/vscode]http://packages.microsoft.com/repos/vscode[/url] stable InRelease Hit:7 [url=http://ppa.launchpad.net/kritalime/ppa/ubuntu]http://ppa.launchpad.net/kritalime/ppa/ubuntu[/url] bionic InRelease Hit:8 [url=https://deb.opera.com/opera-stable]https://deb.opera.com/opera-stable[/url] stable InRelease Hit:9 [url=https://dl.winehq.org/wine-builds/ubuntu]https://dl.winehq.org/wine-builds/ubuntu[/url] bionic InRelease Hit:10 [url=http://ppa.launchpad.net/lutris-team/lutris/ubuntu]http://ppa.launchpad.net/lutris-team/lutris/ubuntu[/url] bionic InRelease Ign:11 [url=http://ppa.launchpad.net/webupd8team/unstable/ubuntu]http://ppa.launchpad.net/webupd8team/unstable/ubuntu[/url] bionic InRelease Err:12 [url=http://ppa.launchpad.net/webupd8team/unstable/ubuntu]http://ppa.launchpad.net/webupd8team/unstable/ubuntu[/url] bionic Release 404 Not Found [IP: 91.189.95.83 80] Hit:13 [url=http://repo.steampowered.com/steam]http://repo.steampowered.com/steam[/url] precise InRelease Reading package lists... Done E: The repository 'http://ppa.launchpad.net/webupd8team/unstable/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

So now I can't install the drivers, and I see where the problem is, but I have no idea what to do.
 

Satan-IR

Splendid
Ambassador
What model is your graphic card?

From personal experience with Ubuntu, it's better to uninstall existing drivers or 'purge' them and then install new nvidia and after that stop Ubuntu from auto-updating the driver as it might remove/add dependencies and ruin a working driver.