创建一个docker容器,更换为https的软件源之后,执行apt-get update一直卡在0%,这大概是因为它不支持https。
解决方案
恢复为http源,可以用网易镜像站( http://mirrors.163.com/.help/ubuntu.html )或者使用默认软件源。
安装apt-transport-https
apt-get update
apt-get install -y apt-transport-https
然后就可以换到https源了。
创建一个docker容器,更换为https的软件源之后,执行apt-get update一直卡在0%,这大概是因为它不支持https。
恢复为http源,可以用网易镜像站( http://mirrors.163.com/.help/ubuntu.html )或者使用默认软件源。
安装apt-transport-https
apt-get update
apt-get install -y apt-transport-https
然后就可以换到https源了。
文章评论