Active Topics

 


Reply
Thread Tools
Posts: 10 | Thanked: 0 times | Joined on Mar 2011
#1
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
 
Posts: 1,048 | Thanked: 1,127 times | Joined on Jan 2010 @ Amsterdam
#2
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?

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.

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.
 
Posts: 10 | Thanked: 0 times | Joined on Mar 2011
#3
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?
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#4
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.
 
Posts: 10 | Thanked: 0 times | Joined on Mar 2011
#5
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?
 
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#6
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
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following User Says Thank You to qwazix For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#7
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!
 
Posts: 10 | Thanked: 0 times | Joined on Mar 2011
#8
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!
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:43.