How to undo "apt-get -f install"
Hello,
I was trying to install some software, and there were some problems with dependencies. To solve that, I usually use "apt-get -f install" because it seems to install the dependencies needed. But this time, I ran that command and it says: The following packages will be REMOVED: sudo, cinnamon, gksu, etc. I think that those are important packages, but the apt wants to remove them in order to install their 32 version I think. In addition to this, I found out another way of installing the software I wanted in a more secure way, but the thing is that I don't want the apt trying to remove this anymore. How can I cancel this? If in the future I need to run "apt-get -f install" again, will I have to accept this removals? Thanks in advance! |
so did you run the "apt-get -f install" or not?
please show us the output without actually pressing enter at the end, maybe try "apt-get -s -f install" (-s should stand for simulate only). |
I run the command and the output is:
sudo apt-get -f install [sudo] password for lyn: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: libportaudio2:i386 The following packages will be REMOVED: casper cinnamon gdebi gksu guitarpro6:i386 libgksu2-0 lupin-casper mdm mint-meta-cinnamon mint-meta-core mintdrivers sudo ubuntu-minimal The following NEW packages will be installed: libportaudio2:i386 0 upgraded, 1 newly installed, 13 to remove and 17 not upgraded. 1 not fully installed or removed. Need to get 66,5 kB of archives. After this operation, 126 MB disk space will be freed. Do you want to continue? [Y/n] n And then, I pressed "n" because I think it could be dangerous to delete sudo. I no longer want to run this command, because I know another way of installing the software, so no problems there. But it seems that the next time I try to run "apt-get -f install" I will have to say yes and remove this packages, because they remain there to be deleted. Can I stop it from trying to remove that packages? Edit: I ran "apt-get -s -f install" and everything is right now: sudo apt-get -s -f install [sudo] password for lyn: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. And same for "apt-get -f install", so it is solved. I don't know why this is happening but it is solved. Thanks for your time! |
hurm.
no, you don't want to remove sudo. output of Code:
uname -rv |
As I said, I no longer have the problem, it seems solved. But if you are interested in those outputs for some reason:
Code:
uname -rv |
It's worth learning how to do trash cleaning. Bleachbit, cruft, apt-get clean, deborphan, https://raymii.org/s/tutorials/Debia...-commands.html
|
Quote:
you edited your previous post after I wrote my reply. please don't be misleading (i'm sure you didn't do it on purpose). sometimes it's better to edit an existing post, but usually not anymore after someone replied to it already. and please mark your thread solved. |
All times are GMT -5. The time now is 06:54 AM. |