• 构建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
  • 相关阅读:
    论文阅读_自然语言模型加知识图谱_DKPLM
    Web server failed to start. Port 8080 was already in use
    Node.js中的Buffer
    生成验证码
    linux常用的命令
    数据库的备份和恢复
    你真的了解Java异常处理机制吗?
    设计模式-迭代器模式-笔记
    IC设计高级018:一种主动的流控实现方式
    Linux的简单认识和云主机的使用教程
  • 原文地址:https://blog.csdn.net/BingKing88/article/details/128096717