Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Problems when I update my openSUSE 13.1

  1. #11
    Join Date
    Jun 2014
    Location
    China
    Posts
    35

    Default Re: Problems when I update my openSUSE 13.1

    Quote Originally Posted by robin_listas View Post

    Ok, looking at a virtual machine here; most of my installs are using the oracle java version.
    This one doesn't; it is 11.4, but the configuration should be valid for 13.1 as well (changing the version numbers, of course):
    Code:
    Eleanor6:~ # java -version
    java version "1.6.0_27"
    OpenJDK Runtime Environment (IcedTea6 1.12.7) (suse-45.1-x86_64)
    OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
    Eleanor6:~ #
    Eleanor6:~ # ls -l /usr/bin/jav*
    lrwxrwxrwx 1 root root 22 Apr 24 19:25 /usr/bin/java -> /etc/alternatives/java
    lrwxrwxrwx 1 root root 24 Apr 24 20:51 /usr/bin/javaws -> /etc/alternatives/javaws
    Eleanor6:~ #
    Eleanor6:~ # l /etc/alternatives/java
    lrwxrwxrwx 1 root root 41 Apr 24 22:37 /etc/alternatives/java -> /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java*
    Eleanor6:~ # l /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java
    -rwxr-xr-x 1 root root 39680 Dec  7  2013 /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java*
    Eleanor6:~ # rpm -qf /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java
    java-1_6_0-openjdk-1.6.0.0_b27.1.12.7-45.1.x86_64
    Eleanor6:~ #
    Eleanor6:~ # rpm -qa | grep -i java
    java-ca-certificates-1-9.1.noarch
    java-1_6_0-openjdk-1.6.0.0_b27.1.12.7-45.1.x86_64
    timezone-java-2014b-30.1.noarch
    Eleanor6:~ #
    Eleanor6:~ # update-alternatives --config java
    
    There is only 1 program which provides java
    (/usr/lib64/jvm/jre-1.6.0-openjdk/bin/java). Nothing to configure.
    Eleanor6:~ # update-alternatives --list java
    /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java
    Eleanor6:~ #

    HTH.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)
    Thanks. ;-)
    This is what I got.
    Code:
       
    linux-cjel:~ # java
     If 'java' is not a typo you can use command-not-found to lookup the package that contains it, like this:
         cnf java
     linux-cjel:~ # java -version
     If 'java' is not a typo you can use command-not-found to lookup the package that contains it, like this:
         cnf java
     linux-cjel:~ # cnf java
     java: command not found 
    Does it because of my software repositories?
    This is some details about zypper:
    Code:
    linux-cjel:~ # zypper lr --details
     #  | Alias                     | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                                 | Service
     ---+---------------------------+------------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------------------------+--------
      1 | ati                       | ati                                | No      | Yes     |   99     | rpm-md | http://geeko.ioda.net/mirror/amd-fglrx/openSUSE_13.1/                               |         
      2 | devel:languages:python    | devel:languages:python             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_13.1/   |         
      3 | openSUSE-13.1-1.10        | openSUSE-13.1-1.10                 | No      | Yes     |   99     | yast2  | hd:///?device=/dev/disk/by-id/scsi-1SanDisk_Cruzer_Blade_2004220483163E91AFDF-part4 |         
      4 | openSUSE:13.1:Update      | openSUSE:13.1:Update               | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                           |         
      5 | packman                   | packman                            | No      | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/13.1/                                     |         
      6 | repo-debug                | openSUSE-13.1-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.1/repo/oss/                      |         
      7 | repo-debug-update         | openSUSE-13.1-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1/                                     |         
      8 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1-non-oss/                             |         
      9 | repo-non-oss              | openSUSE-13.1-Non-Oss              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/non-oss/                        |         
     10 | repo-oss                  | openSUSE-13.1-Oss                  | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/oss/                            |         
     11 | repo-source               | openSUSE-13.1-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.1/repo/oss/                     |         
     12 | repo-update               | openSUSE-13.1-Update               | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                           |         
     13 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1-non-oss/ 


  2. #12

    Default Re: Problems when I update my openSUSE 13.1

    Quote Originally Posted by snowsun View Post
    It shows that java is not a valid command.. I do not know why.
    Sorry, "java" is actually part of the package "java-1_7_0-openjdk-headless", so re-install that one:
    Code:
    sudo zypper in -f java-1_7_0-openjdk-headless
    If that doesn't help either, try to run "sudo update-alternatives --config java" again afterwards.
    Last edited by wolfi323; 10-Jul-2014 at 15:42.

  3. #13
    Join Date
    Jun 2014
    Location
    China
    Posts
    35

    Default Re: Problems when I update my openSUSE 13.1

    Quote Originally Posted by wolfi323 View Post
    Sorry, "java" is actually part of the package "java-1_7_0-openjdk-headless", so re-install that one:
    Code:
    sudo zypper in -f java-1_7_0-openjdk-headless
    If that doesn't help either, try to run "sudo update-alternatives --config java" again afterwards.
    Thank you very much!
    Amazingly, it worked!
    Code:
    linux-cjel:~ # java -version
     java version "1.7.0_51"
     OpenJDK Runtime Environment (IcedTea 2.4.4) (suse-24.13.5-i386)
     OpenJDK Server VM (build 24.45-b08, mixed mode)



    Thank you!


    Besides, shouldn't I install some system updates when I do not know what they are used for?

  4. #14
    Join Date
    Jun 2014
    Location
    China
    Posts
    35

    Default Re: Problems when I update my openSUSE 13.1

    Quote Originally Posted by robin_listas View Post
    On 2014-07-10 16:16, snowsun wrote:

    > Okay, have a good lunch ;-)
    > I am Chinese and this is 10 o'clock at night now. Ha ha...


    Thanks.

    It is late lunch. Sometimes I don't notice the hour... O:-)


    Ok, looking at a virtual machine here; most of my installs are using the oracle java version.
    This one doesn't; it is 11.4, but the configuration should be valid for 13.1 as well (changing the version numbers, of course):


    Code:
    Eleanor6:~ # java -version
    java version "1.6.0_27"
    OpenJDK Runtime Environment (IcedTea6 1.12.7) (suse-45.1-x86_64)
    OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
    Eleanor6:~ #
    Eleanor6:~ # ls -l /usr/bin/jav*
    lrwxrwxrwx 1 root root 22 Apr 24 19:25 /usr/bin/java -> /etc/alternatives/java
    lrwxrwxrwx 1 root root 24 Apr 24 20:51 /usr/bin/javaws -> /etc/alternatives/javaws
    Eleanor6:~ #
    Eleanor6:~ # l /etc/alternatives/java
    lrwxrwxrwx 1 root root 41 Apr 24 22:37 /etc/alternatives/java -> /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java*
    Eleanor6:~ # l /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java
    -rwxr-xr-x 1 root root 39680 Dec  7  2013 /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java*
    Eleanor6:~ # rpm -qf /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java
    java-1_6_0-openjdk-1.6.0.0_b27.1.12.7-45.1.x86_64
    Eleanor6:~ #
    Eleanor6:~ # rpm -qa | grep -i java
    java-ca-certificates-1-9.1.noarch
    java-1_6_0-openjdk-1.6.0.0_b27.1.12.7-45.1.x86_64
    timezone-java-2014b-30.1.noarch
    Eleanor6:~ #
    Eleanor6:~ # update-alternatives --config java
    
    There is only 1 program which provides java
    (/usr/lib64/jvm/jre-1.6.0-openjdk/bin/java). Nothing to configure.
    Eleanor6:~ # update-alternatives --list java
    /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java
    Eleanor6:~ #

    HTH.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)
    By wolfi323's solution, it worked:
    Code:
       
    linux-cjel:~ # java -version
     java version "1.7.0_51"
     OpenJDK Runtime Environment (IcedTea 2.4.4) (suse-24.13.5-i386)
     OpenJDK Server VM (build 24.45-b08, mixed mode)
     linux-cjel:~ # ls -l /usr/bin/java*
     lrwxrwxrwx 1 root root 22 Jun 30 04:03 /usr/bin/java -> /etc/alternatives/java
     lrwxrwxrwx 1 root root 23 Jul  3 18:58 /usr/bin/javac -> /etc/alternatives/javac
     lrwxrwxrwx 1 root root 25 Jul  3 18:58 /usr/bin/javadoc -> /etc/alternatives/javadoc
     lrwxrwxrwx 1 root root 23 Jul  3 18:58 /usr/bin/javah -> /etc/alternatives/javah
     lrwxrwxrwx 1 root root 23 Jul  3 18:58 /usr/bin/javap -> /etc/alternatives/javap
     lrwxrwxrwx 1 root root 24 Jun 30 04:05 /usr/bin/javaws -> /etc/alternatives/javaws
     linux-cjel:~ # ls /etc/alternatives/java
     /etc/alternatives/java
     linux-cjel:~ # rpm -qa | grep -i java
     java-1_7_0-openjdk-javadoc-1.7.0.6-24.13.5.i586
     java-1_7_0-openjdk-devel-1.7.0.6-24.13.5.i586
     libjavascriptcoregtk-1_0-0-2.2.2-4.3.i586
     java-1_7_0-openjdk-headless-1.7.0.6-24.13.5.i586
     java-1_7_0-openjdk-1.7.0.6-24.13.5.i586
     java-1_7_0-openjdk-demo-1.7.0.6-24.13.5.i586
     libjavascriptcoregtk-3_0-0-2.2.2-4.3.i586
     timezone-java-2013h-1.1.noarch
     linux-cjel:~ # update-alternatives --config java
     There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
     Nothing to configure.
     linux-cjel:~ # update-alternatives --list java
     /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
    Thank you very much!

  5. #15
    Join Date
    Jun 2014
    Location
    China
    Posts
    35

    Default Re: Problems when I update my openSUSE 13.1

    Quote Originally Posted by wolfi323 View Post
    Sorry, "java" is actually part of the package "java-1_7_0-openjdk-headless", so re-install that one:
    Code:
    sudo zypper in -f java-1_7_0-openjdk-headless
    If that doesn't help either, try to run "sudo update-alternatives --config java" again afterwards.
    Besides, Why this problem occurs? Does it because the update uninstall java or others? How can I avoid this kind of problem in future? Thank you.

  6. #16
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Problems when I update my openSUSE 13.1

    On 2014-07-11 01:36, snowsun wrote:

    > By wolfi323's solution, it worked:
    >
    > Code:
    > --------------------


    > linux-cjel:~ # update-alternatives --config java
    > There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
    > Nothing to configure.
    > linux-cjel:~ # update-alternatives --list java
    > /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
    >
    > --------------------


    That command was also in my post, you did not get that far down in the list ;-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  7. #17
    Join Date
    Jun 2014
    Location
    China
    Posts
    35

    Default Re: Problems when I update my openSUSE 13.1

    Quote Originally Posted by robin_listas View Post
    On 2014-07-11 01:36, snowsun wrote:

    > By wolfi323's solution, it worked:
    >
    > Code:
    > --------------------


    > linux-cjel:~ # update-alternatives --config java
    > There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
    > Nothing to configure.
    > linux-cjel:~ # update-alternatives --list java
    > /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
    >
    > --------------------


    That command was also in my post, you did not get that far down in the list ;-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)
    I have noticed that. I mean that, after I try this command :
    Code:
    zypper in -f java-1_7_0-openjdk-headless
    to reinstall java can I have those results above.
    Thank you all the same ;-)

  8. #18
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Problems when I update my openSUSE 13.1

    On 2014-07-11 08:06, snowsun wrote:

    > I have noticed that. I mean that, after I try this command :
    >
    > Code:
    > --------------------
    > zypper in -f java-1_7_0-openjdk-headless
    > --------------------
    >
    > to reinstall java can I have those results above.


    Ah. Then that package was missing? Strange.

    > Thank you all the same ;-)


    Welcome. :-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •