“sudo apt-get install foo-” causes removing foo package and everything depending on itWhy does `apt-get install python-` remove everything?apt-get install with '-' removes?Why does apt-get install python3 with a trailing hyphen remove a lot of packages?Ubuntu menu and applications bar gone, and some programs tooapt-get install - - fix-broken killed everythingsudo apt-get -f installapt-get autoremove removes everythingHow to prevent apt-get install from removing package holds?sudo apt-get -f install #?sudo apt-get install libstdc++Difference between 'sudo apt-get' and 'sudo -E apt-get'`sudo apt autoremove` suggests removing large packageUbuntu the difference between sudo apt-get upgrade and sudo apt-get install?Unmet dependencies with everything using sudo apt-get install

Calculus Optimization - Point on graph closest to given point

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

What Brexit solution does the DUP want?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Why don't electron-positron collisions release infinite energy?

Can a German sentence have two subjects?

What typically incentivizes a professor to change jobs to a lower ranking university?

Finding files for which a command fails

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

The use of multiple foreign keys on same column in SQL Server

Is it possible to do 50 km distance without any previous training?

How can I fix this gap between bookcases I made?

Draw simple lines in Inkscape

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

If Manufacturer spice model and Datasheet give different values which should I use?

Download, install and reboot computer at night if needed

Are tax years 2016 & 2017 back taxes deductible for tax year 2018?

Simulate Bitwise Cyclic Tag

What makes Graph invariants so useful/important?

Copenhagen passport control - US citizen

How old can references or sources in a thesis be?

Is there really no realistic way for a skeleton monster to move around without magic?

Is there a minimum number of transactions in a block?

What are these boxed doors outside store fronts in New York?



“sudo apt-get install foo-” causes removing foo package and everything depending on it


Why does `apt-get install python-` remove everything?apt-get install with '-' removes?Why does apt-get install python3 with a trailing hyphen remove a lot of packages?Ubuntu menu and applications bar gone, and some programs tooapt-get install - - fix-broken killed everythingsudo apt-get -f installapt-get autoremove removes everythingHow to prevent apt-get install from removing package holds?sudo apt-get -f install #?sudo apt-get install libstdc++Difference between 'sudo apt-get' and 'sudo -E apt-get'`sudo apt autoremove` suggests removing large packageUbuntu the difference between sudo apt-get upgrade and sudo apt-get install?Unmet dependencies with everything using sudo apt-get install






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








10















While working in command prompt, I accidentally typed following command:



sudo apt-get install python3-


and ubuntu started removing python3 and everything that depends on it (including Firefox and much more). Fortunately I closed that terminal immediately and reverted everything by checking dpkg log file, but I was wondering why an install command should act like remove?



Is it a bug?



Consider the situation that you are looking for a package name (pressing Tab twice) and going through possibilities by pressing Enter key and those Enter keys remain in the keyboard buffer and.... youhaaaa... apt-get is removing the entire installation in front of your eyes.










share|improve this question
























  • Just tried that command on my machine, It is really selecting so many system packages to remove. and the funny thing is that those are not meta-packages but actual install packages. By the way, I also tried appending - with some other package names but that produced an error. looks like this is only happening with python3-

    – Gufran
    Nov 7 '12 at 10:43











  • I'm pretty sure apt-get asks for confirmation by default.

    – nyuszika7h
    Sep 23 '14 at 14:11







  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    22 mins ago

















10















While working in command prompt, I accidentally typed following command:



sudo apt-get install python3-


and ubuntu started removing python3 and everything that depends on it (including Firefox and much more). Fortunately I closed that terminal immediately and reverted everything by checking dpkg log file, but I was wondering why an install command should act like remove?



Is it a bug?



Consider the situation that you are looking for a package name (pressing Tab twice) and going through possibilities by pressing Enter key and those Enter keys remain in the keyboard buffer and.... youhaaaa... apt-get is removing the entire installation in front of your eyes.










share|improve this question
























  • Just tried that command on my machine, It is really selecting so many system packages to remove. and the funny thing is that those are not meta-packages but actual install packages. By the way, I also tried appending - with some other package names but that produced an error. looks like this is only happening with python3-

    – Gufran
    Nov 7 '12 at 10:43











  • I'm pretty sure apt-get asks for confirmation by default.

    – nyuszika7h
    Sep 23 '14 at 14:11







  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    22 mins ago













10












10








10


3






While working in command prompt, I accidentally typed following command:



sudo apt-get install python3-


and ubuntu started removing python3 and everything that depends on it (including Firefox and much more). Fortunately I closed that terminal immediately and reverted everything by checking dpkg log file, but I was wondering why an install command should act like remove?



Is it a bug?



Consider the situation that you are looking for a package name (pressing Tab twice) and going through possibilities by pressing Enter key and those Enter keys remain in the keyboard buffer and.... youhaaaa... apt-get is removing the entire installation in front of your eyes.










share|improve this question
















While working in command prompt, I accidentally typed following command:



sudo apt-get install python3-


and ubuntu started removing python3 and everything that depends on it (including Firefox and much more). Fortunately I closed that terminal immediately and reverted everything by checking dpkg log file, but I was wondering why an install command should act like remove?



Is it a bug?



Consider the situation that you are looking for a package name (pressing Tab twice) and going through possibilities by pressing Enter key and those Enter keys remain in the keyboard buffer and.... youhaaaa... apt-get is removing the entire installation in front of your eyes.







command-line apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 min ago









pomsky

33.2k11104136




33.2k11104136










asked Nov 7 '12 at 10:20









melmimelmi

2301210




2301210












  • Just tried that command on my machine, It is really selecting so many system packages to remove. and the funny thing is that those are not meta-packages but actual install packages. By the way, I also tried appending - with some other package names but that produced an error. looks like this is only happening with python3-

    – Gufran
    Nov 7 '12 at 10:43











  • I'm pretty sure apt-get asks for confirmation by default.

    – nyuszika7h
    Sep 23 '14 at 14:11







  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    22 mins ago

















  • Just tried that command on my machine, It is really selecting so many system packages to remove. and the funny thing is that those are not meta-packages but actual install packages. By the way, I also tried appending - with some other package names but that produced an error. looks like this is only happening with python3-

    – Gufran
    Nov 7 '12 at 10:43











  • I'm pretty sure apt-get asks for confirmation by default.

    – nyuszika7h
    Sep 23 '14 at 14:11







  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    22 mins ago
















Just tried that command on my machine, It is really selecting so many system packages to remove. and the funny thing is that those are not meta-packages but actual install packages. By the way, I also tried appending - with some other package names but that produced an error. looks like this is only happening with python3-

– Gufran
Nov 7 '12 at 10:43





Just tried that command on my machine, It is really selecting so many system packages to remove. and the funny thing is that those are not meta-packages but actual install packages. By the way, I also tried appending - with some other package names but that produced an error. looks like this is only happening with python3-

– Gufran
Nov 7 '12 at 10:43













I'm pretty sure apt-get asks for confirmation by default.

– nyuszika7h
Sep 23 '14 at 14:11






I'm pretty sure apt-get asks for confirmation by default.

– nyuszika7h
Sep 23 '14 at 14:11





1




1





Possible duplicate of apt-get install with '-' removes?

– pomsky
22 mins ago





Possible duplicate of apt-get install with '-' removes?

– pomsky
22 mins ago










2 Answers
2






active

oldest

votes


















10














Just tried this minus (or dash) sign after a package and yes , apt-get acting like remove.



Funny thing is I didn't know this function of apt-get . This minus sign is valid for every package . I tried with smplayer- with firefox- and always acting like remove.
So the only thing I can think is that the dash sign at the end of a package considered by apt-get like a minus and install command converted to remove.



If you wanted to install everything about python3 , then you had to add an asterisk sign after this dash(minus) sign



sudo apt-get install python3-*



In the begin I thought this was just a conflict issue , but is not. Sometimes when you install some package and conflict with an other package then the already installed package will be removed due to new installed package , but this is not our situation here.



We've learned something useful today.



From the man-page of apt-get . To read the man-page via your terminal give man apt-get




If a hyphen (-) is appended to the package name (with no intervening
space), the identified package will be removed if it is currently
installed. Similarly a plus sign (+) can be used to designate a
package to install. These latter features may be used to override
decisions made by apt-get's conflict resolution system.




Eventually is not a new option or something weird , is just we don't read the man-pages carefully.






share|improve this answer

























  • I want to be sure that this function was implemented by purpose (not a bug). I took a look on man page of apt but I did not find such a function. It is appreciated if you could add a link to such document.

    – melmi
    Nov 7 '12 at 11:23






  • 1





    @M.Elmi, linux.die.net/man/8/apt-get

    – SeanC
    Nov 7 '12 at 15:08











  • Thank you. What do you think about a suugestion to canonical for disabling this by default? While this option is not so common, it simply may cause unwanted remove of packages. Of course one can enable it later from a config file.

    – melmi
    Nov 7 '12 at 16:18











  • You can open a bug with a future request (or wish) , but I don't think that Canonical has something to do with it. You should open a bug assigned to debian. Here => debian.org/bugs

    – NickTux
    Nov 7 '12 at 19:11











  • Note for zsh users: Put apt-get *s etc. in single quotes, so that it looks like: sudo apt-get install 'python3-*'

    – UniversallyUniqueID
    May 13 '16 at 14:09


















11














This is apparently a feature of apt.



From the manpage for the apt-get command Manpage icon,




If a hyphen is appended to the package name (with
no intervening space), the identified package will be removed if it
is installed. Similarly a plus sign can be used to designate a
package to install. These latter features may be used to override
decisions made by apt-get's conflict resolution system.





Simulating with an installed package and a hyphen appended to the end of the package gives me this output:



$ apt-get install -s retext-
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
retext-wpgen
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
retext
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Remv retext [3.1.3-1]


Similarly, with an uninstalled package and a plus sign appended to the end of the package, I get this output:



$ apt-get remove -s googlecl+
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-gdata
Suggested packages:
python-gdata-doc
The following NEW packages will be installed:
googlecl python-gdata
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
Inst googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])
Conf python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
Conf googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])





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%2f214043%2fsudo-apt-get-install-foo-causes-removing-foo-package-and-everything-depending%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    10














    Just tried this minus (or dash) sign after a package and yes , apt-get acting like remove.



    Funny thing is I didn't know this function of apt-get . This minus sign is valid for every package . I tried with smplayer- with firefox- and always acting like remove.
    So the only thing I can think is that the dash sign at the end of a package considered by apt-get like a minus and install command converted to remove.



    If you wanted to install everything about python3 , then you had to add an asterisk sign after this dash(minus) sign



    sudo apt-get install python3-*



    In the begin I thought this was just a conflict issue , but is not. Sometimes when you install some package and conflict with an other package then the already installed package will be removed due to new installed package , but this is not our situation here.



    We've learned something useful today.



    From the man-page of apt-get . To read the man-page via your terminal give man apt-get




    If a hyphen (-) is appended to the package name (with no intervening
    space), the identified package will be removed if it is currently
    installed. Similarly a plus sign (+) can be used to designate a
    package to install. These latter features may be used to override
    decisions made by apt-get's conflict resolution system.




    Eventually is not a new option or something weird , is just we don't read the man-pages carefully.






    share|improve this answer

























    • I want to be sure that this function was implemented by purpose (not a bug). I took a look on man page of apt but I did not find such a function. It is appreciated if you could add a link to such document.

      – melmi
      Nov 7 '12 at 11:23






    • 1





      @M.Elmi, linux.die.net/man/8/apt-get

      – SeanC
      Nov 7 '12 at 15:08











    • Thank you. What do you think about a suugestion to canonical for disabling this by default? While this option is not so common, it simply may cause unwanted remove of packages. Of course one can enable it later from a config file.

      – melmi
      Nov 7 '12 at 16:18











    • You can open a bug with a future request (or wish) , but I don't think that Canonical has something to do with it. You should open a bug assigned to debian. Here => debian.org/bugs

      – NickTux
      Nov 7 '12 at 19:11











    • Note for zsh users: Put apt-get *s etc. in single quotes, so that it looks like: sudo apt-get install 'python3-*'

      – UniversallyUniqueID
      May 13 '16 at 14:09















    10














    Just tried this minus (or dash) sign after a package and yes , apt-get acting like remove.



    Funny thing is I didn't know this function of apt-get . This minus sign is valid for every package . I tried with smplayer- with firefox- and always acting like remove.
    So the only thing I can think is that the dash sign at the end of a package considered by apt-get like a minus and install command converted to remove.



    If you wanted to install everything about python3 , then you had to add an asterisk sign after this dash(minus) sign



    sudo apt-get install python3-*



    In the begin I thought this was just a conflict issue , but is not. Sometimes when you install some package and conflict with an other package then the already installed package will be removed due to new installed package , but this is not our situation here.



    We've learned something useful today.



    From the man-page of apt-get . To read the man-page via your terminal give man apt-get




    If a hyphen (-) is appended to the package name (with no intervening
    space), the identified package will be removed if it is currently
    installed. Similarly a plus sign (+) can be used to designate a
    package to install. These latter features may be used to override
    decisions made by apt-get's conflict resolution system.




    Eventually is not a new option or something weird , is just we don't read the man-pages carefully.






    share|improve this answer

























    • I want to be sure that this function was implemented by purpose (not a bug). I took a look on man page of apt but I did not find such a function. It is appreciated if you could add a link to such document.

      – melmi
      Nov 7 '12 at 11:23






    • 1





      @M.Elmi, linux.die.net/man/8/apt-get

      – SeanC
      Nov 7 '12 at 15:08











    • Thank you. What do you think about a suugestion to canonical for disabling this by default? While this option is not so common, it simply may cause unwanted remove of packages. Of course one can enable it later from a config file.

      – melmi
      Nov 7 '12 at 16:18











    • You can open a bug with a future request (or wish) , but I don't think that Canonical has something to do with it. You should open a bug assigned to debian. Here => debian.org/bugs

      – NickTux
      Nov 7 '12 at 19:11











    • Note for zsh users: Put apt-get *s etc. in single quotes, so that it looks like: sudo apt-get install 'python3-*'

      – UniversallyUniqueID
      May 13 '16 at 14:09













    10












    10








    10







    Just tried this minus (or dash) sign after a package and yes , apt-get acting like remove.



    Funny thing is I didn't know this function of apt-get . This minus sign is valid for every package . I tried with smplayer- with firefox- and always acting like remove.
    So the only thing I can think is that the dash sign at the end of a package considered by apt-get like a minus and install command converted to remove.



    If you wanted to install everything about python3 , then you had to add an asterisk sign after this dash(minus) sign



    sudo apt-get install python3-*



    In the begin I thought this was just a conflict issue , but is not. Sometimes when you install some package and conflict with an other package then the already installed package will be removed due to new installed package , but this is not our situation here.



    We've learned something useful today.



    From the man-page of apt-get . To read the man-page via your terminal give man apt-get




    If a hyphen (-) is appended to the package name (with no intervening
    space), the identified package will be removed if it is currently
    installed. Similarly a plus sign (+) can be used to designate a
    package to install. These latter features may be used to override
    decisions made by apt-get's conflict resolution system.




    Eventually is not a new option or something weird , is just we don't read the man-pages carefully.






    share|improve this answer















    Just tried this minus (or dash) sign after a package and yes , apt-get acting like remove.



    Funny thing is I didn't know this function of apt-get . This minus sign is valid for every package . I tried with smplayer- with firefox- and always acting like remove.
    So the only thing I can think is that the dash sign at the end of a package considered by apt-get like a minus and install command converted to remove.



    If you wanted to install everything about python3 , then you had to add an asterisk sign after this dash(minus) sign



    sudo apt-get install python3-*



    In the begin I thought this was just a conflict issue , but is not. Sometimes when you install some package and conflict with an other package then the already installed package will be removed due to new installed package , but this is not our situation here.



    We've learned something useful today.



    From the man-page of apt-get . To read the man-page via your terminal give man apt-get




    If a hyphen (-) is appended to the package name (with no intervening
    space), the identified package will be removed if it is currently
    installed. Similarly a plus sign (+) can be used to designate a
    package to install. These latter features may be used to override
    decisions made by apt-get's conflict resolution system.




    Eventually is not a new option or something weird , is just we don't read the man-pages carefully.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 7 '12 at 11:41

























    answered Nov 7 '12 at 11:05









    NickTuxNickTux

    14k54465




    14k54465












    • I want to be sure that this function was implemented by purpose (not a bug). I took a look on man page of apt but I did not find such a function. It is appreciated if you could add a link to such document.

      – melmi
      Nov 7 '12 at 11:23






    • 1





      @M.Elmi, linux.die.net/man/8/apt-get

      – SeanC
      Nov 7 '12 at 15:08











    • Thank you. What do you think about a suugestion to canonical for disabling this by default? While this option is not so common, it simply may cause unwanted remove of packages. Of course one can enable it later from a config file.

      – melmi
      Nov 7 '12 at 16:18











    • You can open a bug with a future request (or wish) , but I don't think that Canonical has something to do with it. You should open a bug assigned to debian. Here => debian.org/bugs

      – NickTux
      Nov 7 '12 at 19:11











    • Note for zsh users: Put apt-get *s etc. in single quotes, so that it looks like: sudo apt-get install 'python3-*'

      – UniversallyUniqueID
      May 13 '16 at 14:09

















    • I want to be sure that this function was implemented by purpose (not a bug). I took a look on man page of apt but I did not find such a function. It is appreciated if you could add a link to such document.

      – melmi
      Nov 7 '12 at 11:23






    • 1





      @M.Elmi, linux.die.net/man/8/apt-get

      – SeanC
      Nov 7 '12 at 15:08











    • Thank you. What do you think about a suugestion to canonical for disabling this by default? While this option is not so common, it simply may cause unwanted remove of packages. Of course one can enable it later from a config file.

      – melmi
      Nov 7 '12 at 16:18











    • You can open a bug with a future request (or wish) , but I don't think that Canonical has something to do with it. You should open a bug assigned to debian. Here => debian.org/bugs

      – NickTux
      Nov 7 '12 at 19:11











    • Note for zsh users: Put apt-get *s etc. in single quotes, so that it looks like: sudo apt-get install 'python3-*'

      – UniversallyUniqueID
      May 13 '16 at 14:09
















    I want to be sure that this function was implemented by purpose (not a bug). I took a look on man page of apt but I did not find such a function. It is appreciated if you could add a link to such document.

    – melmi
    Nov 7 '12 at 11:23





    I want to be sure that this function was implemented by purpose (not a bug). I took a look on man page of apt but I did not find such a function. It is appreciated if you could add a link to such document.

    – melmi
    Nov 7 '12 at 11:23




    1




    1





    @M.Elmi, linux.die.net/man/8/apt-get

    – SeanC
    Nov 7 '12 at 15:08





    @M.Elmi, linux.die.net/man/8/apt-get

    – SeanC
    Nov 7 '12 at 15:08













    Thank you. What do you think about a suugestion to canonical for disabling this by default? While this option is not so common, it simply may cause unwanted remove of packages. Of course one can enable it later from a config file.

    – melmi
    Nov 7 '12 at 16:18





    Thank you. What do you think about a suugestion to canonical for disabling this by default? While this option is not so common, it simply may cause unwanted remove of packages. Of course one can enable it later from a config file.

    – melmi
    Nov 7 '12 at 16:18













    You can open a bug with a future request (or wish) , but I don't think that Canonical has something to do with it. You should open a bug assigned to debian. Here => debian.org/bugs

    – NickTux
    Nov 7 '12 at 19:11





    You can open a bug with a future request (or wish) , but I don't think that Canonical has something to do with it. You should open a bug assigned to debian. Here => debian.org/bugs

    – NickTux
    Nov 7 '12 at 19:11













    Note for zsh users: Put apt-get *s etc. in single quotes, so that it looks like: sudo apt-get install 'python3-*'

    – UniversallyUniqueID
    May 13 '16 at 14:09





    Note for zsh users: Put apt-get *s etc. in single quotes, so that it looks like: sudo apt-get install 'python3-*'

    – UniversallyUniqueID
    May 13 '16 at 14:09













    11














    This is apparently a feature of apt.



    From the manpage for the apt-get command Manpage icon,




    If a hyphen is appended to the package name (with
    no intervening space), the identified package will be removed if it
    is installed. Similarly a plus sign can be used to designate a
    package to install. These latter features may be used to override
    decisions made by apt-get's conflict resolution system.





    Simulating with an installed package and a hyphen appended to the end of the package gives me this output:



    $ apt-get install -s retext-
    NOTE: This is only a simulation!
    apt-get needs root privileges for real execution.
    Keep also in mind that locking is deactivated,
    so don't depend on the relevance to the real current situation!
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    retext-wpgen
    Use 'apt-get autoremove' to remove it.
    The following packages will be REMOVED:
    retext
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    Remv retext [3.1.3-1]


    Similarly, with an uninstalled package and a plus sign appended to the end of the package, I get this output:



    $ apt-get remove -s googlecl+
    NOTE: This is only a simulation!
    apt-get needs root privileges for real execution.
    Keep also in mind that locking is deactivated,
    so don't depend on the relevance to the real current situation!
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    python-gdata
    Suggested packages:
    python-gdata-doc
    The following NEW packages will be installed:
    googlecl python-gdata
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Inst python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
    Inst googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])
    Conf python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
    Conf googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])





    share|improve this answer



























      11














      This is apparently a feature of apt.



      From the manpage for the apt-get command Manpage icon,




      If a hyphen is appended to the package name (with
      no intervening space), the identified package will be removed if it
      is installed. Similarly a plus sign can be used to designate a
      package to install. These latter features may be used to override
      decisions made by apt-get's conflict resolution system.





      Simulating with an installed package and a hyphen appended to the end of the package gives me this output:



      $ apt-get install -s retext-
      NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following package was automatically installed and is no longer required:
      retext-wpgen
      Use 'apt-get autoremove' to remove it.
      The following packages will be REMOVED:
      retext
      0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
      Remv retext [3.1.3-1]


      Similarly, with an uninstalled package and a plus sign appended to the end of the package, I get this output:



      $ apt-get remove -s googlecl+
      NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following extra packages will be installed:
      python-gdata
      Suggested packages:
      python-gdata-doc
      The following NEW packages will be installed:
      googlecl python-gdata
      0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
      Inst python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
      Inst googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])
      Conf python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
      Conf googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])





      share|improve this answer

























        11












        11








        11







        This is apparently a feature of apt.



        From the manpage for the apt-get command Manpage icon,




        If a hyphen is appended to the package name (with
        no intervening space), the identified package will be removed if it
        is installed. Similarly a plus sign can be used to designate a
        package to install. These latter features may be used to override
        decisions made by apt-get's conflict resolution system.





        Simulating with an installed package and a hyphen appended to the end of the package gives me this output:



        $ apt-get install -s retext-
        NOTE: This is only a simulation!
        apt-get needs root privileges for real execution.
        Keep also in mind that locking is deactivated,
        so don't depend on the relevance to the real current situation!
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following package was automatically installed and is no longer required:
        retext-wpgen
        Use 'apt-get autoremove' to remove it.
        The following packages will be REMOVED:
        retext
        0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
        Remv retext [3.1.3-1]


        Similarly, with an uninstalled package and a plus sign appended to the end of the package, I get this output:



        $ apt-get remove -s googlecl+
        NOTE: This is only a simulation!
        apt-get needs root privileges for real execution.
        Keep also in mind that locking is deactivated,
        so don't depend on the relevance to the real current situation!
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following extra packages will be installed:
        python-gdata
        Suggested packages:
        python-gdata-doc
        The following NEW packages will be installed:
        googlecl python-gdata
        0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
        Inst python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
        Inst googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])
        Conf python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
        Conf googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])





        share|improve this answer













        This is apparently a feature of apt.



        From the manpage for the apt-get command Manpage icon,




        If a hyphen is appended to the package name (with
        no intervening space), the identified package will be removed if it
        is installed. Similarly a plus sign can be used to designate a
        package to install. These latter features may be used to override
        decisions made by apt-get's conflict resolution system.





        Simulating with an installed package and a hyphen appended to the end of the package gives me this output:



        $ apt-get install -s retext-
        NOTE: This is only a simulation!
        apt-get needs root privileges for real execution.
        Keep also in mind that locking is deactivated,
        so don't depend on the relevance to the real current situation!
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following package was automatically installed and is no longer required:
        retext-wpgen
        Use 'apt-get autoremove' to remove it.
        The following packages will be REMOVED:
        retext
        0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
        Remv retext [3.1.3-1]


        Similarly, with an uninstalled package and a plus sign appended to the end of the package, I get this output:



        $ apt-get remove -s googlecl+
        NOTE: This is only a simulation!
        apt-get needs root privileges for real execution.
        Keep also in mind that locking is deactivated,
        so don't depend on the relevance to the real current situation!
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following extra packages will be installed:
        python-gdata
        Suggested packages:
        python-gdata-doc
        The following NEW packages will be installed:
        googlecl python-gdata
        0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
        Inst python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
        Inst googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])
        Conf python-gdata (2.0.17-1 Ubuntu:12.10/quantal [all])
        Conf googlecl (0.9.13-1.1 Ubuntu:12.10/quantal [all])






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 7 '12 at 11:29









        jokerdinojokerdino

        32.9k21120187




        32.9k21120187



























            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%2f214043%2fsudo-apt-get-install-foo-causes-removing-foo-package-and-everything-depending%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

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»