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.
apt package-management 18.04
add a comment |
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.
apt package-management 18.04
add a comment |
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.
apt package-management 18.04
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
apt package-management 18.04
asked Nov 17 at 11:29
croraf
123114
123114
add a comment |
add a comment |
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?)
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
Nov 17 at 11:58
1
The way it works is,aptmatches across the full package name - so if you wanted to remove all packages that hadnvidiaanywhere 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
Nov 17 at 12:04
add a comment |
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?)
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
Nov 17 at 11:58
1
The way it works is,aptmatches across the full package name - so if you wanted to remove all packages that hadnvidiaanywhere 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
Nov 17 at 12:04
add a comment |
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?)
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
Nov 17 at 11:58
1
The way it works is,aptmatches across the full package name - so if you wanted to remove all packages that hadnvidiaanywhere 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
Nov 17 at 12:04
add a comment |
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?)
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?)
answered Nov 17 at 11:43
Elayne
254
254
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
Nov 17 at 11:58
1
The way it works is,aptmatches across the full package name - so if you wanted to remove all packages that hadnvidiaanywhere 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
Nov 17 at 12:04
add a comment |
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
Nov 17 at 11:58
1
The way it works is,aptmatches across the full package name - so if you wanted to remove all packages that hadnvidiaanywhere 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
Nov 17 at 12:04
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
Nov 17 at 11:58
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
Nov 17 at 11:58
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
Nov 17 at 12:04
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
Nov 17 at 12:04
add a comment |
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%2f1093699%2fwhy-is-this-package-not-removed-with-apt-get-remove%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