Why is this package not removed with apt-get remove?











up vote
0
down vote

favorite












I have:



~$ dpkg -l | grep -i nvidia
rc libnvidia-compute-396:i386 396.54-0ubuntu0~gpu18.04.1 i386 NVIDIA libcompute package


When I do:



~$ sudo apt-get remove --purge libnvidia-*


this package is not removed?



Other "libnvidia" package is removed with this command, this one for example:



rc  libnvidia-compute-390:amd64   390.48-0ubuntu3      amd64  NVIDIA libcompute package


In the remove log it says:



Package 'libnvidia-compute-396' is not installed, so not removed. Did you mean 'libnvidia-compute-396:i386'?


And when I remove it with full name it gets removed.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have:



    ~$ dpkg -l | grep -i nvidia
    rc libnvidia-compute-396:i386 396.54-0ubuntu0~gpu18.04.1 i386 NVIDIA libcompute package


    When I do:



    ~$ sudo apt-get remove --purge libnvidia-*


    this package is not removed?



    Other "libnvidia" package is removed with this command, this one for example:



    rc  libnvidia-compute-390:amd64   390.48-0ubuntu3      amd64  NVIDIA libcompute package


    In the remove log it says:



    Package 'libnvidia-compute-396' is not installed, so not removed. Did you mean 'libnvidia-compute-396:i386'?


    And when I remove it with full name it gets removed.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have:



      ~$ dpkg -l | grep -i nvidia
      rc libnvidia-compute-396:i386 396.54-0ubuntu0~gpu18.04.1 i386 NVIDIA libcompute package


      When I do:



      ~$ sudo apt-get remove --purge libnvidia-*


      this package is not removed?



      Other "libnvidia" package is removed with this command, this one for example:



      rc  libnvidia-compute-390:amd64   390.48-0ubuntu3      amd64  NVIDIA libcompute package


      In the remove log it says:



      Package 'libnvidia-compute-396' is not installed, so not removed. Did you mean 'libnvidia-compute-396:i386'?


      And when I remove it with full name it gets removed.










      share|improve this question













      I have:



      ~$ dpkg -l | grep -i nvidia
      rc libnvidia-compute-396:i386 396.54-0ubuntu0~gpu18.04.1 i386 NVIDIA libcompute package


      When I do:



      ~$ sudo apt-get remove --purge libnvidia-*


      this package is not removed?



      Other "libnvidia" package is removed with this command, this one for example:



      rc  libnvidia-compute-390:amd64   390.48-0ubuntu3      amd64  NVIDIA libcompute package


      In the remove log it says:



      Package 'libnvidia-compute-396' is not installed, so not removed. Did you mean 'libnvidia-compute-396:i386'?


      And when I remove it with full name it gets removed.







      apt package-management 18.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      croraf

      123114




      123114






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Apt (or, rather dpkg) operates on the default architecture by, well, default. From the output it looks like i386 is not your default architecture, so you have to specify it. For example, see the Debian Multiarch HOWTO, which shows you have to specify the foreign architecture for both installing and removing such packages.



          You could do:



          sudo apt-get remove --purge 'libnvidia-.*:i386'


          (Note that apt doesn't use wildcards, but regex. See apt-get remove with wildcard removed way more than expected. why?)






          share|improve this answer








          New contributor




          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I was following this answer: askubuntu.com/a/206289/754424. It looks like the answer should really state "sudo apt-get remove --purge nvidia-.*" instead of "sudo apt-get remove --purge nvidia-*"? Note the dot before *.
            – croraf
            2 days ago








          • 1




            The way it works is, apt matches across the full package name - so if you wanted to remove all packages that had nvidia anywhere in the package name, that still works (because the regex -* matches the empty string as well). So that particular mistake might be harmless, but still worth fixing.
            – Elayne
            2 days ago











          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',
          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%2f1093699%2fwhy-is-this-package-not-removed-with-apt-get-remove%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








          up vote
          2
          down vote













          Apt (or, rather dpkg) operates on the default architecture by, well, default. From the output it looks like i386 is not your default architecture, so you have to specify it. For example, see the Debian Multiarch HOWTO, which shows you have to specify the foreign architecture for both installing and removing such packages.



          You could do:



          sudo apt-get remove --purge 'libnvidia-.*:i386'


          (Note that apt doesn't use wildcards, but regex. See apt-get remove with wildcard removed way more than expected. why?)






          share|improve this answer








          New contributor




          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I was following this answer: askubuntu.com/a/206289/754424. It looks like the answer should really state "sudo apt-get remove --purge nvidia-.*" instead of "sudo apt-get remove --purge nvidia-*"? Note the dot before *.
            – croraf
            2 days ago








          • 1




            The way it works is, apt matches across the full package name - so if you wanted to remove all packages that had nvidia anywhere in the package name, that still works (because the regex -* matches the empty string as well). So that particular mistake might be harmless, but still worth fixing.
            – Elayne
            2 days ago















          up vote
          2
          down vote













          Apt (or, rather dpkg) operates on the default architecture by, well, default. From the output it looks like i386 is not your default architecture, so you have to specify it. For example, see the Debian Multiarch HOWTO, which shows you have to specify the foreign architecture for both installing and removing such packages.



          You could do:



          sudo apt-get remove --purge 'libnvidia-.*:i386'


          (Note that apt doesn't use wildcards, but regex. See apt-get remove with wildcard removed way more than expected. why?)






          share|improve this answer








          New contributor




          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I was following this answer: askubuntu.com/a/206289/754424. It looks like the answer should really state "sudo apt-get remove --purge nvidia-.*" instead of "sudo apt-get remove --purge nvidia-*"? Note the dot before *.
            – croraf
            2 days ago








          • 1




            The way it works is, apt matches across the full package name - so if you wanted to remove all packages that had nvidia anywhere in the package name, that still works (because the regex -* matches the empty string as well). So that particular mistake might be harmless, but still worth fixing.
            – Elayne
            2 days ago













          up vote
          2
          down vote










          up vote
          2
          down vote









          Apt (or, rather dpkg) operates on the default architecture by, well, default. From the output it looks like i386 is not your default architecture, so you have to specify it. For example, see the Debian Multiarch HOWTO, which shows you have to specify the foreign architecture for both installing and removing such packages.



          You could do:



          sudo apt-get remove --purge 'libnvidia-.*:i386'


          (Note that apt doesn't use wildcards, but regex. See apt-get remove with wildcard removed way more than expected. why?)






          share|improve this answer








          New contributor




          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          Apt (or, rather dpkg) operates on the default architecture by, well, default. From the output it looks like i386 is not your default architecture, so you have to specify it. For example, see the Debian Multiarch HOWTO, which shows you have to specify the foreign architecture for both installing and removing such packages.



          You could do:



          sudo apt-get remove --purge 'libnvidia-.*:i386'


          (Note that apt doesn't use wildcards, but regex. See apt-get remove with wildcard removed way more than expected. why?)







          share|improve this answer








          New contributor




          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 2 days ago









          Elayne

          253




          253




          New contributor




          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Elayne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • I was following this answer: askubuntu.com/a/206289/754424. It looks like the answer should really state "sudo apt-get remove --purge nvidia-.*" instead of "sudo apt-get remove --purge nvidia-*"? Note the dot before *.
            – croraf
            2 days ago








          • 1




            The way it works is, apt matches across the full package name - so if you wanted to remove all packages that had nvidia anywhere in the package name, that still works (because the regex -* matches the empty string as well). So that particular mistake might be harmless, but still worth fixing.
            – Elayne
            2 days ago


















          • I was following this answer: askubuntu.com/a/206289/754424. It looks like the answer should really state "sudo apt-get remove --purge nvidia-.*" instead of "sudo apt-get remove --purge nvidia-*"? Note the dot before *.
            – croraf
            2 days ago








          • 1




            The way it works is, apt matches across the full package name - so if you wanted to remove all packages that had nvidia anywhere in the package name, that still works (because the regex -* matches the empty string as well). So that particular mistake might be harmless, but still worth fixing.
            – Elayne
            2 days ago
















          I was following this answer: askubuntu.com/a/206289/754424. It looks like the answer should really state "sudo apt-get remove --purge nvidia-.*" instead of "sudo apt-get remove --purge nvidia-*"? Note the dot before *.
          – croraf
          2 days ago






          I was following this answer: askubuntu.com/a/206289/754424. It looks like the answer should really state "sudo apt-get remove --purge nvidia-.*" instead of "sudo apt-get remove --purge nvidia-*"? Note the dot before *.
          – croraf
          2 days ago






          1




          1




          The way it works is, apt matches across the full package name - so if you wanted to remove all packages that had nvidia anywhere in the package name, that still works (because the regex -* matches the empty string as well). So that particular mistake might be harmless, but still worth fixing.
          – Elayne
          2 days ago




          The way it works is, apt matches across the full package name - so if you wanted to remove all packages that had nvidia anywhere in the package name, that still works (because the regex -* matches the empty string as well). So that particular mistake might be harmless, but still worth fixing.
          – Elayne
          2 days ago


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093699%2fwhy-is-this-package-not-removed-with-apt-get-remove%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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

           ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕