zypper not working :(

Every time I am trying to install something with zypper, I get this sort of errors. :frowning: Solution?


(pluto3)rahul@localhost:~/Projects/Vayana> sudo zypper in libmysqlclient-dev libyaml-dev
root's password:
Retrieving repository 'KDE:KDE3' metadata .............................................................[done]
Building repository 'KDE:KDE3' cache ..................................................................[done]
Retrieving repository 'Tumbleweed' metadata ...........................................................[done]
Building repository 'Tumbleweed' cache ................................................................[done]
Retrieving repository 'X11:Enlightenment:Nightly' metadata ............................................[done]
Building repository 'X11:Enlightenment:Nightly' cache .................................................[done]
Retrieving repository 'X11:windowmanagers' metadata ...................................................[done]
Building repository 'X11:windowmanagers' cache ........................................................[done]
Retrieving repository 'X11:xfce' metadata .............................................................[done]
Building repository 'X11:xfce' cache ..................................................................[done]
Retrieving repository 'filesystems' metadata ..........................................................[done]
Building repository 'filesystems' cache ...............................................................[done]
Retrieving repository 'google-chrome' metadata ........................................................[done]
Building repository 'google-chrome' cache .............................................................[done]
Retrieving repository 'home:Caig' metadata ............................................................[done]
Building repository 'home:Caig' cache .................................................................[done]
Retrieving repository 'home:Strahlex' metadata ........................................................[done]
Building repository 'home:Strahlex' cache .............................................................[done]
Retrieving repository 'home:adra' metadata ............................................................[done]
Building repository 'home:adra' cache .................................................................[done]
Retrieving repository 'home:ecsos' metadata ...........................................................[done]
Building repository 'home:ecsos' cache ................................................................[done]
Retrieving repository 'home:frispete:PyQt' metadata ...................................................[done]
Building repository 'home:frispete:PyQt' cache ........................................................[done]
Retrieving repository 'home:frispete:python' metadata .................................................[done]
Building repository 'home:frispete:python' cache ......................................................[done]
Retrieving repository 'home:lnt-sysadmin:tools' metadata ..............................................[done]
Building repository 'home:lnt-sysadmin:tools' cache ...................................................[done]
Retrieving repository 'kde49' metadata ................................................................[done]
Building repository 'kde49' cache .....................................................................[done]
Retrieving repository 'multimedia:apps' metadata ......................................................[done]
Building repository 'multimedia:apps' cache ...........................................................[done]
Retrieving repository 'openSUSE Current updates' metadata .............................................[done]
Building repository 'openSUSE Current updates' cache ..................................................[done]
Retrieving repository 'openSUSE:Stable_Updates' metadata ..............................................[done]
Building repository 'openSUSE:Stable_Updates' cache ...................................................[done]
Retrieving repository 'openSUSE:Tumbleweed' metadata ..................................................[done]
Building repository 'openSUSE:Tumbleweed' cache .......................................................[done]
Retrieving repository 'openSUSE-12.2-Update' metadata ----------------------------------------------------/]
Download (curl) error for 'http://download.opensuse.org/update/12.2/repodata/repomd.xml':
Error code: Connection failed
Error message: Could not resolve host: download.opensuse.org; Unknown error


Abort, retry, ignore? [a/r/i/?] (a): 

try

zypper clean --all
zypper ref

Thank you for your response. I entered both commands. It took about an hour for the processes to complete. Here is the console log:


(pluto3)rahul@localhost:~/Projects/Vayana> sudo zypper clean --all
root's password:
All repositories have been cleaned up.
(pluto3)rahul@localhost:~/Projects/Vayana> sudo zypper ref
Retrieving repository 'GNOME:Apps' metadata ...........................................................[done]
Building repository 'GNOME:Apps' cache ................................................................[done]
Retrieving repository 'GNOME:Ayatana' metadata ........................................................[done]
Building repository 'GNOME:Ayatana' cache .............................................................[done]
Retrieving repository 'Java:base' metadata ............................................................[done]
Building repository 'Java:base' cache .................................................................[done]
Retrieving repository 'KDE:Extra' metadata ............................................................[done]
Building repository 'KDE:Extra' cache .................................................................[done]
Retrieving repository 'KDE:KDE3' metadata .............................................................[done]
Building repository 'KDE:KDE3' cache ..................................................................[done]
Retrieving repository 'KDE:Release:49' metadata .......................................................[done]
Building repository 'KDE:Release:49' cache ............................................................[done]
Retrieving repository 'KDE:Unstable:Playground' metadata ..............................................[done]
Building repository 'KDE:Unstable:Playground' cache ...................................................[done]
Retrieving repository 'KDE_49' metadata ...............................................................[done]
Building repository 'KDE_49' cache ....................................................................[done]
Retrieving repository 'KDE_Extra' metadata ............................................................[done]
Building repository 'KDE_Extra' cache .................................................................[done]
Retrieving repository 'Oracle VirtualBox openSUSE' metadata ...........................................[done]
Building repository 'Oracle VirtualBox openSUSE' cache ................................................[done]
Retrieving repository 'Packman Repository' metadata ...................................................[done]
Building repository 'Packman Repository' cache ........................................................[done]
Retrieving repository 'Tumbleweed' metadata ...........................................................[done]
Building repository 'Tumbleweed' cache ................................................................[done]
Retrieving repository 'X11:Enlightenment:Nightly' metadata ............................................[done]
Building repository 'X11:Enlightenment:Nightly' cache .................................................[done]
Retrieving repository 'X11:windowmanagers' metadata ...................................................[done]
Building repository 'X11:windowmanagers' cache ........................................................[done]
Retrieving repository 'X11:xfce' metadata .............................................................[done]
Building repository 'X11:xfce' cache ..................................................................[done]
Retrieving repository 'devel:languages:haskell' metadata ..............................................[done]
Building repository 'devel:languages:haskell' cache ...................................................[done]
Retrieving repository 'devel:languages:scala' metadata ................................................[done]
Building repository 'devel:languages:scala' cache .....................................................[done]
Retrieving repository 'filesystems' metadata ..........................................................[done]
Building repository 'filesystems' cache ...............................................................[done]
Retrieving repository 'google-chrome' metadata ........................................................[done]
Building repository 'google-chrome' cache .............................................................[done]
Retrieving repository 'home:Caig' metadata ............................................................[done]
Building repository 'home:Caig' cache .................................................................[done]
Retrieving repository 'home:Strahlex' metadata ........................................................[done]
Building repository 'home:Strahlex' cache .............................................................[done]
Retrieving repository 'home:Xor26' metadata ...........................................................[done]
Building repository 'home:Xor26' cache ................................................................[done]
Retrieving repository 'home:adra' metadata ............................................................[done]
Building repository 'home:adra' cache .................................................................[done]
Retrieving repository 'home:bastianfriedrich' metadata ................................................[done]
Building repository 'home:bastianfriedrich' cache .....................................................[done]
Retrieving repository 'home:cornelisbb' metadata ......................................................[done]
Building repository 'home:cornelisbb' cache ...........................................................[done]
Retrieving repository 'home:damianator' metadata ......................................................[done]
Building repository 'home:damianator' cache ...........................................................[done]
Retrieving repository 'home:ecsos' metadata ...........................................................[done]
Building repository 'home:ecsos' cache ................................................................[done]
Retrieving repository 'home:frispete:PyQt' metadata ...................................................[done]
Building repository 'home:frispete:PyQt' cache ........................................................[done]
Retrieving repository 'home:frispete:python' metadata .................................................[done]
Building repository 'home:frispete:python' cache ......................................................[done]
Retrieving repository 'home:licehunter' metadata ......................................................[done]
Building repository 'home:licehunter' cache ...........................................................[done]
Retrieving repository 'home:lnt-sysadmin:tools' metadata ..............................................[done]
Building repository 'home:lnt-sysadmin:tools' cache ...................................................[done]
Retrieving repository 'home:oliviercalle' metadata ....................................................[done]
Building repository 'home:oliviercalle' cache .........................................................[done]
Retrieving repository 'kde49' metadata ................................................................[done]
Building repository 'kde49' cache .....................................................................[done]
Retrieving repository 'libdvdcss repository' metadata .................................................[done]
Building repository 'libdvdcss repository' cache ......................................................[done]
Retrieving repository 'multimedia:apps' metadata ......................................................[done]
Building repository 'multimedia:apps' cache ...........................................................[done]
Retrieving repository 'multimedia:libs' metadata ......................................................[done]
Building repository 'multimedia:libs' cache ...........................................................[done]
Retrieving repository 'openSUSE Current OSS' metadata .................................................[done]
Building repository 'openSUSE Current OSS' cache ......................................................[done]
Retrieving repository 'openSUSE Current non-OSS' metadata .............................................[done]
Building repository 'openSUSE Current non-OSS' cache ..................................................[done]
Retrieving repository 'openSUSE Current updates' metadata .............................................[done]
Building repository 'openSUSE Current updates' cache ..................................................[done]
Retrieving repository 'openSUSE:Stable_OSS' metadata ..................................................[done]
Building repository 'openSUSE:Stable_OSS' cache .......................................................[done]
Retrieving repository 'openSUSE:Stable_Updates' metadata ..............................................[done]
Building repository 'openSUSE:Stable_Updates' cache ...................................................[done]
Retrieving repository 'openSUSE:Stable_non-OSS' metadata ..............................................[done]
Building repository 'openSUSE:Stable_non-OSS' cache ...................................................[done]
Retrieving repository 'openSUSE:Tumbleweed' metadata ..................................................[done]
Building repository 'openSUSE:Tumbleweed' cache .......................................................[done]
Retrieving repository 'openSUSE-12.2-Non-Oss' metadata ................................................[done]
Building repository 'openSUSE-12.2-Non-Oss' cache .....................................................[done]
Retrieving repository 'openSUSE-12.2-Oss' metadata ....................................................[done]
Building repository 'openSUSE-12.2-Oss' cache .........................................................[done]
Retrieving repository 'openSUSE-12.2-Update' metadata .................................................[done]
Building repository 'openSUSE-12.2-Update' cache ......................................................[done]
Retrieving repository 'openSUSE-12.2-Update-Non-Oss' metadata .........................................[done]
Building repository 'openSUSE-12.2-Update-Non-Oss' cache ..............................................[done]
All repositories have been refreshed.

Now I am trying to install something with zypper in and it still appears to be taking too long for building-retrieving etc steps. It’s been > 15 minutes but it’s just two lines through. :frowning:

caf said use:

> zypper clean --all

but, you used

> (pluto3)rahul@localhost:~/Projects/Vayana> sudo zypper clean --all

see the difference??

try it the correct way:


su -
zypper clean --all

in other words: in openSUSE do not use sudo when root is required.

see http://tinyurl.com/ydbwssh

guessing maybe you have experience in a distro which always uses sudo,
inform yourself:

  1. http://tinyurl.com/ubuntu-to-openSUSE <but do NOT overlook the
    correcting info in post #2>

  2. http://tinyurl.com/Ubuntu-Differences

–
dd

Looking at the repo list
I’m wondering how your system is even working at all

Thank you. This time I executed commands with su -c but the problem persists.

Could you please elaborate on that? What do I need to do get my system back in “healthy” condition?

On 10/22/2012 02:46 PM, missingfaktor wrote:
> Could you please elaborate on that? What do I need to do get my system
> back in “healthy” condition?

read the paragraph beginning with “IMPORTANT” in this single post in a
long long thread specifically designed for folks new to openSUSE:

post: http://tinyurl.com/33qc9vu

thread (in two parts):

http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/new-user-how-faq-read-only/424611-new-users-opensuse-pre-install-general-please-read.html

and

http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/new-user-how-faq-read-only/477124-new-users-opensuse-12-2-pre-installation-please-read.html

then once you have your repos set correctly, do:


zypper clean -a
zypper ref
zypper dup

OH STOP!! i just looked at your repos and it seems you are running
Tumbleweed (before you know how to run openSUSE correctly ???)

so, the correct repo setup for Tumbleweed is not the same as the correct
for openSUSE (which i pointed to above)…

i don’t really know what is correct for Tumbleweed (as i’ve not used it)
and anyway, there is a good reason that Tumbleweed users should ask
their questions in the the Tumbleweed forum only, here
http://tinyurl.com/3ljwanm [and that good reason is so they don’t ask a
Tumbleweed question and get an openSUSE answer which destroys their
system!!!]

–
dd http://tinyurl.com/DD-Caveat

Please post the result of

zypper lr -d

and

zypper ve

Thanks for the links. I only glanced over them (too exhausted for the day).

Yes, I had enabled Tumbleweed when I installed the OS. It was a bad move. I wasn’t expecting this much of trouble. I would disable it, if possible.

Hello. Thank you for your response.

I entered the commands, and I am pasting the output below. The second command gave me the [a/s/r/etc] options for many things. I went on clicking ‘s’ to obtain the full log, but got tired after a few dozen prompts. The following is the output up to the point where I stopped.

Log: rahul@acb70333:~> su - Password: acb70333:~ # zypper lr -d # | Alias - Pastebin.com.

On 10/22/2012 09:11 AM, dd pecked at the keyboard and wrote:
> On 10/22/2012 02:46 PM, missingfaktor wrote:
>


&gt;
&gt; OH STOP!! i just looked at your repos and it seems you are running
&gt; Tumbleweed (before you know how to run openSUSE correctly ???)
&gt;
&gt; so, the correct repo setup for Tumbleweed is not the same as the
&gt; correct for openSUSE (which i pointed to above)...
&gt;
&gt; i don't really know what is correct for Tumbleweed (as i've not used
&gt; it) and anyway, there is a *good* reason that Tumbleweed users should
&gt; ask their questions in the the Tumbleweed forum *only*, here
&gt; http://tinyurl.com/3ljwanm  [and that good reason is so they don't ask
&gt; a Tumbleweed question and get an openSUSE answer which destroys their
&gt; system!!!]
&gt;

If you are going to use Tumbleweed you need to use the following repos:

opensuse-current
tumbleweed
packman-tumbleweed (optional)

The use of *ANY OTHER* repo are prone to creating an unstable install.

For heavens sake!
Re-install, then follow this to the letter if you must use tumbleweed.
http://forums.opensuse.org/content/55-how-upgrade-opensuse-12-x-tumbleweed.html

On 10/22/2012 04:36 PM, missingfaktor wrote:
>
> (http://pastebin.com/R3x6HknK).

that is a very interesting mix!

enabled repos for
11.4 (VirtualBox)
12.1 (Java)
12.2
Tumbleweed (and ‘current’)
KDE3
KDE4.9
KDE:Unstable:Playground
GNOME:/Ayatana/Factory/
13! home repos

seems to be 47 enabled repos (in about the same number of days since
joining the forum!)

i think that is a new all-time-high record number of repos for a still
booting system–amazing!!

i’d suggest a somewhat more studied and less rushed movement next time.

–
dd

Okay, thanks for the information.

If it comes to reinstall, I think I will be better off going back to Ubuntu.

I would appreciate a less condescending tone, but thank you nevertheless.

For what it’s worth, I did not add any repo manually. I have installed a bunch of apps from software.opensuse.org and from YAST software manager, following what seemed most intuitive things to do at the time. I have clicked through the standard Trust-Next-Next-… sequence. I checked the “patterns” for DEs I needed. Etc. Some of these steps might have added those repos.

Maybe ubuntu works well with 52 repos - most of which conflict with each other, I don’t know?

As I clarified in my last post to dd, I did not add any of these repos knowingly.

Say what you will, but I did not ever run into this sort of problem with Ubuntu.

You probably didn’t do that on ubuntu, did you? They tend to have different distro’s for each DE. If you are new to something, keep it simple. Get used to one DE (the one you first chose to install, or choose the one you are most familiar with). Then spend some time to become familiar with openSUSE, before adding any others.

Yeah, Ubuntu would not survive having multiple repositories from different versions. :stuck_out_tongue: That is not how apt works.