dongyi5817 2019-01-28 14:49
浏览 75

当PEAR关闭时,在Docker容器中安装MDB2

While pear is down, the following instruction in my dockerfile is failing:

RUN pear install -o --alldeps MDB2-beta && \

I've searched on the internet how to install MDB2 without pear, successfully accomplished it by downloading the .deb file from https://packages.ubuntu.com/search?keywords=php-mdb2 and then doing dpkg -i php-mdb2_2.5.0b5-2_all.deb

My issue is that the same instructions are failing when placed in the dockerfile. Here's the instructions:

RUN wget http://mirrors.edge.kernel.org/ubuntu/pool/universe/p/php-mdb2/php-mdb2_2.5.0b5-2_all.deb -O php-mdb2_2.5.0b5-2_all.deb
RUN dpkg -i php-mdb2_2.5.0b5-2_all.deb

Here's the error message:

dpkg: dependency problems prevent configuration of php-mdb2: php-mdb2 depends on php-common; however: Package php-common is not installed. php-mdb2 depends on php-pear (>= 1.3.6); however: Package php-pear is not installed.

I've tried to manually search and install all dependencies, and dependencies' dependencies but failed at the end because one of them is being told to me that it'll break locales thus cannot be installed.

Also tried another solution I found in stackOverflow to install dependencies for dpkg but it also fails. Instructions:

RUN wget http://mirrors.edge.kernel.org/ubuntu/pool/universe/p/php-mdb2/php-mdb2_2.5.0b5-2_all.deb -O php-mdb2_2.5.0b5-2_all.deb
RUN dpkg -i php-mdb2_2.5.0b5-2_all.deb || true && \
apt-get -f install

Error received:

dpkg: error processing package php-mdb2 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: php-mdb2 Reading package lists... Building dependency tree... Reading state information... Correcting dependencies... Done The following packages will be REMOVED: php-mdb2 0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded. 1 not fully installed or removed. After this operation, 528 kB disk space will be freed. Do you want to continue? [Y/n] Abort. ERROR: Service 'app' failed to build: The command '/bin/sh -c dpkg -i php-mdb2_2.5.0b5-2_all.deb || true && apt-get -f install' returned a non-zero code: 1 Makefile:8: recipe for target 'build' failed make: *** [build] Error 1

Can you point me in the right path maybe?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog