LinuxForum.Fans
Тема

Не могу поставить Java

Автор: StrongASB 16 сообщений 3469 просмотров
#163088
text
root@energypw:~# apt-get install sun-java5-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  sun-java5-bin: Depends: sun-java5-jre (= 1.5.0-22-0lenny1) but it is not going to be installed
                 Depends: unixodbc but it is not going to be installed
                 Recommends: libxi6 but it is not going to be installed
                 Recommends: libxt6 but it is not going to be installed
                 Recommends: libxtst6 but it is not going to be installed
                 Recommends: libnss-mdns but it is not going to be installed
  sun-java5-jdk: Depends: sun-java5-jre (= 1.5.0-22-0lenny1) but it is not going to be installed
                 Depends: sun-java5-demo (= 1.5.0-22-0lenny1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

В чём ошибка?

#163098

А поновее версии нет? Так-то давно уже 1.6 существует в природе.

#163103

Попробуйте (от рута):
[console]apt-get -f install[/console]

#163114

Мне нужна именно 5 Java

text
root@energypw:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  java-common libltdl7 odbcinst odbcinst1debian1 sun-java5-bin sun-java5-jre
  unixodbc
Suggested packages:
  default-jre equivs sun-java5-plugin ia32-sun-java5-plugin sun-java5-fonts
  ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic
  ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
  libmyodbc odbc-postgresql tdsodbc unixodbc-bin
Recommended packages:
  libxi6 libxt6 libxtst6 libnss-mdns
The following NEW packages will be installed:
  java-common libltdl7 odbcinst odbcinst1debian1 sun-java5-jre unixodbc
The following packages will be upgraded:
  sun-java5-bin
1 upgraded, 6 newly installed, 0 to remove and 109 not upgraded.
1 not fully installed or removed.
Need to get 0B/28.5MB of archives.
After this operation, 18.6MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  sun-java5-bin sun-java5-jre
Install these packages without verification [y/N]? y
E: Write error - write (28: No space left on device)
E: Prior errors apply to /var/cache/apt/archives/sun-java5-jre_1.5.0-22-0lenny1_all.deb
E: Prior errors apply to /var/cache/apt/archives/libltdl7_2.2.6b-2ubuntu1_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/odbcinst_2.2.11-21_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/odbcinst1debian1_2.2.11-21_amd64.deb
E: Prior errors apply to /var/cache/apt/archives/unixodbc_2.2.11-21_amd64.deb
debconf: apt-extracttemplates failed: Bad file descriptor
Preconfiguring packages ...
Selecting previously deselected package java-common.
(Reading database ... 24631 files and directories currently installed.)
Unpacking java-common (from .../java-common_0.34_all.deb) ...
Selecting previously deselected package sun-java5-bin.
Preparing to replace sun-java5-bin 1.5.0-19-0ubuntu0.9.04 (using .../sun-java5-bin_1.5.0-22-0lenny1_amd64.deb) ...
sun-dlj-v1-1 license has already been accepted
Unpacking replacement sun-java5-bin ...
dpkg: error processing /var/cache/apt/archives/sun-java5-bin_1.5.0-22-0lenny1_amd64.deb (--unpack):
 failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./etc/java-1.5.0-sun/net.properties': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Error: contents of '/etc/mailcap.new' do not match what was written -- abort
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 255
Selecting previously deselected package sun-java5-jre.
Unpacking sun-java5-jre (from .../sun-java5-jre_1.5.0-22-0lenny1_all.deb) ...
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package libltdl7.
Unpacking libltdl7 (from .../libltdl7_2.2.6b-2ubuntu1_amd64.deb) ...
Selecting previously deselected package odbcinst.
Unpacking odbcinst (from .../odbcinst_2.2.11-21_amd64.deb) ...
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from .../odbcinst1debian1_2.2.11-21_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/odbcinst1debian1_2.2.11-21_amd64.deb (--unpack):
 error creating directory `./etc/ODBCDataSources': No space left on device
No apport report written because the error message indicates a disk full error
                                                                              Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.11-21_amd64.deb) ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/sun-java5-bin_1.5.0-22-0lenny1_amd64.deb
 /var/cache/apt/archives/odbcinst1debian1_2.2.11-21_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@energypw:~# apt-get install sun-java5-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  odbcinst: Depends: odbcinst1debian1 (>= 2.2.11-3) but it is not going to be installed
  sun-java5-jdk: Depends: sun-java5-demo (= 1.5.0-22-0lenny1) but it is not going to be installed
  unixodbc: Depends: odbcinst1debian1 (>= 2.2.11-3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@energypw:~#
#163136

Что произошло то?

#163138

StrongASB
Попробуйте aptitude install sun-java5-bin с установленным aptitude.

#163142
text
root@energypw:~# aptitude install sun-java5-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
  unixodbc
The following packages will be REMOVED:
  odbcinst{u}
The following packages will be upgraded:
  sun-java5-bin
The following partially installed packages will be configured:
  java-common libltdl7 sun-java5-jre
The following packages are RECOMMENDED but will NOT be installed:
  libnss-mdns libxi6 libxt6 libxtst6
1 packages upgraded, 0 newly installed, 1 to remove and 109 not upgraded.
Need to get 0B/20.2MB of archives. After unpacking 81.9kB will be freed.
The following packages have unmet dependencies:
  unixodbc: Depends: odbcinst1debian1 (>= 2.2.11-3) but it is not installable
The following actions will resolve these dependencies:

Install the following packages: odbcinst1debian1 [2.2.11-21 (lucid, now)]

Keep the following packages at their current version: odbcinst [2.2.11-21 (lucid, now)]

Score is 112

Accept this solution? [Y/n/q/?] y The following NEW packages will be installed: odbcinst1debian1{a} The following packages will be upgraded: sun-java5-bin The following partially installed packages will be configured: java-common libltdl7 odbcinst sun-java5-jre unixodbc The following packages are RECOMMENDED but will NOT be installed: libnss-mdns libxi6 libxt6 libxtst6 1 packages upgraded, 1 newly installed, 0 to remove and 109 not upgraded. Need to get 0B/20.3MB of archives. After unpacking 319kB will be used. Do you want to continue? [Y/n/?] y WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security. You should only proceed with the installation if you are certain that this is what you want to do.

sun-java5-bin

Do you want to ignore this warning and proceed anyway? To continue, enter "Yes"; to abort, enter "No": YES Writing extended state information... Done E: Write error - write (28: No space left on device) E: Prior errors apply to /var/cache/apt/archives/odbcinst1debian1_2.2.11-21_amd64.deb debconf: apt-extracttemplates failed: Bad file descriptor Preconfiguring packages ... (Reading database ... 25259 files and directories currently installed.) Preparing to replace sun-java5-bin 1.5.0-19-0ubuntu0.9.04 (using .../sun-java5-bin_1.5.0-22-0lenny1_amd64.deb) ... sun-dlj-v1-1 license has already been accepted Unpacking replacement sun-java5-bin ... dpkg: error processing /var/cache/apt/archives/sun-java5-bin_1.5.0-22-0lenny1_amd64.deb (--unpack): failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./etc/java-1.5.0-sun/net.properties': No space left on device dpkg-deb: subprocess paste killed by signal (Broken pipe) Error: contents of '/etc/mailcap.new' do not match what was written -- abort dpkg: error while cleaning up: subprocess new post-removal script returned error exit status 255 Unpacking odbcinst1debian1 (from .../odbcinst1debian1_2.2.11-21_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/odbcinst1debian1_2.2.11-21_amd64.deb (--unpack): error creating directory `./etc/ODBCDataSources': No space left on device No apport report written because the error message indicates a disk full error Errors were encountered while processing: /var/cache/apt/archives/sun-java5-bin_1.5.0-22-0lenny1_amd64.deb /var/cache/apt/archives/odbcinst1debian1_2.2.11-21_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up java-common (0.34) ... dpkg: dependency problems prevent configuration of odbcinst: odbcinst depends on odbcinst1debian1 (>= 2.2.11-3); however: Package odbcinst1debian1 is not installed. dpkg: error processing odbcinst (--configure): dependency problems - leaving unconfigured Setting up libltdl7 (2.2.6b-2ubuntu1) ...

dpkg: dependency problems prevent configuration of unixodbc: unixodbc depends on odbcinst1debian1 (>= 2.2.11-3); however: Package odbcinst1debian1 is not installed. dpkg: error processing unixodbc (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of sun-java5-jre: sun-java5-jre depends on sun-java5-bin (= 1.5.0-22-0lenny1) | ia32-sun-java5-bin (= 1.5.0-22-0lenny1); however: Package sun-java5-bin is not installed. Package ia32-sun-java5-bin is not installed. dpkg: error processing sun-java5-jre (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin ... ldconfig deferred processing now taking place /sbin/ldconfig.real: Writing of cache data failed: No such file or directory dpkg: error processing libc-bin (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: odbcinst unixodbc sun-java5-jre libc-bin Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done

#163143

StrongASB написал:
E: Write error - write (28: No space left on device)
Вот это интерисует.
#163147

ага. место кончилось. похоже в /var/

#163285

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 1.9G 1.9G 0 100% /
none 2.0G 224K 2.0G 1% /dev
none 2.0G 0 2.0G 0% /dev/shm
none 2.0G 48K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
none 2.0G 0 2.0G 0% /lib/init/rw
/dev/sda1 92M 92M 0 100% /boot
/dev/sda8 430G 1.3G 407G 1% /home
/dev/sda6 9.2G 949M 7.8G 11% /usr
/dev/sda7 9.2G 839M 8.0G 10% /var
Хм root заполнен!Хотя в нём пусто

#163323
StrongASB написал:
Хм root заполнен!Хотя в нём пусто

как это "пусто"?!
# du -sxh /*

ну и lsof (на случай удалённых)

#163333

7.9M /bin
86M /boot
224K /dev
5.7M /etc
1.1G /home
0 /initrd.img
151M /lib
13M /lib32
0 /lib64
16K /lost+found
4.0K /media
4.0K /mnt
4.0K /opt
0 /proc
56K /root
6.0M /sbin
4.0K /selinux
4.0K /srv
0 /sys
1.7G /tmp
800M /usr

#163342

StrongASB, ну... видите?
я вообще чё-то не распарсил такой вывод. райзер какой-то что-ли?

#163483

root пишет что заполнен,хотя
root@energypw:~# cd /root/
root@energypw:~# du
4 ./.mc/cedit
24 ./.mc
4 ./.aptitude
4 ./.cache
4 ./.debtags
56 .
Как так?
boot отчистил!

#163509
StrongASB написал:
root пишет что заполнен,хотя
root@energypw:~# cd /root/
root@energypw:~# du
4 ./.mc/cedit
24 ./.mc
4 ./.aptitude
4 ./.cache
4 ./.debtags
56 .
Как так?
boot отчистил!

При чём тут /root?
У Вас / заполнен на 100%

StrongASB написал:
/dev/sda2 1.9G 1.9G 0 100% /

Смотрите в сторону /tmp

StrongASB написал:
1.7G /tmp
#163563

Всем спасибо,помогли очень! smile

Войдите или зарегистрируйтесь, чтобы ответить.