default answer of zypper --non-interactive

Hi,

I use “zypper --non-interactive in python” (under SLES 10.2, bash script) to install python but get:

Entering non-interactive mode.
Restoring system sources…
Do you want to trust key id A84EDAE89C800ACA, SuSE Package Signing Key <build@suse.de>, fingerprint 79C179B2E1C820C1890F9994A84EDAE89C800ACA [y/n]: n
Do you want to trust key id A84EDAE89C800ACA, SuSE Package Signing Key <build@suse.de>, fingerprint 79C179B2E1C820C1890F9994A84EDAE89C800ACA [y/n]: n
Failed to restore sources

I tried the same command four or five months ago, and the default answer was definitely “y” since I completed the installation successfully. Can anyone explain it and tell me how to set(?) the default answer to “yes” to let me install “python” and other packages? Thanks in advance.

Regards,
Weining

Hi,

sounds like you want a yes-to-everything mode rather than the non-interactive mode you are using; I don’t believe such a mode exists, but you could check:

man zypper

Regards,
Barry.

Perhaps the trick is to install the key manually?

Four or five months ago you probably had the key installed - and the key, or your installation, has changed…

weininghao wrote:

> SLES 10.2, bash

while all answers you get here may be useful, you need to realize
that many (most?) folks here have never run SLES…

and, afaik there is no such thing as SLES 10.2, there is a SLES SP2,
and there is an openSUSE 10.2, but they are VERY different…and, 10.2
hit end of life a couple of years ago…

i know for certain that the zipper commands that most folks here use
are from the 11.x series and will NOT work on my 10.3, so beware who
and where you ask…the BEST place for all SLEx questions is over in
forums.novell.com [well, in my opinion since you pay for the support
it is the only place to ask, but that is your decision.]

you are, however, welcome to hang here, just be carefully (no
disrespect to the previous answerers…yours may be both helpful and
perfect…i do not know a thing about SLES 10, never seen one…ever.)


palladium

palladium wrote:

> there is a SLES SP2,

of course, that should have been: SLES 10 SP2


palladium

Hello all,

thank you very much for your reply and sorry for my late response.

I have thought that I would get the solution soon and give the result here, but it is still going on. Please check the link
](http://forums.novell.com/novell-product-support-forums/suse-linux-enterprise-server-sles/sles-networking/396264-questions-zypper-sles10-sp2-post1907081.html#poststop)
to see some ideas.

palladium,

thank you for your advice. And you are right, I am using SLES 10 sp2 (instead of SLES 10.2).

Best regards,
Weining

Sorry, the link is as following:
questions on zypper (SLES10 sp2) - NOVELL FORUMS

best regards,
Weining

I think this is the option you’re looking for:


--no-gpg-checks