Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Remove the force yes answer on apt-get

    Reply
    pdsoftware | # 1 | 2012-05-18, 17:41 | Report

    Hi guy,

    How can i remove the force yes option on apt-get in maemo 5?

    I'm using root and i've installed easy ubuntu lxde, do they make any conflicts?

    I wanna remove the forced answer "yes" in the default apt-get install command line in the x-terminal, not in the apt-get of ubuntu chroot where the question appear normally.
    I've use ovviously the -force --yes command in x-terminal some days ago, can i re-configure apt-get to get the question back?

    thx! by

    Edit | Forward | Quote | Quick Reply | Thanks

     
    anthonie | # 2 | 2012-05-19, 09:27 | Report

    Originally Posted by
    How can i remove the force yes option on apt-get in maemo 5?
    Very much the same way as you set the "yes-answer" to be forced always. You set it yourself, right?

    Originally Posted by
    I'm using root and i've installed easy ubuntu lxde, do they make any conflicts?
    Why and how would they (be able to) make any conflicts? You're running Ubuntu in a chroot surrounding.

    Originally Posted by
    I've use ovviously the -force --yes command in x-terminal some days ago, can i re-configure apt-get to get the question back?
    So, you've set your apt-get to force all questions to be answered "yes", not ad hoc, but in a config file? I'd assume that will be /etc/apt/apt.conf.d/00maemo. Have a look there (or paste the content).

    That being said: It's a very bad idea to force apt to answer "yes" to all questions, and depending on whether you have extras-x enabled, it could simply render your device useless if some install goes wrong, forcing you to reflash.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pdsoftware | # 3 | 2012-05-21, 18:52 | Report

    You are right!
    So you are telling me that i can return to the default setting using an other time the --force -yes command?
    This is my 00maemo:
    // Don't open connections in parallel, that brings the little devices
    // down to their knees.
    //
    Acquire::Queue-Mode "access";
    Acquire::https::Verify-Peer "false";
    APT::Install-Recommends 0;


    Is it different from yours?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    peterleinchen | # 4 | 2012-05-21, 19:22 | Report

    No, your 00maemo is still original.

    So what are you asking for.
    Did you use the one-time command line option of apt-get?
    Then it is only valid for that specific command. And you do not need to do anything.


    If you are able to read german, this is part of the man page:
    Code:
           --force-yes
               »Ja« erzwingen; Dies ist eine gefährliche Option, die APT veranlasst,
               ohne Nachfrage fortzufahren, wenn es etwas möglicherweise schädliches
               tut. Es sollte nicht benutzt werden, außer in ganz besonderen
               Situationen.  force-yes zu benutzen, kann möglicherweise ihr System
               zerstören! Konfigurationselement: APT::Get::force-yes.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pdsoftware | # 5 | 2012-05-22, 18:28 | Report

    this is an example:

    BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    ~ $ root


    BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    Nokia-N900:~# apt-get remove siggy
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    siggy
    0 upgraded, 0 newly installed, 1 to remove and 14 not upgraded.
    After this operation, 528kB disk space will be freed.
    Do you want to continue [Y/n]? s
    (Reading database ... 32167 files and directories currently installed.)
    Removing siggy ...
    Nokia-N900:~#

    Up here when i use for example the "remove" command it asks "do you want to continue [Y/n]?" (i have to use "s" because i'm italian).
    but when i use th "install" command this is the report:

    BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    ~ $ root


    BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    Nokia-N900:~# apt-get install siggy
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    siggy
    0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
    Need to get 0B/136kB of archives.
    After this operation, 528kB of additional disk space will be used.
    Selecting previously deselected package siggy.
    (Reading database ... 32157 files and directories currently installed.)
    Unpacking siggy (from .../archives/siggy_0.5_armel.deb) ...
    Setting up siggy (0.5) ...
    Nokia-N900:~#

    there are no questions up there... the 00maemo is normal, so i don't know why, maybe the APT::Get::force-yes line is in an other config file?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwazix | # 6 | 2012-05-22, 18:59 | Report

    I have noticed that for small packages apt does not ask, both in maemo and ubuntu. Try to install something bigger with dependencies and see if it asks for confirmation

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwazix For This Useful Post:
    peterleinchen

     
    peterleinchen | # 7 | 2012-05-22, 19:53 | Report

    Exactly.

    And I think also if some dependencies (or system/library upgrades) needs to be installed with this package, you will be asked.

    So absolutely everything is fine here.


    P.S. if you would like to check first, then use the '-s' switch!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pdsoftware | # 8 | 2012-05-23, 17:31 | Report

    I tried install wine and in fact apt-get asks for confirmation. So there'arent problems in my config/apt-get? If you try install siggy like in my example, the question appears?

    Thanx all!

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout