- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我一直在从事一个开源项目。它使用安装在 jdk8 镜像上的构建生成的 debian (.deb) 软件包创建 docker 镜像。
但最近我开始犯错误,不幸的是我无法克服它。一旦通过 Dockerfile 启动 dpkg 命令。提示找不到jdk/jre的依赖。这很有趣,因为基础是 openjdk/jdk8
======Dockerfile======
FROM openjdk:8-jdk
COPY *.deb /tmp/
RUN chmod +x /tmp/application.deb
RUN java -version
RUN ls -lrth /tmp/
RUN dpkg -I /tmp/application.deb
RUN dpkg -i /tmp/application.deb
======docker命令启动======
docker build --no-cache -t jdk8-img .
======docker 构建输出======
Sending build context to Docker daemon 103.3MB
Step 1/7 : FROM openjdk:8-jdk
---> d318d6aeb831
Step 2/7 : COPY *.deb /tmp/
---> 74305ee50ee7
Step 3/7 : RUN chmod +x /tmp/application.deb
---> Running in de51d99b4570
Removing intermediate container de51d99b4570
---> cb47ff56ec1c
Step 4/7 : RUN java -version
---> Running in a14700fcc037
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
Removing intermediate container a14700fcc037
---> 813cc1108cc7
Step 5/7 : RUN ls -lrth /tmp/
---> Running in 0255efbfd08c
total 99M
-rwxr-xr-x 1 root root 99M May 28 12:23 application.deb
drwxr-xr-x 1 root root 4.0K May 28 12:25 hsperfdata_root
Removing intermediate container 0255efbfd08c
---> ebd1965f1b97
Step 6/7 : RUN dpkg -I /tmp/application.deb
---> Running in 7f7411200dbd
new debian package, version 2.0.
size 103337854 bytes: control archive=2382 bytes.
175 bytes, 4 lines conffiles
266 bytes, 10 lines control
4549 bytes, 48 lines md5sums
255 bytes, 21 lines * postinst #!/bin/sh
52 bytes, 7 lines * postrm #!/bin/sh
534 bytes, 26 lines * preinst #!/bin/sh
103 bytes, 9 lines * prerm #!/bin/sh
Package: application
Source: application
Version: 2.3.1-1
Section: java
Priority: optional
Architecture: all
Depends: openjdk-8-jre | java8-runtime | oracle-java8-installer | openjdk-8-jre-headless
Installed-Size: 112298
Maintainer: eolgkay
Description: application
Removing intermediate container 7f7411200dbd
---> 1f9db460cbdd
Step 7/7 : RUN dpkg -i /tmp/application.deb
---> Running in bba045241db9
Selecting previously unselected package application.
(Reading database ... 12354 files and directories currently installed.)
Preparing to unpack /tmp/application.deb ...
Adding group `application' (GID 102) ...
Done.
Unpacking application (2.3.1-1) ...
dpkg: dependency problems prevent configuration of application:
application depends on openjdk-8-jre | java8-runtime | oracle-java8-installer | openjdk-8-jre-headless; however:
Package openjdk-8-jre is not installed.
Package java8-runtime is not installed.
Package oracle-java8-installer is not installed.
Package openjdk-8-jre-headless is not installed.
dpkg: error processing package application (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
application
The command '/bin/sh -c dpkg -i /tmp/application.deb' returned a non-zero code: 1
如你所见,这太奇怪了;我刚刚检查了环境(即使我知道基础是 openjdk:jdk8)并将所有内容打印到输出中。
更新我正在继续调试该问题,似乎 dpkg 安装的应用程序列表不包含 java 相关包。
Step 6/6 : RUN dpkg -l
---> Running in ac30028e4fb9
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==========================-==============================-============-===============================================================================
ii adduser 3.115 all add and remove users and groups
ii apt 1.4.9 amd64 commandline package manager
ii base-files 9.9+deb9u9 amd64 Debian base system miscellaneous files
ii base-passwd 3.5.43 amd64 Debian base system master password and group files
ii bash 4.4-5 amd64 GNU Bourne Again SHell
ii bsdutils 1:2.29.2-1+deb9u1 amd64 basic utilities from 4.4BSD-Lite
ii bzip2 1.0.6-8.1 amd64 high-quality block-sorting file compressor - utilities
ii bzr 2.7.0+bzr6619-7+deb9u1 all easy to use distributed version control system
ii ca-certificates 20161130+nmu1+deb9u1 all Common CA certificates
ii coreutils 8.26-3 amd64 GNU core utilities
ii curl 7.52.1-5+deb9u9 amd64 command line tool for transferring data with URL syntax
ii dash 0.5.8-2.4 amd64 POSIX-compliant shell
ii debconf 1.5.61 all Debian configuration management system
ii debian-archive-keyring 2017.5 all GnuPG archive keys of the Debian archive
ii debianutils 4.8.1.1 amd64 Miscellaneous utilities specific to Debian
ii diffutils 1:3.5-3 amd64 File comparison utilities
ii dirmngr 2.1.18-8~deb9u4 amd64 GNU privacy guard - network certificate management service
ii dpkg 1.18.25 amd64 Debian package management system
ii e2fslibs:amd64 1.43.4-2 amd64 ext2/ext3/ext4 file system libraries
ii e2fsprogs 1.43.4-2 amd64 ext2/ext3/ext4 file system utilities
ii findutils 4.6.0+git+20161106-2 amd64 utilities for finding files--find, xargs
ii fontconfig 2.11.0-6.7+b1 amd64 generic font configuration library - support binaries
ii fontconfig-config 2.11.0-6.7 all generic font configuration library - configuration
ii fonts-dejavu-core 2.37-1 all Vera font family derivate with additional characters
ii gcc-6-base:amd64 6.3.0-18+deb9u1 amd64 GCC, the GNU Compiler Collection (base package)
ii git 1:2.11.0-3+deb9u4 amd64 fast, scalable, distributed revision control system
ii git-man 1:2.11.0-3+deb9u4 all fast, scalable, distributed revision control system (manual pages)
ii gnupg 2.1.18-8~deb9u4 amd64 GNU privacy guard - a free PGP replacement
ii gnupg-agent 2.1.18-8~deb9u4 amd64 GNU privacy guard - cryptographic agent
ii gpgv 2.1.18-8~deb9u4 amd64 GNU privacy guard - signature verification tool
ii grep 2.27-2 amd64 GNU grep, egrep and fgrep
ii gzip 1.6-5+b1 amd64 GNU compression utilities
ii hostname 3.18+b1 amd64 utility to set/show the host name or domain name
ii init-system-helpers 1.48 all helper tools for all init systems
ii iproute2 4.9.0-1+deb9u1 amd64 networking and traffic control tools
ii iputils-ping 3:20161105-1 amd64 Tools to test the reachability of network hosts
ii libacl1:amd64 2.2.52-3+b1 amd64 Access control list shared library
ii libapr1:amd64 1.5.2-5 amd64 Apache Portable Runtime Library
ii libaprutil1:amd64 1.5.4-3 amd64 Apache Portable Runtime Utility Library
ii libapt-pkg5.0:amd64 1.4.9 amd64 package management runtime library
ii libassuan0:amd64 2.4.3-2 amd64 IPC library for the GnuPG components
ii libattr1:amd64 1:2.4.47-2+b2 amd64 Extended attribute shared library
ii libaudit-common 1:2.6.7-2 all Dynamic library for security auditing - common files
ii libaudit1:amd64 1:2.6.7-2 amd64 Dynamic library for security auditing
ii libblkid1:amd64 2.29.2-1+deb9u1 amd64 block device ID library
ii libbsd0:amd64 0.8.3-1 amd64 utility functions from BSD systems - shared library
ii libbz2-1.0:amd64 1.0.6-8.1 amd64 high-quality block-sorting file compressor library - runtime
ii libc-bin 2.24-11+deb9u4 amd64 GNU C Library: Binaries
ii libc6:amd64 2.24-11+deb9u4 amd64 GNU C Library: Shared libraries
ii libcap-ng0:amd64 0.7.7-3+b1 amd64 An alternate POSIX capabilities library
ii libcap2:amd64 1:2.25-1 amd64 POSIX 1003.1e capabilities (library)
ii libcomerr2:amd64 1.43.4-2 amd64 common error description library
ii libcurl3:amd64 7.52.1-5+deb9u9 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour)
ii libcurl3-gnutls:amd64 7.52.1-5+deb9u9 amd64 easy-to-use client-side URL transfer library (GnuTLS flavour)
ii libdb5.3:amd64 5.3.28-12+deb9u1 amd64 Berkeley v5.3 Database Libraries [runtime]
ii libdebconfclient0:amd64 0.227 amd64 Debian Configuration Management System (C-implementation library)
ii libedit2:amd64 3.1-20160903-3 amd64 BSD editline and history libraries
ii libelf1:amd64 0.168-1 amd64 library to read and write ELF files
ii liberror-perl 0.17024-1 all Perl module for error/exception handling in an OO-ish way
ii libexpat1:amd64 2.2.0-2+deb9u1 amd64 XML parsing C library - runtime library
ii libfdisk1:amd64 2.29.2-1+deb9u1 amd64 fdisk partitioning library
ii libffi6:amd64 3.2.1-6 amd64 Foreign Function Interface library runtime
ii libfontconfig1:amd64 2.11.0-6.7+b1 amd64 generic font configuration library - runtime
ii libfreetype6:amd64 2.6.3-3.2 amd64 FreeType 2 font engine, shared library files
ii libgcc1:amd64 1:6.3.0-18+deb9u1 amd64 GCC support library
ii libgcrypt20:amd64 1.7.6-2+deb9u3 amd64 LGPL Crypto library - runtime library
ii libgdbm3:amd64 1.8.3-14 amd64 GNU dbm database routines (runtime version)
ii libgmp10:amd64 2:6.1.2+dfsg-1 amd64 Multiprecision arithmetic library
ii libgnutls30:amd64 3.5.8-5+deb9u4 amd64 GNU TLS library - main runtime library
ii libgpg-error0:amd64 1.26-2 amd64 library for common error values and messages in GnuPG components
ii libgssapi-krb5-2:amd64 1.15-1+deb9u1 amd64 MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
ii libhogweed4:amd64 3.3-1+b2 amd64 low level cryptographic library (public-key cryptos)
ii libidn11:amd64 1.33-1 amd64 GNU Libidn library, implementation of IETF IDN specifications
ii libidn2-0:amd64 0.16-1+deb9u1 amd64 Internationalized domain names (IDNA2008) library
ii libjs-excanvas 0.r3-4 all HTML5 Canvas for Internet Explorer
ii libk5crypto3:amd64 1.15-1+deb9u1 amd64 MIT Kerberos runtime libraries - Crypto Library
ii libkeyutils1:amd64 1.5.9-9 amd64 Linux Key Management Utilities (library)
ii libkrb5-3:amd64 1.15-1+deb9u1 amd64 MIT Kerberos runtime libraries
ii libkrb5support0:amd64 1.15-1+deb9u1 amd64 MIT Kerberos runtime libraries - Support library
ii libksba8:amd64 1.3.5-2 amd64 X.509 and CMS support library
ii libldap-2.4-2:amd64 2.4.44+dfsg-5+deb9u2 amd64 OpenLDAP libraries
ii libldap-common 2.4.44+dfsg-5+deb9u2 all OpenLDAP common files for libraries
ii liblz4-1:amd64 0.0~r131-2+b1 amd64 Fast LZ compression algorithm library - runtime
ii liblzma5:amd64 5.2.2-1.2+b1 amd64 XZ-format compression library
ii libmnl0:amd64 1.0.4-2 amd64 minimalistic Netlink communication library
ii libmount1:amd64 2.29.2-1+deb9u1 amd64 device mounting library
ii libncurses5:amd64 6.0+20161126-1+deb9u2 amd64 shared libraries for terminal handling
ii libncursesw5:amd64 6.0+20161126-1+deb9u2 amd64 shared libraries for terminal handling (wide character support)
ii libnettle6:amd64 3.3-1+b2 amd64 low level cryptographic library (symmetric and one-way cryptos)
ii libnghttp2-14:amd64 1.18.1-1 amd64 library implementing HTTP/2 protocol (shared library)
ii libnpth0:amd64 1.3-1 amd64 replacement for GNU Pth using system threads
ii libp11-kit0:amd64 0.23.3-2 amd64 library for loading and coordinating access to PKCS#11 modules - runtime
ii libpam-modules:amd64 1.1.8-3.6 amd64 Pluggable Authentication Modules for PAM
ii libpam-modules-bin 1.1.8-3.6 amd64 Pluggable Authentication Modules for PAM - helper binaries
ii libpam-runtime 1.1.8-3.6 all Runtime support for the PAM library
ii libpam0g:amd64 1.1.8-3.6 amd64 Pluggable Authentication Modules library
ii libpcre3:amd64 2:8.39-3 amd64 Old Perl 5 Compatible Regular Expression Library - runtime files
ii libperl5.24:amd64 5.24.1-3+deb9u5 amd64 shared Perl library
ii libpng16-16:amd64 1.6.28-1+deb9u1 amd64 PNG library - runtime (version 1.6)
ii libprocps6:amd64 2:3.3.12-3+deb9u1 amd64 library for accessing process information from /proc
ii libpsl5:amd64 0.17.0-3 amd64 Library for Public Suffix List (shared libraries)
ii libpython-stdlib:amd64 2.7.13-2 amd64 interactive high-level object-oriented language (default python version)
ii libpython2.7-minimal:amd64 2.7.13-2+deb9u3 amd64 Minimal subset of the Python language (version 2.7)
ii libpython2.7-stdlib:amd64 2.7.13-2+deb9u3 amd64 Interactive high-level object-oriented language (standard library, version 2.7)
ii libreadline7:amd64 7.0-3 amd64 GNU readline and history libraries, run-time libraries
ii librtmp1:amd64 2.4+20151223.gitfa8646d.1-1+b1 amd64 toolkit for RTMP streams (shared library)
ii libsasl2-2:amd64 2.1.27~101-g0780600+dfsg-3 amd64 Cyrus SASL - authentication abstraction library
ii libsasl2-modules-db:amd64 2.1.27~101-g0780600+dfsg-3 amd64 Cyrus SASL - pluggable authentication modules (DB)
ii libselinux1:amd64 2.6-3+b3 amd64 SELinux runtime shared libraries
ii libsemanage-common 2.6-2 all Common files for SELinux policy management libraries
ii libsemanage1:amd64 2.6-2 amd64 SELinux policy management library
ii libsepol1:amd64 2.6-2 amd64 SELinux library for manipulating binary security policies
ii libserf-1-1:amd64 1.3.9-3+deb9u1 amd64 high-performance asynchronous HTTP client library
ii libsmartcols1:amd64 2.29.2-1+deb9u1 amd64 smart column output alignment library
ii libsqlite3-0:amd64 3.16.2-5+deb9u1 amd64 SQLite 3 shared library
ii libss2:amd64 1.43.4-2 amd64 command-line interface parsing library
ii libssh2-1:amd64 1.7.0-1+deb9u1 amd64 SSH2 client-side library
ii libssl1.0.2:amd64 1.0.2r-1~deb9u1 amd64 Secure Sockets Layer toolkit - shared libraries
ii libssl1.1:amd64 1.1.0j-1~deb9u1 amd64 Secure Sockets Layer toolkit - shared libraries
ii libstdc++6:amd64 6.3.0-18+deb9u1 amd64 GNU Standard C++ Library v3
ii libsvn1:amd64 1.9.5-1+deb9u3 amd64 Shared libraries used by Apache Subversion
ii libsystemd0:amd64 232-25+deb9u11 amd64 systemd utility library
ii libtasn1-6:amd64 4.10-1.1+deb9u1 amd64 Manage ASN.1 structures (runtime)
ii libtinfo5:amd64 6.0+20161126-1+deb9u2 amd64 shared low-level terminfo library for terminal handling
ii libudev1:amd64 232-25+deb9u11 amd64 libudev shared library
ii libunistring0:amd64 0.9.6+really0.9.3-0.1 amd64 Unicode string library for C
ii libustr-1.0-1:amd64 1.0.4-6 amd64 Micro string library: shared library
ii libuuid1:amd64 2.29.2-1+deb9u1 amd64 Universally Unique ID library
ii login 1:4.4-4.1 amd64 system login tools
ii lsb-base 9.20161125 all Linux Standard Base init script functionality
ii mawk 1.3.3-17+b3 amd64 a pattern scanning and text processing language
ii mercurial 4.0-1+deb9u1 amd64 easy-to-use, scalable distributed version control system
ii mercurial-common 4.0-1+deb9u1 all easy-to-use, scalable distributed version control system (common files)
ii mime-support 3.60 all MIME files 'mime.types' & 'mailcap', and support programs
ii mount 2.29.2-1+deb9u1 amd64 tools for mounting and manipulating filesystems
ii multiarch-support 2.24-11+deb9u4 amd64 Transitional package to ensure multiarch compatibility
ii ncurses-base 6.0+20161126-1+deb9u2 all basic terminal type definitions
ii ncurses-bin 6.0+20161126-1+deb9u2 amd64 terminal-related programs and man pages
ii netbase 5.4 all Basic TCP/IP networking system
ii openssh-client 1:7.4p1-10+deb9u6 amd64 secure shell (SSH) client, for secure access to remote machines
ii openssl 1.1.0j-1~deb9u1 amd64 Secure Sockets Layer toolkit - cryptographic utility
ii passwd 1:4.4-4.1 amd64 change and administer password and group data
ii perl 5.24.1-3+deb9u5 amd64 Larry Wall's Practical Extraction and Report Language
ii perl-base 5.24.1-3+deb9u5 amd64 minimal Perl system
ii perl-modules-5.24 5.24.1-3+deb9u5 all Core Perl modules
ii pinentry-curses 1.0.0-2 amd64 curses-based PIN or pass-phrase entry dialog for GnuPG
ii procps 2:3.3.12-3+deb9u1 amd64 /proc file system utilities
ii python 2.7.13-2 amd64 interactive high-level object-oriented language (default version)
ii python-bzrlib 2.7.0+bzr6619-7+deb9u1 amd64 distributed version control system - python library
ii python-configobj 5.0.6-2 all simple but powerful config file reader and writer for Python 2
ii python-minimal 2.7.13-2 amd64 minimal subset of the Python language (default version)
ii python-six 1.10.0-3 all Python 2 and 3 compatibility library (Python 2 interface)
ii python2.7 2.7.13-2+deb9u3 amd64 Interactive high-level object-oriented language (version 2.7)
ii python2.7-minimal 2.7.13-2+deb9u3 amd64 Minimal subset of the Python language (version 2.7)
ii readline-common 7.0-3 all GNU readline and history libraries, common files
ii sed 4.4-1 amd64 GNU stream editor for filtering/transforming text
ii sensible-utils 0.0.9+deb9u1 all Utilities for sensible alternative selection
ii subversion 1.9.5-1+deb9u3 amd64 Advanced version control system
ii sysvinit-utils 2.88dsf-59.9 amd64 System-V-like utilities
ii tar 1.29b-1.1 amd64 GNU version of the tar archiving utility
ii tzdata 2019a-0+deb9u1 all time zone and daylight-saving time data
ii ucf 3.0036 all Update Configuration File(s): preserve user changes to config files
ii unzip 6.0-21+deb9u1 amd64 De-archiver for .zip files
ii util-linux 2.29.2-1+deb9u1 amd64 miscellaneous system utilities
ii wget 1.18-5+deb9u3 amd64 retrieves files from the web
ii xz-utils 5.2.2-1.2+b1 amd64 XZ-format compression utilities
ii zlib1g:amd64 1:1.2.8.dfsg-5 amd64 compression library - runtime
最佳答案
2019 年 5 月 22 日,openjdk 人员改变了他们创建基础镜像的方式。通过这种方式,他们现在手动下载图像并将其解压缩到安装文件夹。因此 dpkg 没有列出安装并将 jdk 依赖包标记为不合规。
关于openjdk docker 基础上 .deb 文件的 Java 依赖失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56342419/
我在使用以下代码时遇到问题: function http_file_exists($url){ $f=fopen($url,"r"); if($f){ fclose($f); retu
我已经通过 Git 部署到 Azure 几个月了,没有出现重大问题,但现在我似乎遇到了一个无法克服的错误。 我创建了一个新的 Azure 网站,为正在开发的项目创建单独的预览链接。我在新站点上设置了
我已经通过flutter创建了一个App并完成了它,我想在flutter文档中阅读时进行部署。 我收到此错误: FAILURE: Build failed with an exception. * W
我在Windows 10中使用一些简单的Powershell代码遇到了这个奇怪的问题,我认为这可能是我做错了,但我不是Powershell的天才。 我有这个: $ix = [System.Net.Dn
我正在尝试使用 RapidJSON 解析从服务器接收到的数据。以下是收到的确切字符串: [ { "Node": "9478149a08f9", "Address": "172.17
我尝试为 ios 编译 OpenCV。我总是收到这些错误。我用不同版本的opencv试了一下,结果都是一样的。 我运行这个:python 平台/ios/build_framework.py ios_o
我在一台机器上做基本的发布/订阅,我的客户端是 StackExchange-Redis 的 C# 客户端,我在同一台机器上运行基于 Windows 的 Redis 服务器(服务器版本 2.8.4) 当
我有这段代码,但无法执行,请帮我解决这个问题 连接 connect_error) { die ("connection failed: " . $terhubung->connect_erro
我在 tomcat 上运行并由 maven 编译的 Web 应用程序给出了以下警告和错误。我可以在本地存储库中看到所有 JAR,但有人可以帮忙吗。 WARNING: Failed to scan JA
我正在 Windows 8 上使用 Android Studio 开发一个 android 应用程序,我正在使用一些 native 代码。突然间我无法编译我的 C 文件。当我运行 ndk-build
下面的代码对类和结构的成员进行序列化和反序列化。序列化工作正常,但我在尝试使用 oarch >> BOOST_SERIALIZATION_NVP(outObj); 反序列化时遇到了以下错误; 代码中是
如果我运行此命令“rspec ./spec/requests/api/v1/password_reset_request_spec.rb”,此文件中的所有测试都会通过。 但是,当我运行“rspec”时
我在尝试执行测试以使用 Protractor 上传文件时出错,我的代码是这个 it('it should be possible to upload a file', function() {
System.loadLibrary("nativefaceswap"); 当我运行我的应用程序时,我在 Android Studio 中发现了此类错误。在logcat中显示: java.lang.U
我希望有人能帮助我!使用任何方法或命令行的任何 SSL/HTTPS 调用均无效。 我在 Windows 10 中使用 Ubuntu Server 18.04 作为子系统。我的问题是昨天才开始出现的,因
通过删除这两个值将日期字段从 null=True 和 Blank=True 更改为 required 时,使用 db.alter 命令时遇到问题。 当以下行被注释掉时,迁移运行不会出现问题。
我第一次使用 Heroku 尝试创建应用程序(使用 SendGrid 的 Inbound Parse Webhook"和 Twilio SMS 通过电子邮件发送和接收 SMS 消息)。通过 Virtu
我正在将我的 swift 项目更新到 Xcode 7 上的 Swift 2.0。xcode 在构建项目时报告了以下错误: 命令/Applications/Xcode.app/Contents/Deve
在我的代码中,SSL 库函数 SSL_library_init() 没有按预期返回 1。我如何才能看到它返回了什么错误? 我在 SSL_library_init() 之后调用了 SSL_load_er
我正在尝试运行在以下链接中找到的答案: Asynchronously Load the Contents of a Div 但是当我这样做时,我会遇到我不太理解的错误。 我的代码: $(documen
我是一名优秀的程序员,十分优秀!