gpt4 book ai didi

docker - Alpine :3.14 docker libtls.so.20 冲突

转载 作者:行者123 更新时间:2023-12-04 11:06:32 32 4
gpt4 key购买 nike

所以我遇到了来自 alpine 的最新 docker build 的错误。 alpine:3.14.0 大约在一天前发布,并试图安装 libressl 和 libressl-dev,但两者似乎都失败并出现以下错误。我目前的工作是使用 alpine:3.12.0 进行构建,因为 3.12.0 似乎没有安装 libretls。虽然我想知道如何解决这个问题。我试图删除 libretls 但这没有用(下面也有错误)。谢谢

$ docker -v
Docker version 20.10.6, build 370c289
$ docker run --rm -it alpine /bin/ash
/ # apk add libressl-dev
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/5) Installing libressl3.3-libcrypto (3.3.3-r0)
(2/5) Installing libressl3.3-libssl (3.3.3-r0)
(3/5) Installing libressl3.3-libtls (3.3.3-r0)
ERROR: libressl3.3-libtls-3.3.3-r0: trying to overwrite usr/lib/libtls.so.20 owned by libretls-3.3.3-r0.
ERROR: libressl3.3-libtls-3.3.3-r0: trying to overwrite usr/lib/libtls.so.20.0.3 owned by libretls-3.3.3-r0.
(4/5) Installing pkgconf (1.7.4-r0)
(5/5) Installing libressl-dev (3.3.3-r0)
Executing busybox-1.33.1-r2.trigger
1 error; 41 MiB in 19 packages
/ #
/ # apk info libretls
libretls-3.3.3-r0 description:
port of libtls from libressl to openssl

libretls-3.3.3-r0 webpage:
https://git.causal.agency/libretls/

libretls-3.3.3-r0 installed size:
84 KiB
/ #
/ # apk del libretls
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/main: No such file or directory
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.14/community: No such file or directory
World updated, but the following packages are not removed due to:
libretls: busybox alpine-baselayout apk-tools

OK: 6 MiB in 14 packages
/ # exit

最佳答案

this是上游问题。降级到 alpine 3.13 暂时有效,直到问题得到解决。
通常 docker 镜像支持固定的 alpine 版本(感谢 MrGlass 评论)。例如

python:3-alpine -> python:3-alpine3.13
php:7.4-fpm-alpine -> php:7.4-fpm-alpine3.13

关于docker - Alpine :3.14 docker libtls.so.20 冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68013058/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com