Unmet dependencies. Try 'apt-get -f install'
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
The problem arised when i tried to uninstall the cuda-10.0
toolkit from my system using the following method mentioned in this thread by user271219.
1) My Nvidia driver
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 387.26 Thu Nov 2 21:20:16 PDT 2017
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)
2) Trying to remove cuda-10-0
$ sudo apt-get purge cuda-10-0
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-cudart-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-libraries-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-samples-10-0 : Depends: cuda-driver-dev-10-0 but it is not going to be installed
cuda-toolkit-10-0 : Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-visual-tools-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
3) Forcing the apt-get
$ sudo apt-get install -f
The following additional packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
The following NEW packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
0 upgraded, 2 newly installed, 0 to remove and 189 not upgraded.
10 not fully installed or removed.
Need to get 0 B/63.5 kB of archives.
After this operation, 556 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-driver-dev-10-0 10.0.130-1 [12.0 kB]
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-nvml-dev-10-0 10.0.130-1 [51.6 kB]
(Reading database ... 123484 files and directories currently installed.)
Preparing to unpack .../cuda-driver-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-driver-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Preparing to unpack .../cuda-nvml-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvml-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Errors were encountered while processing:
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I want to get my system clean from the current cuda
files and reinstall it.
drivers nvidia dependencies cuda
add a comment |
The problem arised when i tried to uninstall the cuda-10.0
toolkit from my system using the following method mentioned in this thread by user271219.
1) My Nvidia driver
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 387.26 Thu Nov 2 21:20:16 PDT 2017
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)
2) Trying to remove cuda-10-0
$ sudo apt-get purge cuda-10-0
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-cudart-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-libraries-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-samples-10-0 : Depends: cuda-driver-dev-10-0 but it is not going to be installed
cuda-toolkit-10-0 : Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-visual-tools-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
3) Forcing the apt-get
$ sudo apt-get install -f
The following additional packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
The following NEW packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
0 upgraded, 2 newly installed, 0 to remove and 189 not upgraded.
10 not fully installed or removed.
Need to get 0 B/63.5 kB of archives.
After this operation, 556 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-driver-dev-10-0 10.0.130-1 [12.0 kB]
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-nvml-dev-10-0 10.0.130-1 [51.6 kB]
(Reading database ... 123484 files and directories currently installed.)
Preparing to unpack .../cuda-driver-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-driver-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Preparing to unpack .../cuda-nvml-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvml-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Errors were encountered while processing:
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I want to get my system clean from the current cuda
files and reinstall it.
drivers nvidia dependencies cuda
add a comment |
The problem arised when i tried to uninstall the cuda-10.0
toolkit from my system using the following method mentioned in this thread by user271219.
1) My Nvidia driver
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 387.26 Thu Nov 2 21:20:16 PDT 2017
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)
2) Trying to remove cuda-10-0
$ sudo apt-get purge cuda-10-0
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-cudart-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-libraries-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-samples-10-0 : Depends: cuda-driver-dev-10-0 but it is not going to be installed
cuda-toolkit-10-0 : Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-visual-tools-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
3) Forcing the apt-get
$ sudo apt-get install -f
The following additional packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
The following NEW packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
0 upgraded, 2 newly installed, 0 to remove and 189 not upgraded.
10 not fully installed or removed.
Need to get 0 B/63.5 kB of archives.
After this operation, 556 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-driver-dev-10-0 10.0.130-1 [12.0 kB]
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-nvml-dev-10-0 10.0.130-1 [51.6 kB]
(Reading database ... 123484 files and directories currently installed.)
Preparing to unpack .../cuda-driver-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-driver-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Preparing to unpack .../cuda-nvml-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvml-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Errors were encountered while processing:
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I want to get my system clean from the current cuda
files and reinstall it.
drivers nvidia dependencies cuda
The problem arised when i tried to uninstall the cuda-10.0
toolkit from my system using the following method mentioned in this thread by user271219.
1) My Nvidia driver
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 387.26 Thu Nov 2 21:20:16 PDT 2017
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)
2) Trying to remove cuda-10-0
$ sudo apt-get purge cuda-10-0
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-cudart-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-libraries-dev-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-samples-10-0 : Depends: cuda-driver-dev-10-0 but it is not going to be installed
cuda-toolkit-10-0 : Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
cuda-visual-tools-10-0 : Depends: cuda-driver-dev-10-0 (>= 10.0.130) but it is not going to be installed
Depends: cuda-nvml-dev-10-0 (>= 10.0.130) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
3) Forcing the apt-get
$ sudo apt-get install -f
The following additional packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
The following NEW packages will be installed:
cuda-driver-dev-10-0 cuda-nvml-dev-10-0
0 upgraded, 2 newly installed, 0 to remove and 189 not upgraded.
10 not fully installed or removed.
Need to get 0 B/63.5 kB of archives.
After this operation, 556 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-driver-dev-10-0 10.0.130-1 [12.0 kB]
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48 cuda-nvml-dev-10-0 10.0.130-1 [51.6 kB]
(Reading database ... 123484 files and directories currently installed.)
Preparing to unpack .../cuda-driver-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-driver-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Preparing to unpack .../cuda-nvml-dev-10-0_10.0.130-1_amd64.deb ...
Unpacking cuda-nvml-dev-10-0 (10.0.130-1) ...
dpkg: error processing archive /var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb (--unpack):
trying to overwrite '/usr/local/cuda-10.0/lib64', which is also in package cuda-npp-10-0 10.0.130-1
Errors were encountered while processing:
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-driver-dev-10-0_10.0.130-1_amd64.deb
/var/cuda-repo-10-0-local-10.0.130-410.48/./cuda-nvml-dev-10-0_10.0.130-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I want to get my system clean from the current cuda
files and reinstall it.
drivers nvidia dependencies cuda
drivers nvidia dependencies cuda
edited Feb 7 at 6:59
Nouman Tajik
asked Feb 7 at 6:53
Nouman TajikNouman Tajik
165
165
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I deleted the repositories related to cuda
$ rm /etc/apt/sources.list.d/cuda*
updated the repositories using apt-get update
Purged all the files related to cuda
$ sudo apt-get --purge remove cuda*
$ sudo apt-get autoremove
Problem solved.
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
});
}
});
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%2f1116319%2funmet-dependencies-try-apt-get-f-install%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
I deleted the repositories related to cuda
$ rm /etc/apt/sources.list.d/cuda*
updated the repositories using apt-get update
Purged all the files related to cuda
$ sudo apt-get --purge remove cuda*
$ sudo apt-get autoremove
Problem solved.
add a comment |
I deleted the repositories related to cuda
$ rm /etc/apt/sources.list.d/cuda*
updated the repositories using apt-get update
Purged all the files related to cuda
$ sudo apt-get --purge remove cuda*
$ sudo apt-get autoremove
Problem solved.
add a comment |
I deleted the repositories related to cuda
$ rm /etc/apt/sources.list.d/cuda*
updated the repositories using apt-get update
Purged all the files related to cuda
$ sudo apt-get --purge remove cuda*
$ sudo apt-get autoremove
Problem solved.
I deleted the repositories related to cuda
$ rm /etc/apt/sources.list.d/cuda*
updated the repositories using apt-get update
Purged all the files related to cuda
$ sudo apt-get --purge remove cuda*
$ sudo apt-get autoremove
Problem solved.
answered Feb 8 at 9:38
Nouman TajikNouman Tajik
165
165
add a comment |
add a comment |
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%2f1116319%2funmet-dependencies-try-apt-get-f-install%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