LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo apt-get -y -u dselect-upgrade --force-yes causing to remove VIM (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-apt-get-y-u-dselect-upgrade-force-yes-causing-to-remove-vim-4175505202/)

vicky151 05-16-2014 06:04 AM

sudo apt-get -y -u dselect-upgrade --force-yes causing to remove VIM
 
When I am running command

Code:

sudo apt-get -y -u dselect-upgrade --force-yes.
It is causing VIM to get remove.

I need to understand WHY ?


Before
Code:

sudo apt-get -y -u dselect-upgrade --force-yes.
I am running
Code:

sudo dpkg --set-selections < packages-64.txt'
and in this pakage-64.txt package selection state for VIM is install but it uninstall it.

Also, when I execute sudo apt-get -y -u dselect-upgrade --force-yes it :-

Reading state information...
The following packages will be REMOVED:
acpid* apparmor apport* apport-symptoms* apt-xapian-index byobu cloud-init
cloud-initramfs-growroot cloud-utils command-not-found*
command-not-found

The pakage marked with * are listed to purged in pakage64.txt however the pakage which are not with * are not listed to purged VIM is also appearing without *

so look like the command:-
Code:

sudo apt-get -y -u dselect-upgrade --force-yes
select some packages to remove I need to understand on what grounds and if I dont want any package to get remove how can I control?

evo2 05-16-2014 06:33 AM

Hi,

I strongly recommend not to use --force-yes. From the apt-get man page:
Code:

      --force-yes
          Force yes; this is a dangerous option that will cause apt to continue without
          prompting if it is doing something potentially harmful. It should not be used
          except in very special situations. Using force-yes can potentially destroy your
          system! Configuration Item: APT::Get::force-yes.

Have you tried without this option?

Also, did you do a standard "apt-get update && apt-get upgrade" first?

And finally, what distro are you running and what version?

Evo2.

vicky151 05-16-2014 09:46 AM

Quote:

Originally Posted by evo2 (Post 5171985)
Hi,

I strongly recommend not to use --force-yes. From the apt-get man page:
Code:

      --force-yes
          Force yes; this is a dangerous option that will cause apt to continue without
          prompting if it is doing something potentially harmful. It should not be used
          except in very special situations. Using force-yes can potentially destroy your
          system! Configuration Item: APT::Get::force-yes.

Have you tried without this option?

Also, did you do a standard "apt-get update && apt-get upgrade" first?

And finally, what distro are you running and what version?

Evo2.



1.) I understand that force is not recommended use however I am just building machine as per the list defined in packages-64.txt
NO, I have not tired with this option because I have created the script for it and wanted it to run unattended.


2.) Yes I did update and upgrade as:-

sudo apt-get -V update
sudo apt-get -V -y dist-upgrade --force-yes



3.) Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise


All times are GMT -5. The time now is 08:08 PM.