Strona 1 z 2

Problem z instalacją javy na Debian 7

: 04 stycznia 2014, 22:18
autor: mati0707
Witam,
podczas instalacji java 6, otrzymuję komunikat błędu o treści:

Kod: Zaznacz cały

root@speedhost:~# sudo apt-get install openjdk-6-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjdk-6-jre is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
133 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: error processing libssl1.0.0:amd64 (--configure):
 package libssl1.0.0:amd64 1.0.1e-2+deb7u1 cannot be configured because libssl1.                                                                                        0.0:i386 is at a different version (1.0.1e-2)
dpkg: error processing libgcrypt11:amd64 (--configure):
 package libgcrypt11:amd64 1.5.0-5+deb7u1 cannot be configured because libgcrypt                                                                                        11:i386 is at a different version (1.5.0-5)
dpkg: error processing libgnutls26:amd64 (--configure):
 package libgnutls26:amd64 2.12.20-7 cannot be configured because libgnutls26:i3                                                                                        86 is at a different version (2.12.20-6)
dpkg: error processing libkrb5support0:amd64 (--configure):
 package libkrb5support0:amd64 1.10.1+dfsg-5+deb7u1 cannot be configured because                                                                                         libkrb5support0:i386 is at a different version (1.10.1+dfsg-5)
dpkg: error processing libk5crypto3:amd64 (--configure):
 package libk5crypto3:amd64 1.10.1+dfsg-5+deb7u1 cannot be configured because li                                                                                        bk5crypto3:i386 is at a different version (1.10.1+dfsg-5)
dpkg: error processing libkrb5-3:amd64 (--configure):
 package libkrb5-3:amd64 1.10.1+dfsg-5+deb7u1 cannot be configured because libkr                                                                                        b5-3:i386 is at a different version (1.10.1+dfsg-5)
dpkg: error processing libgssapi-krb5-2:amd64 (--configure):
 package libgssapi-krb5-2:amd64 1.10.1+dfsg-5+deb7u1 cannot be configured becaus                                                                                        e libgssapi-krb5-2:i386 is at a different version (1.10.1+dfsg-5)
dpkg: error processing libsasl2-2:amd64 (--configure):
 package libsasl2-2:amd64 2.1.25.dfsg1-6+deb7u1 cannot be configured because lib                                                                                        sasl2-2:i386 is at a different version (2.1.25.dfsg1-6)
dpkg: error processing libxml2:amd64 (--configure):
 package libxml2:amd64 2.8.0+dfsg1-7+nmu2 cannot be configured because libxml2:i                                                                                        386 is at a different version (2.8.0+dfsg1-7+nmu1)
dpkg: error processing libxcb1:amd64 (--configure):
 package libxcb1:amd64 1.8.1-2+deb7u1 cannot be configured because libxcb1:i386                                                                                         is at a different version (1.8.1-2)
dpkg: error processing libx11-6:amd64 (--configure):
 package libx11-6:amd64 2:1.5.0-1+deb7u1 cannot be configured because libx11-6:i                                                                                        386 is at a different version (2:1.5.0-1)
dpkg: dependency problems prevent configuration of libxpm4:amd64:
 libxpm4:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.

dpkg: error processing libxpm4:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgd2-xpm:amd64:
 libgd2-xpm:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.
 libgd2-xpm:amd64 depends on libxpm4; however:
  Package libxpm4:amd64 is not configured yet.

dpkg: error processing libgd2-xpm:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgphoto2-2:amd64:
 libgphoto2-2:amd64 depends on libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-xpm:amd64 is not configured yet.

dpkg: error processing libgphoto2-2:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libsane:amd64:
 libsane:amd64 depends on libgphoto2-2 (>= 2.4.10.1); however:
  Package libgphoto2-2:amd64 is not configured yet.

dpkg: error processing libsane:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libexpat1:amd64 (--configure):
 package libexpat1:amd64 2.1.0-1+deb7u1 cannot be configured because libexpat1:i                                                                                        386 is at a different version (2.1.0-1)
dpkg: error processing libdbus-1-3:amd64 (--configure):
 package libdbus-1-3:amd64 1.6.8-1+deb7u1 cannot be configured because libdbus-1                                                                                        -3:i386 is at a different version (1.6.8-1)
dpkg: dependency problems prevent configuration of consolekit:
 consolekit depends on libdbus-1-3 (>= 1.0.2); however:
  Package libdbus-1-3:amd64 is not configured yet.
 consolekit depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.

dpkg: error processing consolekit (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of policykit-1:
 policykit-1 depends on libexpat1 (>= 2.0.1); however:
  Package libexpat1:amd64 is not configured yet.
 policykit-1 depends on consolekit; however:
  Package consolekit is not configured yet.

dpkg: error processing policykit-1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of colord:
 colord depends on libsane (>= 1.0.11-3); however:
  Package libsane:amd64 is not configured yet.
 colord depends on policykit-1 (>= 0.103); however:
  Package policykit-1 is not configured yet.

dpkg: error processing colord (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libxcb-render0:amd64 (--configure):
 package libxcb-render0:amd64 1.8.1-2+deb7u1 cannot be configured because libxcb                                                                                        -render0:i386 is at a different version (1.8.1-2)
dpkg: dependency problems prevent configuration of libxcb-shm0:amd64:
 libxcb-shm0:amd64 depends on libxcb1; however:
  Package libxcb1:amd64 is not configured yet.

dpkg: error processing libxcb-shm0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libxrender1:amd64 (--configure):
 package libxrender1:amd64 1:0.9.7-1+deb7u1 cannot be configured because libxren                                                                                        der1:i386 is at a different version (1:0.9.7-1)
dpkg: dependency problems prevent configuration of libcairo2:amd64:
 libcairo2:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.
 libcairo2:amd64 depends on libxcb-render0; however:
  Package libxcb-render0:amd64 is not configured yet.
 libcairo2:amd64 depends on libxcb-shm0; however:
  Package libxcb-shm0:amd64 is not configured yet.
 libcairo2:amd64 depends on libxcb1 (>= 1.6); however:
  Package libxcb1:amd64 is not configured yet.
 libcairo2:amd64 depends on libxrender1; however:
  Package libxrender1:amd64 is not configured yet.

dpkg: error processing libcairo2:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgdk-pixbuf2.0-0:amd64:
 libgdk-pixbuf2.0-0:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.

dpkg: error processing libgdk-pixbuf2.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libcups2:amd64 (--configure):
 package libcups2:amd64 1.5.3-5+deb7u1 cannot be configured because libcups2:i38                                                                                        6 is at a different version (1.5.3-5)
dpkg: dependency problems prevent configuration of libxft2:amd64:
 libxft2:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.
 libxft2:amd64 depends on libxrender1; however:
  Package libxrender1:amd64 is not configured yet.

dpkg: error processing libxft2:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpango1.0-0:amd64:
 libpango1.0-0:amd64 depends on libcairo2 (>= 1.8.10-3); however:
  Package libcairo2:amd64 is not configured yet.
 libpango1.0-0:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.
 libpango1.0-0:amd64 depends on libxft2 (>> 2.1.1); however:
  Package libxft2:amd64 is not configured yet.
 libpango1.0-0:amd64 depends on libxrender1; however:
  Package libxrender1:amd64 is not configured yet.

dpkg: error processing libpango1.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxcomposite1:amd64:
 libxcomposite1:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.

dpkg: error processing libxcomposite1:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libxfixes3:amd64 (--configure):
 package libxfixes3:amd64 1:5.0-4+deb7u1 cannot be configured because libxfixes3                                                                                        :i386 is at a different version (1:5.0-4)
dpkg: error processing libxcursor1:amd64 (--configure):
 package libxcursor1:amd64 1:1.1.13-1+deb7u1 cannot be configured because libxcu                                                                                        rsor1:i386 is at a different version (1:1.1.13-1)
dpkg: dependency problems prevent configuration of libxdamage1:amd64:
 libxdamage1:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.
 libxdamage1:amd64 depends on libxfixes3; however:
  Package libxfixes3:amd64 is not configured yet.

dpkg: error processing libxdamage1:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libxext6:amd64 (--configure):
 package libxext6:amd64 2:1.3.1-2+deb7u1 cannot be configured because libxext6:i                                                                                        386 is at a different version (2:1.3.1-2)
dpkg: error processing libxi6:amd64 (--configure):
 package libxi6:amd64 2:1.6.1-1+deb7u1 cannot be configured because libxi6:i386                                                                                         is at a different version (2:1.6.1-1)
dpkg: error processing libxinerama1:amd64 (--configure):
 package libxinerama1:amd64 2:1.1.2-1+deb7u1 cannot be configured because libxin                                                                                        erama1:i386 is at a different version (2:1.1.2-1)
dpkg: error processing libxrandr2:amd64 (--configure):
 package libxrandr2:amd64 2:1.3.2-2+deb7u1 cannot be configured because libxrand                                                                                        r2:i386 is at a different version (2:1.3.2-2)
dpkg: dependency problems prevent configuration of libgtk2.0-0:amd64:
 libgtk2.0-0:amd64 depends on libcairo2 (>= 1.6.4-6.1); however:
  Package libcairo2:amd64 is not configured yet.
 libgtk2.0-0:amd64 depends on libcups2 (>= 1.4.0); however:
  Package libcups2:amd64 is not configured yet.
 libgtk2.0-0:amd64 depends on libgcrypt11 (>= 1.4.5); however:
  Package libgcrypt11:amd64 is not configured yet.
 libgtk2.0-0:amd64 depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
  Package libgdk-pixbuf2.0-0:amd64 is not configured yet.
 libgtk2.0-0:amd64 depends on libgnutls26 (>= 2.12.17-0); however:
  Package libgnutls26:amd64 is not configured yet.
 libgtk2.0-0:amd64 depends on libgssapi-krb5-2 (>= 1.6.dfsg.2); however:
  Package libgssapi-krb5-2:amd64 is not configured yet.
 libgtk2.0-0:amd64 depends on libk5crypto3 (>= 1.6.dfsg.2); however:
  Package libk5crypto3:amd64 is not configured yet.
 libgtk2.0-0:amd64 depends on libkrb5-3 (>= 1.6.dfsg.2); however:
  Package libkrb5-3:amd64 is not configured yet.
 libgtk2.0-
dpkg: error processing libgtk2.0-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libatk-wrapper-java-jni:amd64                                                                                        :
 libatk-wrapper-java-jni:amd64 depends on libcairo2 (>= 1.2.4); however:
  Package libcairo2:amd64 is not configured yet.
 libatk-wrapper-java-jni:amd64 depends on libgdk-pixbuf2.0-0 (>= 2.22.0); howeve                                                                                        r:
  Package libgdk-pixbuf2.0-0:amd64 is not configured yet.
 libatk-wrapper-java-jni:amd64 depends on libgtk2.0-0 (>= 2.12.0); however:
  Package libgtk2.0-0:amd64 is not configured yet.
 libatk-wrapper-java-jni:amd64 depends on libpango1.0-0 (>= 1.14.0); however:
  Package libpango1.0-0:amd64 is not configured yet.

dpkg: error processing libatk-wrapper-java-jni:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcairo-gobject2:amd64:
 libcairo-gobject2:amd64 depends on libcairo2 (>= 1.10.0); however:
  Package libcairo2:amd64 is not configured yet.

dpkg: error processing libcairo-gobject2:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libgl1-mesa-dri:amd64 (--configure):
 package libgl1-mesa-dri:amd64 8.0.5-4+deb7u2 cannot be configured because libgl                                                                                        1-mesa-dri:i386 is at a different version (8.0.5-4)
dpkg: error processing libglapi-mesa:amd64 (--configure):
 package libglapi-mesa:amd64 8.0.5-4+deb7u2 cannot be configured because libglap                                                                                        i-mesa:i386 is at a different version (8.0.5-4)
dpkg: error processing libx11-xcb1:amd64 (--configure):
 package libx11-xcb1:amd64 2:1.5.0-1+deb7u1 cannot be configured because libx11-                                                                                        xcb1:i386 is at a different version (2:1.5.0-1)
dpkg: error processing libxcb-glx0:amd64 (--configure):
 package libxcb-glx0:amd64 1.8.1-2+deb7u1 cannot be configured because libxcb-gl                                                                                        x0:i386 is at a different version (1.8.1-2)
dpkg: error processing libxxf86vm1:amd64 (--configure):
 package libxxf86vm1:amd64 1:1.1.2-1+deb7u1 cannot be configured because libxxf8                                                                                        6vm1:i386 is at a different version (1:1.1.2-1)
dpkg: error processing libgl1-mesa-glx:amd64 (--configure):
 package libgl1-mesa-glx:amd64 8.0.5-4+deb7u2 cannot be configured because libgl                                                                                        1-mesa-glx:i386 is at a different version (8.0.5-4)
dpkg: dependency problems prevent configuration of libgtk-3-0:amd64:
 libgtk-3-0:amd64 depends on libcairo-gobject2 (>= 1.10.0); however:
  Package libcairo-gobject2:amd64 is not configured yet.
 libgtk-3-0:amd64 depends on libcairo2 (>= 1.10.0); however:
  Package libcairo2:amd64 is not configured yet.
 libgtk-3-0:amd64 depends on libcups2 (>= 1.4.0); however:
  Package libcups2:amd64 is not configured yet.
 libgtk-3-0:amd64 depends on libgcrypt11 (>= 1.4.5); however:
  Package libgcrypt11:amd64 is not configured yet.
 libgtk-3-0:amd64 depends on libgdk-pixbuf2.0-0 (>= 2.25.2); however:
  Package libgdk-pixbuf2.0-0:amd64 is not configured yet.
 libgtk-3-0:amd64 depends on libgnutls26 (>= 2.12.17-0); however:
  Package libgnutls26:amd64 is not configured yet.
 libgtk-3-0:amd64 depends on libgssapi-krb5-2 (>= 1.6.dfsg.2); however:
  Package libgssapi-krb5-2:amd64 is not configured yet.
 libgtk-3-0:amd64 depends on libk5crypto3 (>= 1.6.dfsg.2); however:
  Package libk5crypto3:amd64 is not configured yet.
 libgtk-3-0
dpkg: error processing libgtk-3-0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libnspr4:amd64 (--configure):
 package libnspr4:amd64 2:4.9.2-1+deb7u1 cannot be configured because libnspr4:i                                                                                        386 is at a different version (2:4.9.2-1)
dpkg: error processing libnss3:amd64 (--configure):
 package libnss3:amd64 2:3.14.5-1 cannot be configured because libnss3:i386 is a                                                                                        t a different version (2:3.14.3-1)
dpkg: error processing libxtst6:amd64 (--configure):
 package libxtst6:amd64 2:1.2.1-1+deb7u1 cannot be configured because libxtst6:i                                                                                        386 is at a different version (2:1.2.1-1)
dpkg: dependency problems prevent configuration of libpulse0:amd64:
 libpulse0:amd64 depends on libdbus-1-3 (>= 1.1.1); however:
  Package libdbus-1-3:amd64 is not configured yet.
 libpulse0:amd64 depends on libx11-6; however:
  Package libx11-6:amd64 is not configured yet.
 libpulse0:amd64 depends on libx11-xcb1; however:
  Package libx11-xcb1:amd64 is not configured yet.
 libpulse0:amd64 depends on libxcb1; however:
  Package libxcb1:amd64 is not configured yet.
 libpulse0:amd64 depends on libxtst6; however:
  Package libxtst6:amd64 is not configured yet.

dpkg: error processing libpulse0:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing libxt6:amd64 (--configure):
 package libxt6:amd64 1:1.1.3-1+deb7u1 cannot be configured because libxt6:i386                                                                                         is at a different version (1:1.1.3-1)
dpkg: too many errors, stopping
Errors were encountered while processing:
 libssl1.0.0:amd64
 libgcrypt11:amd64
 libgnutls26:amd64
 libkrb5support0:amd64
 libk5crypto3:amd64
 libkrb5-3:amd64
 libgssapi-krb5-2:amd64
 libsasl2-2:amd64
 libxml2:amd64
 libxcb1:amd64
 libx11-6:amd64
 libxpm4:amd64
 libgd2-xpm:amd64
 libgphoto2-2:amd64
 libsane:amd64
 libexpat1:amd64
 libdbus-1-3:amd64
 consolekit
 policykit-1
 colord
 libxcb-render0:amd64
 libxcb-shm0:amd64
 libxrender1:amd64
 libcairo2:amd64
 libgdk-pixbuf2.0-0:amd64
 libcups2:amd64
 libxft2:amd64
 libpango1.0-0:amd64
 libxcomposite1:amd64
 libxfixes3:amd64
 libxcursor1:amd64
 libxdamage1:amd64
 libxext6:amd64
 libxi6:amd64
 libxinerama1:amd64
 libxrandr2:amd64
 libgtk2.0-0:amd64
 libatk-wrapper-java-jni:amd64
 libcairo-gobject2:amd64
 libgl1-mesa-dri:amd64
 libglapi-mesa:amd64
 libx11-xcb1:amd64
 libxcb-glx0:amd64
 libxxf86vm1:amd64
 libgl1-mesa-glx:amd64
 libgtk-3-0:amd64
 libnspr4:amd64
 libnss3:amd64
 libxtst6:amd64
 libpulse0:amd64
 libxt6E: Sub-process /usr/bin/dpkg returned an error code (1)

Proszę o pomoc, ponieważ nie jestem w stanie zainstalować tego oprogramowania... szukałem w google....

: 05 stycznia 2014, 01:06
autor: Menel

Kod: Zaznacz cały

openjdk-6-jre is already the newest version.

: 05 stycznia 2014, 12:34
autor: mati0707
A jednak nie...
root@speedhost:~# java
-bash: java: command not found

: 05 stycznia 2014, 15:43
autor: pone13
Ale błędów, masz totalnie 'rozjechany' system - czyżbyś używał różnych wersji repozytoriów oprogramowania?
Wklej może wynik poleceń:

Kod: Zaznacz cały

cat /etc/apt/sources.list
cat /etc/issue
cat /etc/lsb-release

: 05 stycznia 2014, 20:40
autor: Yampress
Spróbuj uniwersalne debianowe rozwiązanie i tu nie używa się sudo jak w łubuntu!!
apt-get install default-jre

: 05 stycznia 2014, 21:47
autor: ArnVaker
Tam się architektury rozjechały. Pakiety z amd64 są do aktualizacji, a i386 zostały w starych wersjach. Pełna aktualizacja pakietów z obu architektur powinna załatwić sprawę.

: 05 stycznia 2014, 22:24
autor: mati0707
Ehh, nadal nic. Próbowałem wszystkiego! Reinstall, aktualizacja i... nic.

: 05 stycznia 2014, 22:29
autor: mati0707
1 komenda:
root@speedhost:~# cat /etc/apt/sources.list
deb http://ftp.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free

deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
2 komenda:
cat /etc/issue
Debian GNU/Linux 7 \n \l
3 komenda:
cat: /etc/lsb-release: No such file or directory

: 05 stycznia 2014, 22:45
autor: pone13
Masz dodane repozytorium z Ubuntu!
Popraw źródła według: threads/1408-Wpisy-w-pliku-etc-apt-sour ... #post10079
następnie zaktualizuj system:

Kod: Zaznacz cały

# aptitude update && aptitude safe-upgrade
potem zainstaluj javę.

: 05 stycznia 2014, 22:55
autor: mati0707
Aptitude nie działa, więc zrobiłem apt-get, niestety safe-upgrade nic nie daje...