I cant use zypper or yast2

Hi folks,
I finished the instalation of the OpenSuse right now.
And I cant install no one program and package.
When I try update the system, for try solved this problem, happens this:

linux-9nxu:/ # zypper update
Retrieving repository 'PK_TMP_DIR' metadata ..................................................................[done]
Loading repository data...
Reading installed packages...

And no exit this message.
I try to use Yast and no sucess too.
Someone help?

Hi,

Can you run zypper repos as root and show us the output? It should list your configured repositories. Furthermore, do you known the exit status of zypper when zypper update it fails? You can kown it with the following command:


yourBuggyCommand
echo $?

By the way, what is your openSUSE version?

linux-9nxu:/ # zypper repos
#  | Alias                     | Name                               | Enabled | Refresh
---+---------------------------+------------------------------------+---------+--------
 1 | PK_TMP_DIR                | PK_TMP_DIR                         | Yes     | Yes    
 2 | openSUSE-12.3-1.7         | openSUSE-12.3-1.7                  | No      | No     
 3 | repo-debug                | openSUSE-12.3-Debug                | No      | Yes    
 4 | repo-debug-update         | openSUSE-12.3-Update-Debug         | No      | Yes    
 5 | repo-debug-update-non-oss | openSUSE-12.3-Update-Debug-Non-Oss | No      | Yes    
 6 | repo-non-oss              | openSUSE-12.3-Non-Oss              | Yes     | Yes    
 7 | repo-oss                  | openSUSE-12.3-Oss                  | Yes     | Yes    
 8 | repo-source               | openSUSE-12.3-Source               | No      | Yes    
 9 | repo-update               | openSUSE-12.3-Update               | Yes     | Yes    
10 | repo-update-non-oss       | openSUSE-12.3-Update-Non-Oss       | Yes     | Yes

Version 12.3

It seems that you need to remove the PK_TMP_DIR repository. Have you used One-Clik-Install? After One-Click-Install you should remove temporary repositories because they are created in the /tmp directory and when the /tmp is flushed, the repository path leads nowhere.

You can delete the PK_TMP_DIR repository from YaST, or with the following command:


#zypper removerepo PK_TMP_DIR

You should also clean all repositories cache and do a refresh using:


#zypper clean --all
#zypper refresh

I did everything you said. But still dont work…

linux-9nxu:/ # zypper removerepo PK_TMP_DIR
Removing repository 'PK_TMP_DIR' .............................................................................[done]
Repository 'PK_TMP_DIR' has been removed.
linux-9nxu:/ # zypper clean --all
All repositories have been cleaned up.
linux-9nxu:/ # zypper refresh
Retrieving repository 'openSUSE-12.3-Non-Oss' metadata .......................................................[done]
Building repository 'openSUSE-12.3-Non-Oss' cache ............................................................[done]
Retrieving repository 'openSUSE-12.3-Oss' metadata ...........................................................[done]
Building repository 'openSUSE-12.3-Oss' cache ................................................................[done]
Retrieving repository 'openSUSE-12.3-Update' metadata ........................................................[done]
Building repository 'openSUSE-12.3-Update' cache .............................................................[done]
Retrieving repository 'openSUSE-12.3-Update-Non-Oss' metadata ................................................[done]
Building repository 'openSUSE-12.3-Update-Non-Oss' cache .....................................................[done]
All repositories have been refreshed.
linux-9nxu:/ # zypper install htop
Loading repository data...
Reading installed packages...

When you run the the command try adding sudo as you must be root to install system applications:

sudo zypper install htop

When you post the results, put everything up so we can see what it says.

For help with using Zypper, have a look here:

Zypper Command - Zypper Package Management Menu System

Thank You,

The process stop in “Reading installed packages…”

frazao@linux-9nxu:/> su
Password: 
linux-9nxu:/ # zypper install htop
Loading repository data...
Reading installed packages...

Hum,

So it wasn’t PK_TMP_DIR. My bad :shame:.

In your first post you said that it was a fresh install of openSUSE. In you last post, zypper doesn’t seem to exist abnormally but to hang. Am I right?

You must know that during an openSUSE installation, from my experience, a relatively huge pack of dependencies is created in order to install such things as Adobe Flash Player automatically at the first update or software install. This may make zypper to hang (again from my experience). Have you done this update already?

I suggest that you run a verbose zypper update:


#zypper -vv update 

We here use -v option twice in order to increase verbosity. If zypper update hangs, you should let him a chance to do its job.

With root:

linux-9nxu:/ # zypper -vv update
Verbosity: 2
Initializing Target
Checking whether to refresh metadata for SuSE
Checking whether to refresh metadata for VLC
Checking whether to refresh metadata for openSUSE-12.3-Non-Oss
Retrieving: http://download.opensuse.org/distribution/12.3/repo/non-oss/content ..............................[done]
Retrieving: http://download.opensuse.org/distribution/12.3/repo/non-oss/media.1/media ........................[done]
Checking whether to refresh metadata for openSUSE-12.3-Oss
Retrieving: http://download.opensuse.org/distribution/12.3/repo/oss/content ..................................[done]
Retrieving: http://download.opensuse.org/distribution/12.3/repo/oss/media.1/media ............................[done]
Checking whether to refresh metadata for openSUSE-12.3-Update
Retrieving: http://download.opensuse.org/update/12.3/repodata/repomd.xml .....................................[done]
Checking whether to refresh metadata for openSUSE-12.3-Update-Non-Oss
Retrieving: http://download.opensuse.org/update/12.3-non-oss/repodata/repomd.xml .............................[done]
Loading repository data...
Reading installed packages...
Force resolution: No

And stop…

By “stop”, do you mean zypper returns to the command prompt or is occupied/hanging? This is an important difference.

occupied/hanging

On 2013-07-06 02:46, rafaelfrazao wrote:
>
> The process stop in “Reading installed packages…”
>
>
> Code:
> --------------------
> frazao@linux-9nxu:/> su
> Password:
> linux-9nxu:/ # zypper install htop
> Loading repository data…
> Reading installed packages…
> --------------------

Just a comment, and probably will solve nothing this time; instead of
plain “su”, use “su -”, with a dash.

This is a freshly installed system, right?

Did zypper work right for some time, then started failing, or did it
always fail? In the first case, do you remember what you installed
before it failed? or what you did?

from the presence of that ‘PK_TMP_DIR’ repo, we assume that you
installed, or tried to, some thing via “one click”. What was that?


Cheers / Saludos,

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

OMG it’s so simple to do I dont know why these guys are confusing you:

I’ll be short, to update type:


1)su
2)password **********(type your password)
3)zypper dup

OR


1)sudo zypper dup
2)password **********(type your password)

like you can see
-dup=download upgrade


To install a program/game you can do it on many ways but two simple ways are:
I. by web site (I recommend this one cause you’ll get also new repositories)

  1. Go to software.opensuse.org: Download openSUSE 12.3
  2. you’ll see there is written “Package Search” below it type the program/game you like to have and press enter
  3. choose your opensuse version
  4. Accept

II. by Yast or more directly install/remove softwere

  1. go to start bar (kick off bar) like in windows
  2. move your cursor to “computer”
  3. clilck on install/remove softwere
    and it will easy from there on but YOU CAN INSTALL ONLY PROGRAMS/GAMES THAT ARE IN YOUR CURRENT REPOSITORIES(and that’s not all event you’ll get message)
not found

!!! SO use as in: “I. by web site (I recommend this one cause you’ll get also new repositories)” !!!

If you have any problem look this video:

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

It’s older one but don’t worry. Still all is done in the same way in opensuse 12.3

Good luck!
If you need anything just ask :slight_smile:

P.S.
For all others: Please dont confuse new users!! >:(

Oh yea, because you typed:


sudo zypper dup

and dup is download upgrade (it will upgrade all your programs that you currently have installed, to the newest available versions so it will last a little longer go make some tea or coffee while waiting)

+ SOMETHING EXTRA ABOUT ZYPPER DON’T NEED TO REED NOT TO CONFUSE YOU!!!

Installing and Removing Software with Zypper

To install a package from registered repositories, use:
zypper install package_name

To remove an installed package, use:
zypper remove package_name


Updating Software with Zypper
zypper update

To update all of these packages, you must specify to install updates of the type package:
zypper update -t package

To update individual packages, simply use the installation command:
zypper install package_name

A list of all new packages available can be obtained with the command
zypper list-updates -t package


Managing Repositories

All installation or update commands of zypper rely on a list of repositories known to zypper. To list all repositories known to the system, use the command
zypper repos

If you want to remove a repository from the list, use the command zypper renamerepo together with the alias of the repository you want to delete. To remove the Main Repository (Non-OSS) from the example, use the following command:
zypper renamerepo Main Repository (Non-OSS)

To add a repository, run
zypper addrepo URI Alias
+ YaST is much simpler it’s graphical and YaST = (Yet another Setup Tool)
so just click’s and little typing :smiley:

Dont want to tell you more:P

Enjoy!rotfl!

linux-9nxu:/home/frazao # zypper dup
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): yes
PackageKit is still running (probably busy).
Try again? [yes/no] (no):

:confused:

I killed the process PackageKit and try again:

linux-9nxu:/home/frazao # zypper dup
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Loading repository data...
Reading installed packages...
Computing distribution upgrade...

And while in “Computing distribution upgrade…”

On 2013-07-06 04:26, Aleksandar30 wrote:
>
> OMG it’s so simple to do I dont know why these guys are confusing you:
>
> I’ll be short, to update type:
>
>
> Code:
> --------------------
>
> 1)su
> 2)password **********(type your password)
> 3)zypper dup
>
> --------------------

Don’t ever do that!

That’s a sure way to break a system.

> For all others: Please dont confuse new users!! >:(

Exactly. YOU are giving wrong advice!


Cheers / Saludos,

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

On 2013-07-06 04:46, Aleksandar30 wrote:
>
> Oh yea, because you typed:
>
>
> Code:
> --------------------
>
> sudo zypper dup
>
> --------------------
>
>
> and dup is download upgrade (it will upgrade all your programs that you

NO. It is Distribution Upgrade, and it is intended solely to upgrade
from one version of the distribution to another. It is NOT the tool for
updating the system normally.

Read the manual:

dist-upgrade (dup) [options]
Perform a distribution upgrade. This command
applies the state of (specified) repositories
onto the system; upgrades (or even downgrades)
installed packages to versions found in reposito-
ries, removes packages that are no longer in the
repositories and pose a dependency problem for
the upgrade, handles package splits and renames,
etc.


Cheers / Saludos,

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

On 2013-07-06 05:26, rafaelfrazao wrote:
>
> I killed the process PackageKit and try again:
>
>
> Code:
> --------------------
> linux-9nxu:/home/frazao # zypper dup
> Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See ‘man zypper’ for more information about this command.
> Loading repository data…
> Reading installed packages…
> Computing distribution upgrade…
>
> --------------------

You should have read the warning in that text. You are lucky that
“zypper dup” did not work.

> And while in “Computing distribution upgrade…”

Let’s try some other thing.


rpm -Va

(upper case ‘V’, lower case ‘a’)

this does nothing, just a long list of packages; I want to see if it
finds an error.


Cheers / Saludos,

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

linux-9nxu:/home/frazao # rpm -Va
.....U...    /var/cache/cups
S.5....T.  c /etc/maven/maven2-depmap.xml
S.5....T.  c /etc/splashy/config.xml
S.5....T.    /usr/share/fonts-config/conf.avail/17-suse-bitmaps.conf
missing     /var/cache/man/en
missing     /var/cache/man/et
missing     /var/cache/man/fi
missing     /var/cache/man/ga
missing     /var/cache/man/is
missing     /var/cache/man/ko
missing     /var/cache/man/local/ca
missing     /var/cache/man/local/cs
missing     /var/cache/man/local/da
missing     /var/cache/man/local/de
missing     /var/cache/man/local/en
missing     /var/cache/man/local/es
missing     /var/cache/man/local/et
missing     /var/cache/man/local/fi
missing     /var/cache/man/local/fr
missing     /var/cache/man/local/ga
missing     /var/cache/man/local/hu
missing     /var/cache/man/local/is
missing     /var/cache/man/local/it
missing     /var/cache/man/local/ja
missing     /var/cache/man/local/ko
missing     /var/cache/man/local/nl
missing     /var/cache/man/local/no
missing     /var/cache/man/local/pl
missing     /var/cache/man/local/pt
missing     /var/cache/man/local/ru
missing     /var/cache/man/local/sk
missing     /var/cache/man/local/sr
missing     /var/cache/man/local/sv
missing     /var/cache/man/local/uk
missing     /var/cache/man/no
missing     /var/cache/man/sr
missing     /var/cache/man/uk
.M.......    /etc/cups
.M.......    /sys
.M.......    /var/lock
S.5....T.  c /etc/plymouth/plymouthd.conf
.......T.    /usr/lib64/gconv/gconv-modules.cache
....L....    /usr/lib64/liblapack.so.3
S.5....T.  c /etc/sysconfig/SuSEfirewall2
.......T.  c /usr/share/fonts/100dpi/fonts.dir
S.5....T.  c /usr/share/fonts/Speedo/fonts.dir
S.5....T.  c /usr/share/fonts/Speedo/fonts.scale
S.5....T.  c /usr/share/fonts/Type1/fonts.dir
S.5....T.  c /usr/share/fonts/Type1/fonts.scale
.......T.  c /usr/share/fonts/cyrillic/fonts.dir
S.5....T.  c /usr/share/fonts/truetype/fonts.dir
S.5....T.  c /usr/share/fonts/truetype/fonts.scale
/usr/bin/wodim: cannot verify root:root 0755 - not listed in /etc/permissions
....L....  c /etc/pam.d/common-account
....L....  c /etc/pam.d/common-auth
....L....  c /etc/pam.d/common-password
....L....  c /etc/pam.d/common-session
......G..  c /etc/mysqlaccess.conf
..5....T.  c /usr/share/kde4/config/kdm/kdmrc
S.5....T.  c /etc/sane.d/dll.conf
S.5....T.  c /etc/postfix/main.cf
S.5....T.  c /etc/postfix/master.cf
.....U...    /var/spool/postfix
....L....    /usr/lib64/libblas.so.3
S.5....T.  c /etc/login.defs
S.5....T.  c /etc/xinetd.d/vnc
.......T.  c /etc/YaST2/control.xml
missing     /var/cache/libx11/compose/l4_030_313cb605_00280cc0
S.5....T.  c /usr/share/fonts/encodings/encodings.dir
S.5....T.  c /usr/share/fonts/misc/fonts.dir
S.5....T.  c /etc/pulse/client.conf
SM5....T.  c /etc/default/grub