Strona 1 z 2

Problem z locales.

: 22 stycznia 2016, 13:16
autor: nalkubaxd5
Witajcie.

Nabrała mnie ochota na zainstalowanie javy na swoim VPS. Po uruchomieniu "apt-get install oracle-java7-installer" dostaje takie coś:
Reading package lists... DoneBuilding dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
oracle-java7-installer : Depends: locales
E: Unable to correct problems, you have held broken packages.
Nie chcąc się poddawać postanowiłem zainstalować owe "locales" (swoją drogą... czy to już nie powinno być w systemie?)
Po uruchomieniu "apt-get install locales" dostaje takie coś:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
apache2-mpm-prefork : Depends: apache2.2-bin (= 2.2.22-13+deb7u6) but it is not going to be installed
apache2.2-common : Depends: apache2.2-bin (= 2.2.22-13+deb7u6) but it is not going to be installed
Depends: apache2-utils but it is not going to be installed
Depends: procps
Depends: perl but it is not going to be installed
Recommends: ssl-cert but it is not going to be installed
libbz2-1.0 : PreDepends: multiarch-support
libc6 : Depends: libgcc1 but it is not going to be installed
Breaks: locales (< 2.22)
libcomerr2 : PreDepends: multiarch-support
libdb5.1 : PreDepends: multiarch-support
libgssapi-krb5-2 : Depends: libkeyutils1 but it is not going to be installed
Depends: libkrb5support0 (>= 1.7dfsg~beta2) but it is not going to be installed
PreDepends: multiarch-support
libk5crypto3 : Depends: libkeyutils1 but it is not going to be installed
Depends: libkrb5support0 (>= 1.7dfsg~beta2) but it is not going to be installed
PreDepends: multiarch-support
libkrb5-3 : Depends: libkeyutils1 but it is not going to be installed
Depends: libkrb5support0 (= 1.10.1+dfsg-5+deb7u6) but it is not going to be installed
PreDepends: multiarch-support
Recommends: krb5-locales but it is not going to be installed
libmagic1 : PreDepends: multiarch-support
libpcre3 : PreDepends: multiarch-support
libssl1.0.0 : Depends: debconf (>= 0.5) but it is not going to be installed or
debconf-2.0
PreDepends: multiarch-support
libxml2 : Depends: liblzma5 (>= 5.1.1alpha+20120614) but it is not going to be installed
PreDepends: multiarch-support
Recommends: xml-core but it is not going to be installed
locales : Depends: glibc-2.13-1
Depends: debconf (>= 0.5) but it is not going to be installed or
debconf-2.0
php5-common : Depends: sed (>= 4.1.1-1) but it is not going to be installed
Depends: psmisc (>= 22.15-1~) but it is not going to be installed
Depends: lsof but it is not going to be installed
PreDepends: dpkg (>= 1.16.1~)
tzdata : Depends: debconf (>= 0.5) but it is not going to be installed or
debconf-2.0
ucf : Depends: debconf (>= 1.5.19) but it is not going to be installed
Depends: coreutils (>= 5.91)
zlib1g : PreDepends: multiarch-support
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I tutaj już samemu się poddaje. Nie mam pojęcia co z tym zrobić, a nie wygląda to ciekawie.
Zależałoby mi, aby obeszło się bez reinstalacji systemu. W końcu to jest maszyna stworzona do potrzeb serwerowych, a nie domowy komputer.

System: Debian 7.9

: 22 stycznia 2016, 13:57
autor: dedito
Pokaż swoje repozytoria (wpisy w /et/apt/sources.list).

: 22 stycznia 2016, 14:15
autor: nalkubaxd5
Proszę:
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
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb http://packages.linuxmint.com debian import
deb http://cdn.debian.net/debian wheezy-backports main
deb http://www.deb-multimedia.org wheezy main

: 22 stycznia 2016, 14:31
autor: dedito
Czemu nie instalujesz sposobem debianowym tylko z jakiś ubuntowych repozytoriów?

: 22 stycznia 2016, 14:37
autor: mariaczi
@autor: Kto ten Twój system doprowadził do takiej sytuacji? Co instalowałeś na nim wcześniej i jak?

: 22 stycznia 2016, 15:52
autor: nalkubaxd5
Wygląda na to że sam sobie tak urządziłem system. :(

Pamiętam że pierwsze problemy pojawiły się podczas prób uruchomienia jednego programu. Niestety dokładnego błędu nie przytoczę, lecz chodziło w nim głównie o "/lib/x86_64-linux-gnu/libc.so.6 version glibc_2.14' not found". Postanowiłem wtedy zainstalować libc6-dev (apt-get -t testing install libc6-dev) z repozytorium którego też już nie pamiętam. Na pewno było oznaczone jako "testing".

@dedito Niestety nie jestem zbyt zaawansowanym użytkownikiem Debiana i uczę się wszystkiego na własnej skórze. Zapewne sugerowałem się wtedy googlem. Jeśli możesz to podaj mi dokładne repozytorium i nazwę paczki dla Javy 7 (nie mogę mieć 8).

: 22 stycznia 2016, 16:18
autor: mariaczi
Jeśli miałeś wheezyego i zainstalowałeś teraz coś z testinga, to masz przeskok o dwie wersje. Unika się takich sytuacji. Warto zrobić z tym porządek i jak masz Debiana to instaluj to co jest do Debiana a nie z ubuntu. No chyba, że dokładnie wiesz co robisz ;)
Jeśli nie jest to dla Ciebie maszyna krytyczna, choć nie do końca wiem czy teraz w ogóle Ci system wstaje po aktualizacji, to jeśli tego VPSa nie masz na OpenVZ to może warto zaktualizować system do aktualnego wydania stabilnego?

: 22 stycznia 2016, 17:02
autor: nalkubaxd5
Niestety jest to OpenVZ (już od miesiąca rozglądam się na przystępnym cenowo KVM). Na szczęście w panelu mam możliwość zainstalowania Debiana 8, lecz nie chcę tego robić. Postawione jest nam na tyle dużo funkcji, że muszą jak najbardziej unikać restartowania maszyny. A tym bardziej stawiania wszystkiego na nowo.

: 22 stycznia 2016, 17:09
autor: mariaczi
Jeśli masz możliwość instalacji wersji 8 z panelu to zapytaj support czy możesz bez przeszkód wykonać aktualizację na swojej maszynie. Zapewne podpowiedzą. Jeśli będziesz mógł, to możesz to zrobić możliwe rozważnie co i powinno naprawić zależności.

: 22 stycznia 2016, 18:28
autor: dedito
nalkubaxd5 pisze: Jeśli możesz to podaj mi dokładne repozytorium i nazwę paczki dla Javy 7 (nie mogę mieć 8).
Jest pod linkiem, który podałem.