修改docker中的sources.list后运行apt update报错Certificate verification failed

我把Debian-oldstable-slim的docker 镜像拉到本地,启动容器,替换容器中的/etc/apt/sources.list为ustc的oldstable源,执行apt update时提示错误,下面是截图:

https://hub.docker.com/layers/library/debian/oldstable-slim/images/sha256-8372492443ff267f75a49530cb32154e7097c1e5b3a353ee3a8c58d870e2228b?context=explore

不换源的话,直接apt update需要的时间太长,应该咋弄能快起来?

No system certificates available. Try installing ca-certificates.

首先使用 http 版本的镜像源,尝试安装 ca-certificates 软件包,然后换回 https 版本的镜像源重试。

1 个赞