Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Problems when I update my openSUSE 13.1

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

    Post Problems when I update my openSUSE 13.1

    When I run:
    Code:
    zypper update

    today. And wait for an hour and a half to download and install about 600M of updates.

    My openSUSE got some error. So sad.

    Such as:

    (1) when I type java in terminal, it shows:
    Code:
    linux-cjel:/etc/alternatives # java
     If 'java' is not a typo you can use command-not-found to lookup the package that contains it, like this:
         cnf java

    and when I try to install it:
    Code:
    linux-cjel:/usr/lib/jvm/jre-1.7.0-openjdk/bin # zypper in java-1_7_0-openjdk-devel
     Loading repository data...
     Reading installed packages...
     'java-1_7_0-openjdk-devel' is already installed.
     No update candidate for 'java-1_7_0-openjdk-devel-1.7.0.6-24.13.5.i586'. The highest available version is already installed.
     Resolving package dependencies...
     
    
     Nothing to do.


    (2) When I open LibreOffice and there appeared a window showing:
    Code:
    LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - LibreOffice – Advanced.

    And I try to find the jre directory:
    Code:
    /usr/share/javadoc/java-1.7.0-openjdk/jre


    And set it in LibreOffice, However, it shows that:

    Code:
    The folder you selected does not contain a Java runtime environment.
     Please select a different folder.



    I regret to update my system... Who can help me and How can I resume my system.


    This is my system information now:
    Code:
    linux-cjel:~ # uname -a
     Linux linux-cjel.site 3.11.10-17-desktop #1 SMP PREEMPT Mon Jun 16 15:28:13 UTC 2014 (fba7c1f) i686 i686 i386 GNU/Linux

    Maybe there are some other problems that I didn't find.
    Shoudn't we update our system? I need your help. Thank you very much.



















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

    Default Re: Problems when I update my openSUSE 13.1

    On 2014-07-10 13:16, snowsun wrote:
    >
    > When I run:
    >
    > Code:
    > --------------------
    >
    > zypper update
    >
    >
    > --------------------
    >
    > today. And wait for an hour and a half to download and install
    > about 600M of updates.



    For the info to be complete, we also need the repo list. Better "zypper lr --details".


    > and when I try to install it:
    >
    > Code:
    > --------------------
    >
    > linux-cjel:/usr/lib/jvm/jre-1.7.0-openjdk/bin # zypper in java-1_7_0-openjdk-devel
    > Loading repository data...
    > Reading installed packages...
    > 'java-1_7_0-openjdk-devel' is already installed.
    > No update candidate for 'java-1_7_0-openjdk-devel-1.7.0.6-24.13.5.i586'. The highest available version is already installed.
    > Resolving package dependencies...
    >
    >
    > Nothing to do.
    >
    >
    > --------------------



    But that's the JDK, not the JRE. You need the later.



    > (2) When I open LibreOffice and there appeared a window showing:


    And LO complains about no JRE or defective.



    > And I try to find the jre directory:
    >
    > Code:
    > --------------------
    >
    > /usr/share/javadoc/java-1.7.0-openjdk/jre
    >
    >
    > --------------------



    Have a look at this directory:


    Code:
    cer@Telcontar:~> l /usr/java
    total 12
    drwxr-xr-x  5 root root   87 Jul  7 11:24 ./
    drwxr-xr-x 17 root root 4096 May  7 22:51 ../
    lrwxrwxrwx  1 root root   16 Aug 21  2012 default -> /usr/java/latest/
    drwxr-xr-x  8 root root 4096 Jun  9 14:42 jdk1.7.0_60/
    drwxr-xr-x  3 root root   16 May 24  2013 jre1.7.0_17/
    drwxr-xr-x  6 root root 4096 Jun  9 14:42 jre1.7.0_60/
    lrwxrwxrwx  1 root root   21 Jul  7 11:24 latest -> /usr/java/jdk1.7.0_60/
    cer@Telcontar:~>

    The problem above is that "latest" is pointing to the JDK. When both the JRE and the JDK are installed, you get that.
    And if you manually change the link to the JRE again, which you must, it is undone on every update.

    So change the link. And keep changing it, till we learn how to make it stick.

    --
    Cheers / Saludos,

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

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

    Default Re: Problems when I update my openSUSE 13.1

    For the info to be complete, we also need the repo list. Better "zypper lr --details".
    This is what I got:
    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-Non-Oss-sohu-mirror        | openSUSE-13.1-Non-Oss-sohu-mirror        | Yes     | Yes     |   99     | yast2  | http://mirrors.sohu.com/opensuse/distribution/13.1/repo/non-oss/                    |         
      5 | openSUSE-13.1-Oss-sohu-mirror            | openSUSE-13.1-Oss-sohu-mirror            | Yes     | Yes     |   99     | yast2  | http://mirrors.sohu.com/opensuse/distribution/13.1/repo/oss/                        |         
      6 | openSUSE-13.1-Update-Non-Oss-sohu-mirror | openSUSE-13.1-Update-Non-Oss-sohu-mirror | Yes     | Yes     |   99     | rpm-md | http://mirrors.sohu.com/opensuse/update/13.1-non-oss/                               |         
      7 | openSUSE-13.1-Update-sohu-mirror         | openSUSE-13.1-Update-sohu-mirror         | No      | Yes     |   99     | rpm-md | http://mirrors.sohu.com/opensuse/update/13.1/                                       |         
      8 | openSUSE:13.1:Update                     | openSUSE:13.1:Update                     | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                           |         
      9 | packman                                  | packman                                  | No      | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman/suse/13.1/                                     |         
     10 | repo-debug                               | openSUSE-13.1-Debug                      | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.1/repo/oss/                      |         
     11 | repo-debug-update                        | openSUSE-13.1-Update-Debug               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1/                                     |         
     12 | 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/                             |         
     13 | repo-non-oss                             | openSUSE-13.1-Non-Oss                    | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/non-oss/                        |         
     14 | repo-oss                                 | openSUSE-13.1-Oss                        | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.1/repo/oss/                            |         
     15 | repo-source                              | openSUSE-13.1-Source                     | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.1/repo/oss/                     |         
     16 | repo-update                              | openSUSE-13.1-Update                     | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                           |         
     17 | repo-update-non-oss                      | openSUSE-13.1-Update-Non-Oss             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1-non-oss/  
    But that's the JDK, not the JRE. You need the later.

    And LO complains about no JRE or defective.


    Have a look at this directory:


    Code:
    cer@Telcontar:~> l /usr/java
    total 12
    drwxr-xr-x  5 root root   87 Jul  7 11:24 ./
    drwxr-xr-x 17 root root 4096 May  7 22:51 ../
    lrwxrwxrwx  1 root root   16 Aug 21  2012 default -> /usr/java/latest/
    drwxr-xr-x  8 root root 4096 Jun  9 14:42 jdk1.7.0_60/
    drwxr-xr-x  3 root root   16 May 24  2013 jre1.7.0_17/
    drwxr-xr-x  6 root root 4096 Jun  9 14:42 jre1.7.0_60/
    lrwxrwxrwx  1 root root   21 Jul  7 11:24 latest -> /usr/java/jdk1.7.0_60/
    cer@Telcontar:~>

    The problem above is that "latest" is pointing to the JDK. When both the JRE and the JDK are installed, you get that.
    And if you manually change the link to the JRE again, which you must, it is undone on every update.

    So change the link. And keep changing it, till we learn how to make it stick.
    Maybe I don't install jre or some other problems? This is what I got:
    Code:
    linux-cjel:~ # ls -l /usr/jav*
     ls: cannot access /usr/jav*: No such file or directory
     linux-cjel:~ # ls -l /usr/bin/jav*
     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 /usr/share/java*
     /usr/share/java:
     svn-javahl.jar
     
    
     /usr/share/javadoc:
     java  java-1.7.0-openjdk
     
    
     /usr/share/javazi:
     Africa      Atlantic   EET      Europe  MET      PST8PDT
     America     Australia  EST      GMT     MST      SystemV
     Antarctica  CET        EST5EDT  HST     MST7MDT  WET
     Asia        CST6CDT    Etc      Indian  Pacific  ZoneInfoMappings


    And how can I install it? and set the path in LO

    Thank you ; )

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

    Default Re: Problems when I update my openSUSE 13.1

    On 2014-07-10 14:36, snowsun wrote:
    >
    >> For the info to be complete, we also need the repo list. Better "zypper
    >> lr --details".

    >
    > This is what I got:


    Well, you see you have some duplicates. You should delete 4, 5, 6 and 7; Or 13 to 17, if that's what you really want.

    This probably does not affect your current problem, but slows down things.


    > Maybe I don't install jre or some other problems? This is
    > what I got:
    >
    > Code:
    > --------------------
    >
    > linux-cjel:~ # ls -l /usr/jav*
    > ls: cannot access /usr/jav*: No such file or directory
    > linux-cjel:~ # ls -l /usr/bin/jav*
    > 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 /usr/share/java*


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



    No, that's a different place. You have to list specifically "/usr/java/". Look at mine:

    Code:
    cer@Telcontar:~> l /usr/java
    total 12
    drwxr-xr-x  5 root root   87 Jul 10 13:52 ./
    drwxr-xr-x 17 root root 4096 May  7 22:51 ../
    lrwxrwxrwx  1 root root   16 Aug 21  2012 default -> /usr/java/latest/
    drwxr-xr-x  8 root root 4096 Jun  9 14:42 jdk1.7.0_60/
    drwxr-xr-x  3 root root   16 May 24  2013 jre1.7.0_17/
    drwxr-xr-x  6 root root 4096 Jun  9 14:42 jre1.7.0_60/
    lrwxrwxrwx  1 root root   11 Jul 10 13:52 latest -> jre1.7.0_60/
    cer@Telcontar:~> l ls -l /usr/bin/jav*
    ls: cannot access ls: No such file or directory
    lrwxrwxrwx 1 root root 22 Aug 21  2012 /usr/bin/java -> /etc/alternatives/java*
    -rwxr-xr-x 1 root root 48 Sep 28  2013 /usr/bin/java2html*
    lrwxrwxrwx 1 root root 27 Apr 25 05:19 /usr/bin/javac -> /usr/java/default/bin/javac
    lrwxrwxrwx 1 root root 29 Apr 25 05:19 /usr/bin/javadoc -> /usr/java/default/bin/javadoc
    lrwxrwxrwx 1 root root 28 Jun 16 02:22 /usr/bin/javaws -> /usr/java/default/bin/javaws*
    cer@Telcontar:~>

    > And how can I install it? and set the path in LO


    First list long "/usr/java/".

    --
    Cheers / Saludos,

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

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

    Default Re: Problems when I update my openSUSE 13.1

    No, that's a different place. You have to list specifically "/usr/java/". Look at mine:

    First list long "/usr/java/".
    Thank you very much.
    This is What I got:

    Code:
    linux-cjel:~ # ls -l /usr/java*
    ls: cannot access /usr/java*: No such file or directory
    linux-cjel:~ # l /usr/java
    ls: cannot access /usr/java: No such file or directory
    linux-cjel:~ # ls -l /usr/bin/jav*
    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
    Maybe I do not have the /usr/java directory.

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

    Default Re: Problems when I update my openSUSE 13.1

    On 2014-07-10 15:26, snowsun wrote:

    > Maybe I do not have the /usr/java directory.


    Ah! Ok, you are right. The "/usr/java/" directory belongs to the Oracle
    implementation. Sorry, I missed that point.

    I will have a look later at another install and comment back. Now I have
    to prepare lunch, I'm getting noises somewhere... ;-)

    --
    Cheers / Saludos,

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

  7. #7
    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 15:26, snowsun wrote:

    > Maybe I do not have the /usr/java directory.


    Ah! Ok, you are right. The "/usr/java/" directory belongs to the Oracle
    implementation. Sorry, I missed that point.

    I will have a look later at another install and comment back. Now I have
    to prepare lunch, I'm getting noises somewhere... ;-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)
    Okay, have a good lunch ;-)
    I am Chinese and this is 10 o'clock at night now. Ha ha...

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

    Default Re: Problems when I update my openSUSE 13.1

    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)

  9. #9

    Default Re: Problems when I update my openSUSE 13.1

    Try to reinstall the package java-1_7_0-openjdk, by either right-clicking on the package in YaST->Software Management and choosing "Update Unconditionally", or by running:
    Code:
    sudo zypper in -f java-1_7_0-openjdk

  10. #10
    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
    Try to reinstall the package java-1_7_0-openjdk, by either right-clicking on the package in YaST->Software Management and choosing "Update Unconditionally", or by running:
    Code:
    sudo zypper in -f java-1_7_0-openjdk
    Thank you ;-)
    However, I got this:
    Code:
       ~->sudo zypper in -f java-1_7_0-openjdk
     root's password:
     Loading repository data...
     Reading installed packages...
     Forcing installation of 'java-1_7_0-openjdk-1.7.0.6-24.13.5.i586' from repository 'openSUSE:13.1:Update'.
     Resolving package dependencies...
     
    
     The following package is going to be reinstalled:
       java-1_7_0-openjdk  
     
    
     1 package to reinstall.
     Overall download size: 211.3 KiB. No additional space will be  
     used or freed after the operation.
     Continue? [y/n/? shows all options] (y): y
     Retrieving package java-1_7_0-openjdk-1.7.0.6-24.13.5.i586
                                  (1/1), 211.3 KiB (493.2 KiB unpacked)
     Retrieving: java-1_7_0-openjdk-1.7.0.6-24.13.5[done (182.0 KiB/s)]
     (1/1) Installing: java-1_7_0-openjdk-1.7.0.6-24.13.5 .......[done]
     ~->java
     If 'java' is not a typo you can use command-not-found to lookup the package that contains it, like this:
         cnf java
    It shows that java is not a valid command.. I do not know why.

Page 1 of 2 12 LastLast

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
  •