Can 'sudo apt-get remove [write]' destroy my Ubuntu?apt-get remove with wildcard removed way more than expected. why?apt-get fail with “Unpacking replacement diff”Recovering an Ubuntu installation - Ubuntu eats itself after 'sudo apt-get install -f'How to modify program search path?Upgrading VIM 7.3 to latest release via apt-getBash script to log all recent apt-get installs and locationsDifference between 'sudo apt-get' and 'sudo -E apt-get'apt-get install stackI keep getting dependency and “lsb not configured” errors when I try to install any software with apt-get installHow to find out how a program was removed?Why does apt-get autoremove uninstall less packages than aptitude remove does?
Bayes Correlated Equilibrium: obedience
Is every story set in the future "science fiction"?
What do "KAL." and "A.S." stand for in this inscription?
Company threw a surprise party for the CEO, 3 weeks later management says we have to pay for it, do I have to?
Is ‘despite that’ right?
How to compare d20+x with advantage to d20+y without advantage (x < y)
When do you stop "pushing" a book?
Are there variations of the regular runtimes of the Big-O-Notation?
My perfect evil overlord plan... or is it?
Which other programming languages apart from Python and predecessor are out there using indentation to define code blocks?
Is this state of Earth possible, after humans left for a million years?
Why did Captain America age?
Why do Thanos' punches not kill Captain America or at least cause vital wounds?
Different problems with tabularx
How to get the IP of a user who executed a command?
What's the difference between const array and static const array in C/C++
spatiotemporal regression
What can cause an unfrozen indoor copper drain pipe to crack?
Passport stamps art, can it be done?
Can 'sudo apt-get remove [write]' destroy my Ubuntu?
Why was the ancient one so hesitant to teach Dr Strange the art of sorcery
Exception propagation
Any suggestions on how to make this table prettier and suggestions on whether it's better to make it fit in 1 or 2 columns
Examples where existence is harder than evaluation
Can 'sudo apt-get remove [write]' destroy my Ubuntu?
apt-get remove with wildcard removed way more than expected. why?apt-get fail with “Unpacking replacement diff”Recovering an Ubuntu installation - Ubuntu eats itself after 'sudo apt-get install -f'How to modify program search path?Upgrading VIM 7.3 to latest release via apt-getBash script to log all recent apt-get installs and locationsDifference between 'sudo apt-get' and 'sudo -E apt-get'apt-get install stackI keep getting dependency and “lsb not configured” errors when I try to install any software with apt-get installHow to find out how a program was removed?Why does apt-get autoremove uninstall less packages than aptitude remove does?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am pretty new in this ubuntu domain so please be gentle :o)
I wanted to remove my 'write' app, so I found this on a site:
To remove a package type:
sudo apt-get remove [package_name]
So I typed:
sudo apt-get remove [write]
And afterwards I agreed on the prompt: 'yes, do what I say!' or something like that. And voila! My Ubuntu was deleting!
Can anybody tell me why?
command-line apt bash sudo
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I am pretty new in this ubuntu domain so please be gentle :o)
I wanted to remove my 'write' app, so I found this on a site:
To remove a package type:
sudo apt-get remove [package_name]
So I typed:
sudo apt-get remove [write]
And afterwards I agreed on the prompt: 'yes, do what I say!' or something like that. And voila! My Ubuntu was deleting!
Can anybody tell me why?
command-line apt bash sudo
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
7
You literally entered... [write], including the brackets? Then I'm afraid you indeed removed plenty of packages.
– PerlDuck
3 hours ago
Yes including the brackets :o|
– Jesper Joachim Sørensen
3 hours ago
5
A teachable moment about reading the complete output. Many of us have done something similar...once.
– user535733
1 hour ago
$20 says you'll only make that mistake once, :p
– Gerowen
1 hour ago
add a comment |
I am pretty new in this ubuntu domain so please be gentle :o)
I wanted to remove my 'write' app, so I found this on a site:
To remove a package type:
sudo apt-get remove [package_name]
So I typed:
sudo apt-get remove [write]
And afterwards I agreed on the prompt: 'yes, do what I say!' or something like that. And voila! My Ubuntu was deleting!
Can anybody tell me why?
command-line apt bash sudo
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am pretty new in this ubuntu domain so please be gentle :o)
I wanted to remove my 'write' app, so I found this on a site:
To remove a package type:
sudo apt-get remove [package_name]
So I typed:
sudo apt-get remove [write]
And afterwards I agreed on the prompt: 'yes, do what I say!' or something like that. And voila! My Ubuntu was deleting!
Can anybody tell me why?
command-line apt bash sudo
command-line apt bash sudo
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 1 hour ago
dessert
26.2k676110
26.2k676110
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 4 hours ago
Jesper Joachim SørensenJesper Joachim Sørensen
983
983
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jesper Joachim Sørensen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
7
You literally entered... [write], including the brackets? Then I'm afraid you indeed removed plenty of packages.
– PerlDuck
3 hours ago
Yes including the brackets :o|
– Jesper Joachim Sørensen
3 hours ago
5
A teachable moment about reading the complete output. Many of us have done something similar...once.
– user535733
1 hour ago
$20 says you'll only make that mistake once, :p
– Gerowen
1 hour ago
add a comment |
7
You literally entered... [write], including the brackets? Then I'm afraid you indeed removed plenty of packages.
– PerlDuck
3 hours ago
Yes including the brackets :o|
– Jesper Joachim Sørensen
3 hours ago
5
A teachable moment about reading the complete output. Many of us have done something similar...once.
– user535733
1 hour ago
$20 says you'll only make that mistake once, :p
– Gerowen
1 hour ago
7
7
You literally entered
... [write], including the brackets? Then I'm afraid you indeed removed plenty of packages.– PerlDuck
3 hours ago
You literally entered
... [write], including the brackets? Then I'm afraid you indeed removed plenty of packages.– PerlDuck
3 hours ago
Yes including the brackets :o|
– Jesper Joachim Sørensen
3 hours ago
Yes including the brackets :o|
– Jesper Joachim Sørensen
3 hours ago
5
5
A teachable moment about reading the complete output. Many of us have done something similar...once.
– user535733
1 hour ago
A teachable moment about reading the complete output. Many of us have done something similar...once.
– user535733
1 hour ago
$20 says you'll only make that mistake once, :p
– Gerowen
1 hour ago
$20 says you'll only make that mistake once, :p
– Gerowen
1 hour ago
add a comment |
1 Answer
1
active
oldest
votes
The correct command to remove a package named write is:
sudo apt-get remove write
[write] is a character set matching the characters “w”, “r”, “i”, “t” and “e” and as matching is done by substring by apt. The command you ran thus matched all packages with one of these characters in it, which of course are a lot. To quote apt’s output listing just the essential ones:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt adduser (due to apt) gpgv (due to apt) ubuntu-keyring (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt)
libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo5 (due to bash) debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) libzstd1 (due to dpkg)
zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) fdisk
libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw5 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) install-info (due to grep) gzip hostname init
systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to login)
libpam-modules (due to login) mount util-linux (due to mount) ncurses-base ncurses-bin sed sysvinit-utils libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 2503 to remove and 0 not upgraded.
After this operation, 7238 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
The multiple warnings as well as the necessity to literally type:
Yes, do as I say!
are security means in place to keep you from destroying your system, as the system’s package manager apt is perfectly capable of doing that. Any command run with sudo should be run carefully and thoughtfully, but don’t fret: Nearly every experienced user of Ubuntu broke their system at least once, in fact that’s part of the fun if you ask me.
Further reading
this answer to apt-get remove with wildcard removed way more than expected. why?
Yes I did. But there was only one prompt. And looking back I also thought it was a little overkill with all these warnings just for deleting an app :o)
– Jesper Joachim Sørensen
3 hours ago
okay. I have already reinstalled my ubuntu from scratch.
– Jesper Joachim Sørensen
3 hours ago
4
That is a serious flaw inapt-getIMO.[write]does not matchlibgcc1. It matches a substring (i) but not the whole package name. I didn't know of this behaviour before but maybe I should file a bug...
– danzel
3 hours ago
1
@MSalters[write]is an expression. I agree the manual is fuzzy there, but the underlying mechanics are very good and the security measures (see above) couldn’t be better IMO. This is more a case of insufficient documentation than a bug.
– dessert
3 hours ago
1
@danzel The manual is pretty clear about that: “Note that matching is done by substring (…). If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression.”
– dessert
3 hours ago
|
show 3 more comments
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
);
);
Jesper Joachim Sørensen is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1141838%2fcan-sudo-apt-get-remove-write-destroy-my-ubuntu%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
The correct command to remove a package named write is:
sudo apt-get remove write
[write] is a character set matching the characters “w”, “r”, “i”, “t” and “e” and as matching is done by substring by apt. The command you ran thus matched all packages with one of these characters in it, which of course are a lot. To quote apt’s output listing just the essential ones:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt adduser (due to apt) gpgv (due to apt) ubuntu-keyring (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt)
libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo5 (due to bash) debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) libzstd1 (due to dpkg)
zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) fdisk
libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw5 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) install-info (due to grep) gzip hostname init
systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to login)
libpam-modules (due to login) mount util-linux (due to mount) ncurses-base ncurses-bin sed sysvinit-utils libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 2503 to remove and 0 not upgraded.
After this operation, 7238 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
The multiple warnings as well as the necessity to literally type:
Yes, do as I say!
are security means in place to keep you from destroying your system, as the system’s package manager apt is perfectly capable of doing that. Any command run with sudo should be run carefully and thoughtfully, but don’t fret: Nearly every experienced user of Ubuntu broke their system at least once, in fact that’s part of the fun if you ask me.
Further reading
this answer to apt-get remove with wildcard removed way more than expected. why?
Yes I did. But there was only one prompt. And looking back I also thought it was a little overkill with all these warnings just for deleting an app :o)
– Jesper Joachim Sørensen
3 hours ago
okay. I have already reinstalled my ubuntu from scratch.
– Jesper Joachim Sørensen
3 hours ago
4
That is a serious flaw inapt-getIMO.[write]does not matchlibgcc1. It matches a substring (i) but not the whole package name. I didn't know of this behaviour before but maybe I should file a bug...
– danzel
3 hours ago
1
@MSalters[write]is an expression. I agree the manual is fuzzy there, but the underlying mechanics are very good and the security measures (see above) couldn’t be better IMO. This is more a case of insufficient documentation than a bug.
– dessert
3 hours ago
1
@danzel The manual is pretty clear about that: “Note that matching is done by substring (…). If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression.”
– dessert
3 hours ago
|
show 3 more comments
The correct command to remove a package named write is:
sudo apt-get remove write
[write] is a character set matching the characters “w”, “r”, “i”, “t” and “e” and as matching is done by substring by apt. The command you ran thus matched all packages with one of these characters in it, which of course are a lot. To quote apt’s output listing just the essential ones:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt adduser (due to apt) gpgv (due to apt) ubuntu-keyring (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt)
libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo5 (due to bash) debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) libzstd1 (due to dpkg)
zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) fdisk
libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw5 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) install-info (due to grep) gzip hostname init
systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to login)
libpam-modules (due to login) mount util-linux (due to mount) ncurses-base ncurses-bin sed sysvinit-utils libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 2503 to remove and 0 not upgraded.
After this operation, 7238 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
The multiple warnings as well as the necessity to literally type:
Yes, do as I say!
are security means in place to keep you from destroying your system, as the system’s package manager apt is perfectly capable of doing that. Any command run with sudo should be run carefully and thoughtfully, but don’t fret: Nearly every experienced user of Ubuntu broke their system at least once, in fact that’s part of the fun if you ask me.
Further reading
this answer to apt-get remove with wildcard removed way more than expected. why?
Yes I did. But there was only one prompt. And looking back I also thought it was a little overkill with all these warnings just for deleting an app :o)
– Jesper Joachim Sørensen
3 hours ago
okay. I have already reinstalled my ubuntu from scratch.
– Jesper Joachim Sørensen
3 hours ago
4
That is a serious flaw inapt-getIMO.[write]does not matchlibgcc1. It matches a substring (i) but not the whole package name. I didn't know of this behaviour before but maybe I should file a bug...
– danzel
3 hours ago
1
@MSalters[write]is an expression. I agree the manual is fuzzy there, but the underlying mechanics are very good and the security measures (see above) couldn’t be better IMO. This is more a case of insufficient documentation than a bug.
– dessert
3 hours ago
1
@danzel The manual is pretty clear about that: “Note that matching is done by substring (…). If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression.”
– dessert
3 hours ago
|
show 3 more comments
The correct command to remove a package named write is:
sudo apt-get remove write
[write] is a character set matching the characters “w”, “r”, “i”, “t” and “e” and as matching is done by substring by apt. The command you ran thus matched all packages with one of these characters in it, which of course are a lot. To quote apt’s output listing just the essential ones:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt adduser (due to apt) gpgv (due to apt) ubuntu-keyring (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt)
libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo5 (due to bash) debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) libzstd1 (due to dpkg)
zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) fdisk
libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw5 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) install-info (due to grep) gzip hostname init
systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to login)
libpam-modules (due to login) mount util-linux (due to mount) ncurses-base ncurses-bin sed sysvinit-utils libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 2503 to remove and 0 not upgraded.
After this operation, 7238 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
The multiple warnings as well as the necessity to literally type:
Yes, do as I say!
are security means in place to keep you from destroying your system, as the system’s package manager apt is perfectly capable of doing that. Any command run with sudo should be run carefully and thoughtfully, but don’t fret: Nearly every experienced user of Ubuntu broke their system at least once, in fact that’s part of the fun if you ask me.
Further reading
this answer to apt-get remove with wildcard removed way more than expected. why?
The correct command to remove a package named write is:
sudo apt-get remove write
[write] is a character set matching the characters “w”, “r”, “i”, “t” and “e” and as matching is done by substring by apt. The command you ran thus matched all packages with one of these characters in it, which of course are a lot. To quote apt’s output listing just the essential ones:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt adduser (due to apt) gpgv (due to apt) ubuntu-keyring (due to apt) libapt-pkg5.0 (due to apt) libc6 (due to apt) libgcc1 (due to apt) libgnutls30 (due to apt) libseccomp2 (due to apt)
libstdc++6 (due to apt) base-files base-passwd libdebconfclient0 (due to base-passwd) bash libtinfo5 (due to bash) debianutils (due to bash) bsdutils libsystemd0 (due to bsdutils) coreutils
libacl1 (due to coreutils) libattr1 (due to coreutils) libselinux1 (due to coreutils) dash dpkg (due to dash) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg) libzstd1 (due to dpkg)
zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs libblkid1 (due to e2fsprogs) libcom-err2 (due to e2fsprogs) libext2fs2 (due to e2fsprogs) libss2 (due to e2fsprogs) libuuid1 (due to e2fsprogs) fdisk
libfdisk1 (due to fdisk) libmount1 (due to fdisk) libncursesw5 (due to fdisk) libsmartcols1 (due to fdisk) findutils grep libpcre3 (due to grep) install-info (due to grep) gzip hostname init
systemd-sysv (due to init) init-system-helpers (due to init) perl-base (due to init-system-helpers) libc-bin login libaudit1 (due to login) libpam0g (due to login) libpam-runtime (due to login)
libpam-modules (due to login) mount util-linux (due to mount) ncurses-base ncurses-bin sed sysvinit-utils libudev1 (due to util-linux)
0 upgraded, 0 newly installed, 2503 to remove and 0 not upgraded.
After this operation, 7238 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
The multiple warnings as well as the necessity to literally type:
Yes, do as I say!
are security means in place to keep you from destroying your system, as the system’s package manager apt is perfectly capable of doing that. Any command run with sudo should be run carefully and thoughtfully, but don’t fret: Nearly every experienced user of Ubuntu broke their system at least once, in fact that’s part of the fun if you ask me.
Further reading
this answer to apt-get remove with wildcard removed way more than expected. why?
edited 1 hour ago
Fabby
27.4k1562167
27.4k1562167
answered 3 hours ago
dessertdessert
26.2k676110
26.2k676110
Yes I did. But there was only one prompt. And looking back I also thought it was a little overkill with all these warnings just for deleting an app :o)
– Jesper Joachim Sørensen
3 hours ago
okay. I have already reinstalled my ubuntu from scratch.
– Jesper Joachim Sørensen
3 hours ago
4
That is a serious flaw inapt-getIMO.[write]does not matchlibgcc1. It matches a substring (i) but not the whole package name. I didn't know of this behaviour before but maybe I should file a bug...
– danzel
3 hours ago
1
@MSalters[write]is an expression. I agree the manual is fuzzy there, but the underlying mechanics are very good and the security measures (see above) couldn’t be better IMO. This is more a case of insufficient documentation than a bug.
– dessert
3 hours ago
1
@danzel The manual is pretty clear about that: “Note that matching is done by substring (…). If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression.”
– dessert
3 hours ago
|
show 3 more comments
Yes I did. But there was only one prompt. And looking back I also thought it was a little overkill with all these warnings just for deleting an app :o)
– Jesper Joachim Sørensen
3 hours ago
okay. I have already reinstalled my ubuntu from scratch.
– Jesper Joachim Sørensen
3 hours ago
4
That is a serious flaw inapt-getIMO.[write]does not matchlibgcc1. It matches a substring (i) but not the whole package name. I didn't know of this behaviour before but maybe I should file a bug...
– danzel
3 hours ago
1
@MSalters[write]is an expression. I agree the manual is fuzzy there, but the underlying mechanics are very good and the security measures (see above) couldn’t be better IMO. This is more a case of insufficient documentation than a bug.
– dessert
3 hours ago
1
@danzel The manual is pretty clear about that: “Note that matching is done by substring (…). If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression.”
– dessert
3 hours ago
Yes I did. But there was only one prompt. And looking back I also thought it was a little overkill with all these warnings just for deleting an app :o)
– Jesper Joachim Sørensen
3 hours ago
Yes I did. But there was only one prompt. And looking back I also thought it was a little overkill with all these warnings just for deleting an app :o)
– Jesper Joachim Sørensen
3 hours ago
okay. I have already reinstalled my ubuntu from scratch.
– Jesper Joachim Sørensen
3 hours ago
okay. I have already reinstalled my ubuntu from scratch.
– Jesper Joachim Sørensen
3 hours ago
4
4
That is a serious flaw in
apt-get IMO. [write] does not match libgcc1. It matches a substring (i) but not the whole package name. I didn't know of this behaviour before but maybe I should file a bug...– danzel
3 hours ago
That is a serious flaw in
apt-get IMO. [write] does not match libgcc1. It matches a substring (i) but not the whole package name. I didn't know of this behaviour before but maybe I should file a bug...– danzel
3 hours ago
1
1
@MSalters
[write] is an expression. I agree the manual is fuzzy there, but the underlying mechanics are very good and the security measures (see above) couldn’t be better IMO. This is more a case of insufficient documentation than a bug.– dessert
3 hours ago
@MSalters
[write] is an expression. I agree the manual is fuzzy there, but the underlying mechanics are very good and the security measures (see above) couldn’t be better IMO. This is more a case of insufficient documentation than a bug.– dessert
3 hours ago
1
1
@danzel The manual is pretty clear about that: “Note that matching is done by substring (…). If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression.”
– dessert
3 hours ago
@danzel The manual is pretty clear about that: “Note that matching is done by substring (…). If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression.”
– dessert
3 hours ago
|
show 3 more comments
Jesper Joachim Sørensen is a new contributor. Be nice, and check out our Code of Conduct.
Jesper Joachim Sørensen is a new contributor. Be nice, and check out our Code of Conduct.
Jesper Joachim Sørensen is a new contributor. Be nice, and check out our Code of Conduct.
Jesper Joachim Sørensen is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1141838%2fcan-sudo-apt-get-remove-write-destroy-my-ubuntu%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
7
You literally entered
... [write], including the brackets? Then I'm afraid you indeed removed plenty of packages.– PerlDuck
3 hours ago
Yes including the brackets :o|
– Jesper Joachim Sørensen
3 hours ago
5
A teachable moment about reading the complete output. Many of us have done something similar...once.
– user535733
1 hour ago
$20 says you'll only make that mistake once, :p
– Gerowen
1 hour ago