Debain9.9 修复漏洞遇到的问题以及解决方法 -- CVE-2018-1000802:Python shutil模块中的命令注入

1.
修复命令: sudo apt-get install dirmngr sudo gcc
错误信息:
Executing: /tmp/apt-key-gpghome.9nsQzgbYKL/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/run/user/0/gnupg/d.8xpm5dxs3idaqqiwb7wtpfuc/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr


2.
错误信息:
E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
步骤:
1. 找到错误原因:grep -ri stable /etc
会有以下类似信息:
/etc/apt/apt.conf.d/71distro:APT::Default-Release "stable";
/etc/apt/apt.conf.d/71distro:APT::Default-Release "stable";
/etc/apt/apt.conf.d/71distro:APT::Default-Release "stable";
/etc/apt/apt.conf.d/71distro:APT::Default-Release "stable";
/etc/apt/apt.conf.d/71distro:APT::Default-Release "stable";
清空文件中内容保存,并继续后面操作即可:
nano /etc/apt/apt.conf.d/71distro



3.
修复命令:将错误信息中的秘钥替换上去就可以
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
错误信息:
Err:3 http://mirrors.cloud.aliyuncs.com/debian stretch-proposed-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Err:4 http://mirrors.cloud.aliyuncs.com/debian stretch-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirrors.cloud.aliyuncs.com/debian stretch-proposed-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirrors.cloud.aliyuncs.com/debian stretch-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
W: Failed to fetch http://mirrors.cloud.aliyuncs.com/debian/dists/stretch-proposed-updates/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
W: Failed to fetch http://mirrors.cloud.aliyuncs.com/debian/dists/stretch-backports/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7-minimal is already the newest version (2.7.13-2+deb9u5).
The following package was automatically installed and is no longer required:
  libopts25
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 141 not upgraded.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值