0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

docker (36) error(100) java E: Sub-process /usr/bin/dpkg returned an error code (1) coding(67)

Last updated at Posted at 2019-08-08

docker上のubuntuでjavaを導入しようとした。

計算物理学 Rubin H. Landau 参考文献・docker登録
https://qiita.com/kaizen_nagoya/items/af924f5ac71ff5cc8c89

docker/ubuntu
# apt install java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package java
# apt install openjdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package openjdk
# apt search openjdk
Sorting... Done
Full Text Search... Done
jtreg/stable 4.2-b14-1 all
  Regression Test Harness for the OpenJDK platform

openjdk-11-dbg/stable 11.0.4+11-1~deb10u1 amd64
  Java runtime based on OpenJDK (debugging symbols)

openjdk-11-demo/stable 11.0.4+11-1~deb10u1 amd64
  Java runtime based on OpenJDK (demos and examples)

openjdk-11-doc/stable 11.0.4+11-1~deb10u1 all
  OpenJDK Development Kit (JDK) documentation

openjdk-11-jdk/stable 11.0.4+11-1~deb10u1 amd64
  OpenJDK Development Kit (JDK)

openjdk-11-jdk-headless/stable 11.0.4+11-1~deb10u1 amd64
  OpenJDK Development Kit (JDK) (headless)

openjdk-11-jre/stable 11.0.4+11-1~deb10u1 amd64
  OpenJDK Java runtime, using Hotspot JIT

openjdk-11-jre-dcevm/stable 11.0.3+1-1 amd64
  Alternative VM for OpenJDK 11 with enhanced class redefinition

openjdk-11-jre-headless/stable 11.0.4+11-1~deb10u1 amd64
  OpenJDK Java runtime, using Hotspot JIT (headless)

openjdk-11-jre-zero/stable 11.0.4+11-1~deb10u1 amd64
  Alternative JVM for OpenJDK, using Zero

openjdk-11-source/stable 11.0.4+11-1~deb10u1 all
  OpenJDK Development Kit (JDK) source files

uwsgi-plugin-jvm-openjdk-11/stable 2.0.18-1 amd64
  Java plugin for uWSGI (OpenJDK 11)

uwsgi-plugin-jwsgi-openjdk-11/stable 2.0.18-1 amd64
  JWSGI plugin for uWSGI (OpenJDK 11)

uwsgi-plugin-ring-openjdk-11/stable 2.0.18-1 amd64
  Closure/Ring plugin for uWSGI (OpenJDK 11)

uwsgi-plugin-servlet-openjdk-11/stable 2.0.18-1 amd64
  JWSGI plugin for uWSGI (OpenJDK 11)

# apt install -y maven openjdk-11-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:

...

Get:177 http://deb.debian.org/debian buster/main amd64 maven all 3.6.0-1 [22.1 kB]          
Fetched 101 MB in 7s (13.6 MB/s)                          
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 177.)
debconf: falling back to frontend: Readline
Extracting templates from packages: 100%
Preconfiguring packages ...

...

Preparing to unpack .../013-gtk-update-icon-cache_3.24.5-1_amd64.deb ...
No diversion 'diversion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin', none removed.
No diversion 'diversion of /usr/share/man/man8/update-icon-caches.8.gz to /usr/share/man/man8/update-icon-caches.gtk2.8.gz by libgtk-3-bin', none removed.
Unpacking gtk-update-icon-cache (3.24.5-1) ...

...

Setting up libpam-systemd:amd64 (241-5) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Setting up libplexus-sec-dispatcher-java (1.4-4) ...

...

Setting up fontconfig-config (2.13.1-2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Setting up libxcursor1:amd64 (1:1.1.15-2) ...

...

Setting up openjdk-11-jre-headless:amd64 (11.0.4+11-1~deb10u1) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/rmid.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
 installed openjdk-11-jre-headless:amd64 package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-11-jre:amd64:
 openjdk-11-jre:amd64 depends on openjdk-11-jre-headless (= 11.0.4+11-1~deb10u1); however:
  Package openjdk-11-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-11-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up maven (3.6.0-1) ...

...

Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Setting up glib-networking:amd64 (2.58.0-2) ...
Setting up libsoup2.4-1:amd64 (2.64.2-2) ...
Setting up libsoup-gnome2.4-1:amd64 (2.64.2-2) ...
Setting up librest-0.7-0:amd64 (0.8.1-1) ...
Setting up libgtk-3-0:amd64 (3.24.5-1) ...
Setting up libgtk-3-bin (3.24.5-1) ...
Setting up libatk-wrapper-java-jni:amd64 (0.33.3-22) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.38.1+dfsg-1) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 openjdk-11-jre-headless:amd64
 openjdk-11-jre:amd64
 maven
E: Sub-process /usr/bin/dpkg returned an error code (1)

# apt install -y maven
Reading package lists... Done
Building dependency tree       
Reading state information... Done
maven is already the newest version (3.6.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openjdk-11-jre-headless:amd64 (11.0.4+11-1~deb10u1) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/rmid.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
 installed openjdk-11-jre-headless:amd64 package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-11-jre:amd64:
 openjdk-11-jre:amd64 depends on openjdk-11-jre-headless (= 11.0.4+11-1~deb10u1); however:
  Package openjdk-11-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-11-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up maven (3.6.0-1) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/mvn.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package maven (--configure):
 installed maven package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 openjdk-11-jre-headless:amd64
 openjdk-11-jre:amd64
 maven
E: Sub-process /usr/bin/dpkg returned an error code (1)

# apt install -y openjdk-11-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-11-jre is already the newest version (11.0.4+11-1~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openjdk-11-jre-headless:amd64 (11.0.4+11-1~deb10u1) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/rmid.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
 installed openjdk-11-jre-headless:amd64 package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-11-jre:amd64:
 openjdk-11-jre:amd64 depends on openjdk-11-jre-headless (= 11.0.4+11-1~deb10u1); however:
  Package openjdk-11-jre-headless:amd64 is not configured yet.

dpkg: error processing package openjdk-11-jre:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up maven (3.6.0-1) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/mvn.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package maven (--configure):
 installed maven package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 openjdk-11-jre-headless:amd64
 openjdk-11-jre:amd64
 maven
E: Sub-process /usr/bin/dpkg returned an error code (1)

E: Sub-process /usr/bin/dpkg returned an error code (1)
https://teratail.com/questions/130558
の記事に従い、update, upgrade

docker/ubuntu
# apt update; apt -y upgrade
Hit:1 http://deb.debian.org/debian buster InRelease
Get:2 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [46.8 kB]         
Get:4 https://packages.microsoft.com/repos/vscode stable InRelease [3181 B]       
Get:5 https://packages.microsoft.com/repos/vscode stable/main amd64 Packages [132 kB]
Fetched 221 kB in 1s (179 kB/s)    
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openjdk-11-jre-headless:amd64 (11.0.4+11-1~deb10u1) ...
update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/rmid.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
 installed openjdk-11-jre-headless:amd64 package post-installation script subprocess returned error exit status 2
Setting up maven (3.6.0-1) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/mvn.1.gz.dpkg-tmp': No such file or directory
dpkg: error processing package maven (--configure):
 installed maven package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 openjdk-11-jre-headless:amd64
 maven
E: Sub-process /usr/bin/dpkg returned an error code (1)

# cat /var/log/dpkg.log
...
2019-08-08 00:05:36 startup packages configure
2019-08-08 00:05:36 configure openjdk-11-jre-headless:amd64 11.0.4+11-1~deb10u1 <none>
2019-08-08 00:05:36 status half-configured openjdk-11-jre-headless:amd64 11.0.4+11-1~deb10u1
2019-08-08 00:05:36 configure maven:all 3.6.0-1 <none>
2019-08-08 00:05:36 status half-configured maven:all 3.6.0-1

#  grep " no " /var/log/dpkg.log
#  grep " not " /var/log/dpkg.log

continuumio/anaconda3 にgfortran, clang を入れた後だから駄目だったかもと、素のcontinuumio/anaconda3でもE: Sub-process /usr/bin/dpkg returned an error code (1)がでた。

素のubuntuで試してみた。

macOS
$ docker run -it ubuntu /bin/bash

docker で

docker/ubuntu
# apt update; apt -y upgrade
...
# apt install -y openjdk-11-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:

...
Setting up openjdk-11-jre:amd64 (11.0.4+11-1ubuntu2~18.04.3) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for ca-certificates (20180409) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.

素なら入るんだ。

参考資料(reference)

dockerで機械学習(87) with JAVA(1)「Machine Learning: End-to-End guide for Java developers」 By Richard Reese, Jennifer Reese, Bostjan Kaluza, Uday Kamath, Krishna Choppella
https://qiita.com/kaizen_nagoya/items/2d3a4f168b4c9a28b32e

openjdk-8-jreの時はエラーが出ていない。泣)

self reference

無線網(Wi-Fi)空中線(antenna)(0) 記事一覧(118/300目標)
https://qiita.com/kaizen_nagoya/items/5e5464ac2b24bd4cd001

Ethernet 記事一覧 Ethernet(0)
https://qiita.com/kaizen_nagoya/items/88d35e99f74aefc98794

Wireshark 一覧 wireshark(0)、Ethernet(48) https://qiita.com/kaizen_nagoya/items/fbed841f61875c4731d0

仮説(0)一覧(目標100現在40)
https://qiita.com/kaizen_nagoya/items/f000506fe1837b3590df

安全(0)安全工学シンポジウムに向けて: 21
https://qiita.com/kaizen_nagoya/items/c5d78f3def8195cb2409

Qiita(0)Qiita関連記事一覧(自分)
https://qiita.com/kaizen_nagoya/items/58db5fbf036b28e9dfa6

鉄道(0)鉄道のシステム考察はてっちゃんがてつだってくれる
https://qiita.com/kaizen_nagoya/items/26bda595f341a27901a0

日本語(0)一欄
https://qiita.com/kaizen_nagoya/items/7498dcfa3a9ba7fd1e68

英語(0) 一覧
https://qiita.com/kaizen_nagoya/items/680e3f5cbf9430486c7d

転職(0)一覧
https://qiita.com/kaizen_nagoya/items/f77520d378d33451d6fe

数学関連記事100 
https://qiita.com/kaizen_nagoya/items/d8dadb49a6397e854c6d

物理記事 上位100
https://qiita.com/kaizen_nagoya/items/66e90fe31fbe3facc6ff

自動車 記事 100
https://qiita.com/kaizen_nagoya/items/f7f0b9ab36569ad409c5

言語・文学記事 100
https://qiita.com/kaizen_nagoya/items/42d58d5ef7fb53c407d6

医工連携関連記事 100
https://qiita.com/kaizen_nagoya/items/6ab51c12ba51bc260a82

通信記事100
https://qiita.com/kaizen_nagoya/items/1d67de5e1cd207b05ef7

OSEK OS設計の基礎 OSEK(100)
https://qiita.com/kaizen_nagoya/items/7528a22a14242d2d58a3

一覧:携帯計画者日記(0)
https://qiita.com/kaizen_nagoya/items/005d38c6f55c85570e74

AUTOSAR R22-11 Qiita記事一覧 20230421(1)
https://qiita.com/kaizen_nagoya/items/81a35774f1aa3d64d3f6

ボッシュ自動車handbook(英語)11版(0) 課題と記事一覧
https://qiita.com/kaizen_nagoya/items/dfa35aa6f669e5df983e

R3(0) on "What are the most important statistical ideas of the past 50 years? " Andrew Gelman, Aki Vehtari
https://qiita.com/kaizen_nagoya/items/a8eac9afbf16d2188901

官公庁・学校・公的団体(NPOを含む)システムの課題、官(0)
https://qiita.com/kaizen_nagoya/items/04ee6eaf7ec13d3af4c3

一覧の一覧( The directory of directories of mine.) Qiita(100)
https://qiita.com/kaizen_nagoya/items/7eb0e006543886138f39

プログラマが知っていると良い「公序良俗」
https://qiita.com/kaizen_nagoya/items/9fe7c0dfac2fbd77a945

LaTeX(0) 一覧 
https://qiita.com/kaizen_nagoya/items/e3f7dafacab58c499792

自動制御、制御工学一覧(0)
https://qiita.com/kaizen_nagoya/items/7767a4e19a6ae1479e6b

Rust(0) 一覧 
https://qiita.com/kaizen_nagoya/items/5e8bb080ba6ca0281927

小川清最終講義、最終講義(再)計画, Ethernet(100) 英語(100) 安全(100)
https://qiita.com/kaizen_nagoya/items/e2df642e3951e35e6a53

<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>
This article is an individual impression based on the individual's experience. It has nothing to do with the organization or business to which I currently belong.

文書履歴(document history)

ver. 0.01 初稿
ver. 0.02 標題追記 20190813

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?