在 Deepin OS 15.4 中添加 ppa 时出现问题

在 Deepin OS 15.4 中添加 ppa 时出现问题

我运行的是 Deepin OS 15.4,它基于 Debian不稳定。

当我输入:

sudo add-apt-repository ppa:nilarimogard/webupd8

我得到:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

扩大:

安装 gnupg2 并运行其他命令后,我得到:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

扩大:

现在,运行上述两个命令后,它再次出现第一个错误。

答案1

以下命令应手动导入密钥:

sudo add-apt-key 531EE72F4C9D234C

尝试一下并报告回来。

答案2

我相信问题可能是 Alin 的密钥不可用...请看一下例如,您将在第二张图片中看到公钥应该类似于

“启动 webupd8 ......”

而你的只显示“Launchpad webupd8”

您是否已经尝试过将此 PPA 添加到您的系统关联?如果你有,那么也许你应该联系阿林·安德烈并报告问题。

相关内容