Mailinglist Archive: opensuse (1213 mails)

< Previous Next >
[opensuse] zypper: sudo vs su
Dear all,

 I used to run a script
 sudo zypper ref
 sudo zypper lu
 echo "ready"
 sudo zypper up

 to install updates; recently, that led to "permission denied" errors (see
 below) that could only be avoided by becomin root and then calling zypper.
 What is the reason? And isn't it generally recommended to use sudo instead
 of su?

 Thanks for your input.
 regards
 Geza

 The errors looked like:

 Retrieving repository 'openSUSE Current OSS' metadata [\]
 Permission to access '
 http://download.opensuse.org/distribution/openSUSE-current/repo/oss/media.1/media'
 denied.

 Abort, retry, ignore? [a/r/i/?] (a): a
 Retrieving repository 'openSUSE Current OSS' metadata [error]
 Repository 'openSUSE Current OSS' is invalid.
 [|] Valid metadata not found at specified URL(s)
 Please check if the URIs defined for this repository are pointing to a
 valid repository.
 Skipping repository 'openSUSE Current OSS' because of the above error.

 I removed the repositories and added them again, deleted the cache, did
 zypper clean etc, the error persisted (for all repositories); only when
 followin a suggestion in an old forum thread I became root and started
 zypper then, everything works fine again.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >