V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alex58
V2EX  ›  程序员

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

  •  
  •   alex58 · 93 天前 · 490 次点击
    这是一个创建于 93 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

    2 条回复    2022-09-07 11:49:10 +08:00
    julyclyde
        1
    julyclyde  
       93 天前   ❤️ 1
    1 把 debian 拼写对!!
    2 不要混用不同版本的源
    3 不要用所谓“一键”脚本
    julyclyde
        2
    julyclyde  
       93 天前
    4 别自己编译
    关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   2923 人在线   最高记录 5497   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:25 · PVG 20:25 · LAX 04:25 · JFK 07:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.