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):
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.
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!
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.
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
> 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)
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
is distribution upgrade (right) but it CAN NOT damage your system cause it will just make your distribution correlated to your current repositories
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 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
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
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
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.