Unmet dependencies. Try 'apt-get -f install'





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







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.










share|improve this question































    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.










    share|improve this question



























      0












      0








      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 7 at 6:59







      Nouman Tajik

















      asked Feb 7 at 6:53









      Nouman TajikNouman Tajik

      165




      165






















          1 Answer
          1






          active

          oldest

          votes


















          1














          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.






          share|improve this answer
























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            1














            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.






            share|improve this answer




























              1














              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.






              share|improve this answer


























                1












                1








                1







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 8 at 9:38









                Nouman TajikNouman Tajik

                165




                165






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?