LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2014, 07:04 AM   #1
vicky151
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 05-16-2014, 07:33 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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.
 
Old 05-16-2014, 10:46 AM   #3
vicky151
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get problem - need top force remove an application amon Debian 4 10-22-2010 08:02 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 10:37 AM
sudo apt-get upgrade CMXILies Linux - Newbie 3 01-09-2009 08:59 PM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 08:47 AM
apt-get upgrade stopped, how can I remove packages before continuing upgrade? [KIA]aze Linux - Newbie 4 05-31-2007 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration