![如何在 libertine 容器中添加 PPA?](https://linux22.com/image/1137391/%E5%A6%82%E4%BD%95%E5%9C%A8%20libertine%20%E5%AE%B9%E5%99%A8%E4%B8%AD%E6%B7%BB%E5%8A%A0%20PPA%EF%BC%9F.png)
我正在尝试安装 Corebird (适用于 Ubuntu 14.04 的 Corebird Twitter 客户端) 位于我的 M10 平板电脑上名为 libertine 的容器中vivid
。添加 PPA 后,包中显示的 PPA~/.cache/libertine-container/vivid/rootfs/etc/apt/sources.list.d
仍然无法安装。
我努力了:
libertine-container-manager install-package -d vivid -p corebird
并从 shell 内部 (在 libertine 容器中访问 git)容器内部:
apt-get install
我在这里遗漏了什么?
答案1
我怀疑这可能还无法实现。
从libertine-container-manager --help
我认为命令应该是
libertine-container-manager configure -a "ppa:ubuntuhandbook1/corebird" -i vivid
相当于apt-get update
libertine-container-manager update -i vivid
您将通过 找到这些内容以及更多内容libertine-container-manager --help
。
但是,当我执行第一个命令时出现以下错误:
phablet@ubuntu-phablet:~$ libertine-container-manager configure -a "ppa:ubuntuhandbook1/corebird" -i vivid
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 321, in get_ppa_info
ret = get_ppa_info_from_lp(user, ppa)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 91, in get_ppa_info_from_lp
return get_info_from_lp(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in get_info_from_lp
return _get_https_content_py3(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in _get_https_content_py3
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
capath=capath)
File "/usr/lib/python3.4/ssl.py", line 437, in create_default_context
context.load_verify_locations(cafile, capath, cadata)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 119, in <module>
shortcut = shortcut_handler(line)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 837, in shortcut_handler
ret = factory(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 382, in shortcut_handler
return PPAShortcutHandler(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 346, in __init__
info = get_ppa_info(self.shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 333, in get_ppa_info
_get_suggested_ppa_message(user, ppa))
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 292, in _get_suggested_ppa_message
lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 87, in get_info_from_lp
return _get_https_content_py3(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 101, in _get_https_content_py3
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.4/urllib/request.py", line 151, in urlopen
capath=capath)
File "/usr/lib/python3.4/ssl.py", line 437, in create_default_context
context.load_verify_locations(cafile, capath, cadata)
FileNotFoundError: [Errno 2] No such file or directory