• 构建ubuntu base 出现apt update错误


    apt-get update 错误
    Get:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease [242 kB]
    Err:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
      Couldn't create temporary file /tmp/apt.conf.Kzzptk for passing config to apt-key
    Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]
    Err:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
      Couldn't create temporary file /tmp/apt.conf.0UK24m for passing config to apt-key
    Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [83.3 kB]
    Err:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
      Couldn't create temporary file /tmp/apt.conf.6Yqv5I for passing config to apt-key
    Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB]
    Err:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
      Couldn't create temporary file /tmp/apt.conf.iGeQGJ for passing config to apt-key
    Reading package lists... Done
    W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic InRelease: Couldn't create temporary file /tmp/apt.conf.Kzzptk for passing config to apt-key
    E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic 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.
    W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease: Couldn't create temporary file /tmp/apt.conf.0UK24m for passing config to apt-key
    E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-updates 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.
    W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.6Yqv5I for passing config to apt-key
    E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-backports 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.
    W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease: Couldn't create temporary file /tmp/apt.conf.iGeQGJ for passing config to apt-key
    E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-security 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.

    解决办法:

    chmod 1777 /tmp
  • 相关阅读:
    从零开始学习 Java:简单易懂的入门指南之IO字符流(三十一)
    WSL2配置图形界面-MATE
    Python requests有问题
    消息中间件-RabbitMQ
    造轮子之设置管理
    软件包管理—源码包管理—源码包安装过程
    【技术分享】NetLogon于域内提权漏洞(CVE-2020-1472)
    任务流程----
    基于真实场景解读 K8s Pod 的各种异常
    Leetcode 1
  • 原文地址:https://blog.csdn.net/BingKing88/article/details/128096717