diban 安装 docker yml 一直报错 zlib1g-dev 安装不上

2022-09-06 21:43:59 +08:00
 alex58

diban 跑一个 docker 一直报错 zlib1-dev 安装不上 ,也试了试网上说的 aptitude ,可是依然无法解决 请教下大佬 怎么处理

The following information may help to resolve the situation: #0 7.918 #0 7.918 The following packages have unmet dependencies: #0 7.962 libfreetype6-dev : Depends: zlib1g-dev but it is not going to be installed or #0 7.962 libz-dev #0 7.962 libpng-dev : Depends: zlib1g-dev but it is not going to be installed #0 7.971 E: Unable to correct problems, you have held broken packages.

failed to solve: executor failed running [/bin/sh -c ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone && sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/.conf && sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/.conf && mv /etc/apt/sources.list /etc/apt/sources.list.bak && echo "deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib" >/etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/debian-security stretch/updates main" >>/etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib" >>/etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" >>/etc/apt/sources.list && apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev && docker-php-ext-install pdo_mysql && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && docker-php-ext-install -j$(nproc) gd && apt-get clean && apt-get autoclean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*]: exit code: 100

930 次点击
所在节点    程序员
2 条回复
julyclyde
2022-09-07 08:35:18 +08:00
1 把 debian 拼写对!!
2 不要混用不同版本的源
3 不要用所谓“一键”脚本
julyclyde
2022-09-07 11:49:10 +08:00
4 别自己编译

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/878189

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX