I cant use zypper or yast2

On 2013-07-06 15:26, rafaelfrazao wrote:
>
> Code:
> --------------------
> linux-9nxu:/home/frazao # rpm -Va
> …U… /var/cache/cups

> --------------------

No, the problem I expected did not happen.
I’m baffled, I don’t know what is wrong with your system.

Try this:


rpm -q -a --queryformat "%{INSTALLTIME}	%{INSTALLTIME:day} \
%{BUILDTIME:day} %-30{NAME}	%15{VERSION}-%-7{RELEASE}	%{arch} \
%25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}
"   | sort |
cut --fields="2-" | tee rpmlist | egrep -v "openSUSE.12\.3" | less -S

it produces a list of packages not for openSUSE 12.3


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

For the record, this is not correct.

renamerepo will, surprisingly, rename the repository alias. You can also use nr instead of renamerepo.

Currently, the usage is;

zypper renamerepo <alias|repo number|URI> <new alias>

For example, the following command would rename the repo-oss repository to free-stuff[FONT=arial];[/FONT]

zypper renamerepo repo-oss free-stuff

To remove a repository you want the command removerepor (or rr), which has the behaviour Aleksandar described.

For example, to remove the repo-oss repository you would just do;

zypper removerepo repo-oss

All this information and a lot more can be found here

Could you try running the command

ping -c 5 download.opensuse.org

and show the output?

Wed Mar 06 2013 Tue May 04 2010 gpg-pubkey                             307e3d54-4be01a65        (none)                    (none)SuSE Package Signing Key <build@suse.de> == (none) (none)
Wed Mar 06 2013 Wed May 05 2010 gpg-pubkey                             3dbdc284-4be1884d        (none)                    (none)openSUSE Project Signing Key <opensuse@opensuse.org> == (none) (
Fri Jul 05 2013 Mon Nov 07 2011 gpg-pubkey                             c8da93d2-4eb7ace1        (none)                    (none)Dominique Leuenberger (VLC openSUSE Repository) <dominique-vlc.s

On 2013-07-06 16:06, alexyz h wrote:
>
> Could you try running the command
>
>
> Code:
> --------------------
> ping -c 5 download.opensuse.org
> --------------------

He did a zypper refresh on a previous post, so network should not be the
problem.

Baffling… :frowning:


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2013-07-06 16:06, rafaelfrazao wrote:

> Code:
> --------------------
> Wed Mar 06 2013 Tue May 04 2010 gpg-pubkey 307e3d54-4be01a65 (none) (none)SuSE Package Signing Key <build@suse.de> == (none) (none)
> Wed Mar 06 2013 Wed May 05 2010 gpg-pubkey 3dbdc284-4be1884d (none) (none)openSUSE Project Signing Key <opensuse@opensuse.org> == (none) (
> Fri Jul 05 2013 Mon Nov 07 2011 gpg-pubkey c8da93d2-4eb7ace1 (none) (none)Dominique Leuenberger (VLC openSUSE Repository) <dominique-vlc.s
> --------------------

Sigh… nothing wrong there.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I’m tired. I reinstalled the system.
Now, I am trying execute the zypper update after the reinstallation.
And appears this message:

I’m root ok?

linux-qub9:/home/frazao # zypper update
PackageKit is blocking zypper. This happens if you have an updater applet or other software management application using PackageKit running.
Tell PackageKit to quit? [yes/no] (no):

What I make?

This is normal to occur. Just command Zypper to tell PackageKit to quit by answering yes. Sometimes you need to do it twice. The auto update just uses the same backend and both can’t use it at the same time. Its OK to let Zypper tell PackageKit to quit.

Thank You,

I think your problem with zypper, rafaelfrazao, is only that your system is occupied resolving package dependencies for a huge update. Automatic updates are made by pakagekit, which blocks zypper when doing so.

My recommendations, as you have made a fresh install are: awnser “no” to zypper when is asks you if it should tell PackageKit to quit and be patient! Apper will soon notify you that you have updates to review.

EDIT

  • I just saw jdmcdaniel3 post. It is contrary to mine, but means the same thing at the end. Don’t forget to be patient when zypper or packagekit is resolving dependancies for a fresh installed system!

I am having the same problems on my system.

Fresh install of OpenSuSE 12.3 x86_64 on a Dell Latitude E6400. 8GB RAM.

After the initial install, I ran the “Online Update” and it downloaded and installed about 1,000 updates.

After that was finished, and I rebooted, I used zypper to install VirtualBox (zypper install virtualbox) and it completed successfully.

When I tried to use the Software Installer to install Xen, the install screen showed progress, then it hung.
I let that sit overnight and it never completed.

This morning, after 2 reboots, I found this thread and ran each and every command to try to clear it.

Nothing helped.

At this point, zypper is HUNG at the “Reading installed packages…” point for the last 15 min. I can kill it using ps & the kill -9.

The “rpm -Va” completed. There are a lot of “missing /var/cache/ blah blah” files, but it completed with no errors.

The “top” screen shows zypper running under the root user with 99.7% CPU and 0.8% memory. The system is running “load average 1.10, 1.53, 1.68” - this is higher than expected.

I found the problem (for me).

Right after I posted this, I checked the GUI “Software Repositories”, <Configure Software Repositories".

There is a list of 10 repos. The 1st one on the list is “openSUSE-12.3-1.7” with a URL of “cd:///?devices=/dev/disk/by-id/ata-HL-DT-ST_DVD+_-RW_GSA-U20N_K0Z8C314226,/dev/sr0 Category: YaST”

It was still enabled (there is a check in the “enabled” column for this repo).

After the initial install, I know I left the DVD in the drive. And with the DVD was still in the drive, the Online Update and the “zypper install virtualbox” worked fine.

Then, at some point, I ejected the DVD. And then zypper started hanging at the “Reading installed packages” line.

I unchecked the “Enabled” for this repo and now “zypper update” works fine.

I am now running the “YaST Control Center” install of Xen, and it is running smoothly and no hanging / problems

On 2013-07-06 19:36, ticedoff8 wrote:

> I am having the same problems on my system.

Another one?

> The “top” screen shows zypper running under the root user with 99.7%
> CPU and 0.8% memory. The system is running “load average 1.10, 1.53,
> 1.68” - this is higher than expected.

If two people have a similar problem, there must be a bug.

You could, perhaps, in a terminal, do:


su -
mkdir somedir
cd somedir
strace -f -ff -tt -T -o zypper.strace zypper OPTIONS

when you eventually kill it, have a look at the trace file(s) created
and see if you can find something of interest, what is it doing. If
there is, well, create a bugzilla and attach those files.

(there is strace and ltrace; I don’t know which would be more useful
here; you could try both.)


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2013-07-06 19:56, ticedoff8 wrote:

> Then, at some point, I ejected the DVD. And then zypper started hanging
> at the “Reading installed packages” line.

That should not happen. And rafaelfrazao had it disabled.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

listen look at this video: around 21:00

Install and configure openSUSE 11.4 ( Fix wifi, install codecs, and Video Drivers ) - YouTube

I and five of my friends are doing first update of system like that and never had any problem.
But you know 100 people I guess 100 opinions and 100 ways…

zypper dup
  1. is distribution upgrade (right) but it CAN NOT damage your system cause it will just make your distribution correlated to your current repositories

  2. Yes it can be used to upgrade system version but you need to change all repo the new version of the distribution…
    https://en.opensuse.org/SDB:System_upgrade

!!!IF you didin’t do this it will just download and install the newest versions!!!

This is WORKING for me!!! At least in worst case 50 more people if not more as you can see by youtube…
So that’s all !!!:sarcastic:

God save me from forums so many ******s with no life! rotfl!

It depends on how well you keep repo discipline. If you have any non standard repos active (even with update off) you can ruin your system.

You should only use dup if you are moving between versions. Never use it to update or patch.

And we really don’t want naive new users doing this. Just doing a single single click install can add additional repos and if you don’t understand repos they may sit active for a long time and a DUP out of them could break stuff.

On 07/06/2013 09:16 PM, Aleksandar30 wrote:
> Install and configure openSUSE 11.4

hey! the video is WRONG for a new person…

please stop instructing folks to do it the most dangerous way possible.


dd

On 2013-07-06 21:16, Aleksandar30 wrote:
>
> listen look at this video: around 21:00
> -------------------------------------------
> ‘Install and configure openSUSE 11.4 ( Fix wifi, install codecs, and
> Video Drivers ) - YouTube’ (http://youtu.be/xGqe7XQLoho)
> -------------------------------------------
> I and five of my friends are doing first update of system like that and
> never had any problem.
> But you know 100 people I guess 100 opinions and 100 ways…
>
>
> Code:
> --------------------
> zypper dup
> --------------------
>
> 1) is distribution upgrade (right) but it CAN NOT damage your system
> cause it will just make your distribution correlated to your current
> repositories

Trust me - and my decades of experience - it can and does damage your
installation.

You can do what you like on your system, but please STOP advising
novices to use “zypper dup” to “update” their system :expressionless:


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Just to clear up a couple things.

dup=distribution upgrade not download upgrade

jcmcdaniel is right. zypper/YaST is being locked up by packagekit. Packagekit annoys me. I usually uninstall it, but it has it’s uses to, like being able to install plugins from the browser. There is a database that both packagekit and zypper use. Packagekit, if I recall correctly, packagekit has a daemon. When zypper/YaST are run it calls upon that database. Even if packagekit is asleep, it still maintains a hold on the database. In my opinion, we should use one or the other. Deffinately not both.

Carlos is absolutely right here. It is unwise and even foolish to advise a n00b to run zypper dup. Even among experienced users it can be problematic. You really need to know packages and conflicts and repositories. If you are unsure on any of those, then save yourself the heartache and just don’t. If you do (and this is just good advise all around), have a backup made before doing it and be ready incase it fails.

For what it is worth Apper in 12.3 is actual not bad here. You still can not run 2 update apps at the same time but you really should not as that would lead to madness :slight_smile:

when booted apper will first check for updates so give it time to do its thing and don’t jump right into doing a zypper up or even any Yast installs since it may take time to connect to the repos and the updating will be locked in the meantime.