java

Tematy związane z oprogramowaniem, instalacją, konfiguracją
fanatico
Beginner
Posty: 315
Rejestracja: 27 stycznia 2007, 23:16

java

Post autor: fanatico »

Witam.Postanowiłem narazie nie grzebać za bardzo i jakos sobie wszystko skonfigurować ;-) (do czasu aż mi przejdzie chęć nie psucia:P) aż tu nagle...

Kod: Zaznacz cały

debian:~# apt-get install sun-java5-jre
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  belocs-locales-bin binutils cpp cpp-3.3 cpp-4.1 gcc gcc-3.3 gcc-3.3-base
  gcc-4.1 gcc-4.1-base java-common libc6 libgcc1 libltdl3 libncurses5
  libreadline5 libstdc++5 libstdc++6 locales odbcinst1debian1 readline-common
  sun-java5-bin tzdata unixodbc
Suggested packages:
  binutils-doc cpp-doc gcc-4.1-locales autoconf automake1.9 libtool gcc-doc
  automake gcc-3.3-doc gcc-4.1-doc libc6-dev-amd64 lib64gcc1 equivs glibc-doc
  sun-java5-plugin ia32-sun-java5-plugin sun-java5-fonts ttf-baekmuk
  ttf-sazanami-gothic ttf-sazanami-mincho ttf-arphic-bsmi00lp libmyodbc
  odbc-postgresql libct1
Recommended packages:
  libc-dev libmudflap0-dev gsfonts-x11
The following packages will be REMOVED:
  base-config g++ g++-3.3 initrd-tools kernel-image-2.4.27-2-386
  kernel-image-2.6.8-2-386 libc6-dev libstdc++5-3.3-dev
The following NEW packages will be installed:
  belocs-locales-bin cpp-4.1 gcc-4.1 gcc-4.1-base java-common libltdl3
  odbcinst1debian1 readline-common sun-java5-bin sun-java5-jre tzdata unixodbc
The following packages will be upgraded:
  binutils cpp cpp-3.3 gcc gcc-3.3 gcc-3.3-base libc6 libgcc1 libncurses5
  libreadline5 libstdc++5 libstdc++6 locales
13 upgraded, 12 newly installed, 8 to remove and 624 not upgraded.
Need to get 45.9MB of archives.
After unpacking 860kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 [url]http://archive.ubuntu.com[/url] feisty/main java-common 0.25ubuntu1 [76.8kB]
Get:2 [url]http://archive.ubuntu.com[/url] feisty/main belocs-locales-bin 2.4-2ubuntu1 [171 kB]
Get:3 [url]http://archive.ubuntu.com[/url] feisty/main tzdata 2006p-1ubuntu1 [313kB]
Get:4 [url]http://archive.ubuntu.com[/url] feisty/main locales 2.3.23 [3033kB]
Get:5 [url]http://archive.ubuntu.com[/url] feisty/main libc6 2.5-0ubuntu9 [4089kB]
Get:6 [url]http://archive.ubuntu.com[/url] feisty/main libltdl3 1.5.22-4 [168kB]
Get:7 [url]http://archive.ubuntu.com[/url] feisty/main libreadline5 5.2-2 [129kB]
Get:8 [url]http://archive.ubuntu.com[/url] feisty/main readline-common 5.2-2 [50.6kB]
Get:9 [url]http://archive.ubuntu.com[/url] feisty/main libncurses5 5.5-5ubuntu1 [301kB]
Get:10 [url]http://archive.ubuntu.com[/url] feisty/main odbcinst1debian1 2.2.11-13 [64.1kB]
Get:11 [url]http://archive.ubuntu.com[/url] feisty/main unixodbc 2.2.11-13 [269kB]
Get:12 [url]http://archive.ubuntu.com[/url] feisty/multiverse sun-java5-bin 1.5.0-10-3 [22.3MB]
Get:13 [url]http://archive.ubuntu.com[/url] feisty/multiverse sun-java5-jre 1.5.0-10-3 [7462kB]
Get:14 [url]http://archive.ubuntu.com[/url] feisty/main gcc-4.1-base 4.1.1-21ubuntu7 [200kB]
Get:15 [url]http://archive.ubuntu.com[/url] feisty/main libgcc1 1:4.1.1-21ubuntu7 [22.2kB]
Get:16 [url]http://archive.ubuntu.com[/url] feisty/main binutils 2.17.20070103cvs-0ubuntu2 [1580kB]
Get:17 [url]http://archive.ubuntu.com[/url] feisty/main gcc-3.3 1:3.3.6-15ubuntu1 [549kB]
Get:18 [url]http://archive.ubuntu.com[/url] feisty/main cpp-3.3 1:3.3.6-15ubuntu1 [1385kB]
Get:19 [url]http://archive.ubuntu.com[/url] feisty/main gcc-3.3-base 1:3.3.6-15ubuntu1 [151kB]
Get:20 [url]http://archive.ubuntu.com[/url] feisty/main libstdc++5 1:3.3.6-15ubuntu1 [296kB]
Get:21 [url]http://archive.ubuntu.com[/url] feisty/main libstdc++6 4.1.1-21ubuntu7 [311kB]
Get:22 [url]http://archive.ubuntu.com[/url] feisty/main cpp-4.1 4.1.1-21ubuntu7 [2311kB]
Get:23 [url]http://archive.ubuntu.com[/url] feisty/main cpp 4:4.1.1-15ubuntu1 [32.9kB]
Get:24 [url]http://archive.ubuntu.com[/url] feisty/main gcc-4.1 4.1.1-21ubuntu7 [616kB]
Get:25 [url]http://archive.ubuntu.com[/url] feisty/main gcc 4:4.1.1-15ubuntu1 [5144B]
Fetched 45.9MB in 18m3s (42.4kB/s)
Preconfiguring packages ...
(Reading database ... 100153 files and directories currently installed.)
Removing base-config ...
Removing g++ ...
Removing kernel-image-2.6.8-2-386 ...

  You are running a kernel (version 2.6.8-2-386) and attempting to remove
  the same version. This is a potentially disastrous action. Not only
  will /boot/vmlinuz-2.6.8-2-386 be removed, making it impossible to boot
  it, (you will have to take action to change your boot loader to boot
  a new kernel), it will also remove all modules under the directory
  /lib/modules/2.6.8-2-386. Just having a copy of the kernel image is not
  enough, you will have to replace the modules too.

    I repeat, this is very dangerous. If at all in doubt, answer
    no. If you know exactly what you are doing, and are prepared to
    hose your system, then answer Yes.
Remove the running kernel image (not recommended) [No]? n
dpkg: error processing kernel-image-2.6.8-2-386 (--remove):
 subprocess pre-removal script returned error exit status 1
Removing kernel-image-2.4.27-2-386 ...
Searching for GRUB installation directory ... found: /boot/grub .
Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
Searching for splash image... none found, skipping...
Found kernel: /boot/vmlinuz-2.6.8-2-386
Updating /boot/grub/menu.lst ... done

The link /vmlinuz.old is a dangling link
Removing symbolic link vmlinuz.old
Unless you used the optional flag in lilo,
 you may need to re-run lilo
The link /initrd.img.old is a dangling link
Removing symbolic link initrd.img.old
Unless you used the optional flag in lilo,
 you may need to re-run lilo
Removing g++-3.3 ...
Removing libstdc++5-3.3-dev ...
Removing libc6-dev ...
dpkg: initrd-tools: dependency problems, but removing anyway as you request:
 kernel-image-2.6.8-2-386 depends on initrd-tools (>= 0.1.63).
Removing initrd-tools ...
Errors were encountered while processing:
 kernel-image-2.6.8-2-386
E: Sub-process /usr/bin/dpkg returned an error code (1)
Jakieś sugestie?
chyl-o
Junior Member
Posty: 621
Rejestracja: 24 maja 2006, 21:06
Lokalizacja: Lublin

Post autor: chyl-o »

fanatico pisze:Get:1 http://archive.ubuntu.com feisty/main java-common 0.25ubuntu1 [76.8kB]
Masz ubuntu czy debiana. jak debiana, to po co używasz repozytoriów ubuntu?

próbowałeś naprawić zależności?

Kod: Zaznacz cały

apt-get -f install
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

Z Javą są o wiele mniejsze problemy gdy instaluje się ją korzystając z java-package. Tutorial na dug.net.pl.
roni
Posty: 23
Rejestracja: 26 stycznia 2007, 14:26
Lokalizacja: Wroc³aw (Z³otoryja)

Re: java

Post autor: roni »

fanatico pisze:(...)
The following packages will be REMOVED:
base-config g++ g++-3.3 initrd-tools kernel-image-2.4.27-2-386
kernel-image-2.6.8-2-386 libc6-dev libstdc++5-3.3-dev

(...)
Preconfiguring packages ...
(Reading database ... 100153 files and directories currently installed.)
Removing base-config ...
Removing g++ ...
Removing kernel-image-2.6.8-2-386 ...

You are running a kernel (version 2.6.8-2-386) and attempting to remove
the same version. This is a potentially disastrous action. Not only
will /boot/vmlinuz-2.6.8-2-386 be removed, making it impossible to boot
it, (you will have to take action to change your boot loader to boot
a new kernel), it will also remove all modules under the directory
/lib/modules/2.6.8-2-386. Just having a copy of the kernel image is not
enough, you will have to replace the modules too.

I repeat, this is very dangerous. If at all in doubt, answer
no. If you know exactly what you are doing, and are prepared to
hose your system, then answer Yes.
Remove the running kernel image (not recommended) [No]? n
dpkg: error processing kernel-image-2.6.8-2-386 (--remove):
subprocess pre-removal script returned error exit status 1
Removing kernel-image-2.4.27-2-386 ...
(...)


Jakieś sugestie?
Jedna. Nie tyczy się ona wprawdzie javy, ale czytaj co do Cię komp mówi, bo właśnie usunąłeś sobie jajo 2.4 i np g++(no chyba, że było to zamierzone, ale nie sądzę ]Remove the running kernel image[/quote] odpowiedział "y" :mrgreen:
ODPOWIEDZ