docker容器中apt-get update失败的解决方法
错误信息如下:
root@7d7e98d247dc:/var/www/html# apt-get update Get:1 https://community-packages.deepin.com/deepin apricot InRelease [19.6 kB] Err:1 https://community-packages.deepin.com/deepin apricot InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 425956BB3E31DF51 Reading package lists... Done W: GPG error: https://community-packages.deepin.com/deepin apricot InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 425956BB3E31DF51 E: The repository 'https://community-packages.deepin.com/deepin apricot InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
425956BB3E31DF51换成上面错误提示中的,如果sudo报错就把sudo去掉再执行
sudo gpg --keyserver keyserver.ubuntu.com --recv 425956BB3E31DF51
sudo gpg --export --armor 425956BB3E31DF51 | sudo apt-key add -
然后执行apt-get update就可以了
赞:(0)
踩:(0)
- 相关文章
- docker容器中开启php扩展,制成新镜
- docker容器中安装扩展后制成新镜像
- 如何在docker容器外执行php artisa
- docker容器如何执行composer insta
- docker容器内无法上网ping不通外网
- 将docker中的文件拷贝到docker外
- docker中nginx可以访问html无法访
- docker容器中安装amqp扩展
- docker安装及入门教程
- centos7上安装docker
- 热门文章
- win7中将文件拷贝到虚拟机linux下
- phpexcel设置行高及列宽,背景颜色,
- rabbitmq无法启动
- intellij idea不显示git push按钮
- php7中使用mongodb的aggregate进行
- centos7.4 64位下swoole安装及配置
- laravel页面静态化的方法
- navicate连接mycat报1184错误
- 单点登录sso原理及php实现方式及de
- devops-jenkins容器为pending状态
- 好评文章
- phpexcel设置行高及列宽,背景颜色,
- php7中使用mongodb的aggregate进行
- intellij idea打开文件所在文件夹
- windows下使用MongoDB Compass Com
- win7中将文件拷贝到虚拟机linux下
- laravel 中悲观锁 & 乐观锁的使用
- 单点登录sso原理及php实现方式及de
- navicate连接mycat报1184错误
- rabbitmq无法启动
- laravel整合dingo/api方法步骤:jwt
- 我的项目
- 【github】www.github.com/hurong241
- 【码云】gitee.com/hu_rong/projects
- 【docker hub】hub.docker.com/repositories/hurong241
- 【packagist】packagist.org/users/hurong241/packages
- 站点信息
- 建站时间:2011年
- 文章数:607篇
- 浏览数:948034