Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

系统版本代号问题 #5

Open
wangchengtao opened this issue Nov 29, 2022 · 0 comments
Open

系统版本代号问题 #5

wangchengtao opened this issue Nov 29, 2022 · 0 comments

Comments

@wangchengtao
Copy link

背景

  1. docker-compose.yml 文件做了以下修改:
  • 关闭php72,打开 php73
  • 关闭 sftp 和 rmq
  1. Dockerfile 替换 composer 下载:
RUN curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar \
    && chmod a+x /usr/local/bin/composer \
    && composer --version \
    && composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \
    && apt-get update -y \
    && apt-get install -y --no-install-recommends apt-utils \
    && apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libzip-dev unzip\
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/  --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install pdo_mysql zip gd opcache bcmath pcntl sockets

结果

执行 docker compose up -d,报以下错误:

ERROR [ 3/16] RUN curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar     && chmod a+x /usr/local/bin/composer     && composer --version     && composer config -g repo.packagist composer h  24.6s
------                                                                                                                                                                                                                                 
 > [ 3/16] RUN curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar     && chmod a+x /usr/local/bin/composer     && composer --version     && composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/     && apt-get update -y     && apt-get install -y --no-install-recommends apt-utils     && apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libzip-dev unzip    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/  --with-jpeg-dir=/usr/include/     && docker-php-ext-install pdo_mysql zip gd opcache bcmath pcntl sockets:
#0 1.905 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
#0 1.905 Do not run Composer as root/super user! See https://getcomposer.org/root for details
#0 1.905 Composer version 2.4.4 2022-10-27 14:39:29
#0 1.975 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
#0 1.975 Do not run Composer as root/super user! See https://getcomposer.org/root for details
#0 2.354 Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease [122 kB]
#0 3.505 Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [56.6 kB]
#0 3.673 Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [51.4 kB]
#0 3.829 Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease [34.8 kB]
#0 4.040 Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free amd64 Packages [87.8 kB]
#0 4.201 Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main amd64 Packages [7909 kB]
#0 20.29 Get:7 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib amd64 Packages [50.1 kB]
#0 20.39 Get:8 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main amd64 Packages [8788 B]
#0 20.39 Get:9 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main amd64 Packages [487 kB]
#0 21.37 Get:10 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib amd64 Packages [9196 B]
#0 21.39 Get:11 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free amd64 Packages [37.2 kB]
#0 21.56 Get:12 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/main amd64 Packages [405 kB]
#0 23.22 Get:13 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/non-free amd64 Packages [556 B]
#0 23.28 Fetched 9260 kB in 21s (435 kB/s)
#0 23.28 Reading package lists...
#0 23.82 Reading package lists...
#0 24.33 Building dependency tree...
#0 24.46 Reading state information...
#0 24.51 Some packages could not be installed. This may mean that you have
#0 24.51 requested an impossible situation or if you are using the unstable
#0 24.51 distribution that some required packages have not yet been created
#0 24.51 or been moved out of Incoming.
#0 24.51 The following information may help to resolve the situation:
#0 24.51 
#0 24.51 The following packages have unmet dependencies:
#0 24.56  apt-utils : Depends: apt (= 1.8.2.3) but 2.2.4 is to be installed
#0 24.57 E: Unable to correct problems, you have held broken packages.
------
failed to solve: executor failed running [/bin/sh -c curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar     && chmod a+x /usr/local/bin/composer     && composer --version     && composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/     && apt-get update -y     && apt-get install -y --no-install-recommends apt-utils     && apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libzip-dev unzip    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/  --with-jpeg-dir=/usr/include/     && docker-php-ext-install pdo_mysql zip gd opcache bcmath pcntl sockets]: exit code: 100

apt-utils : Depends: apt (= 1.8.2.3) but 2.2.4 is to be installed 根据这个提示应该是系统版本问题导致,需要校正resources/sources.list 中的系统版本代号

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant