Raspberry Pi 2 上的 Snappy 无法安装任何内容

Raspberry Pi 2 上的 Snappy 无法安装任何内容

Snappy 根本没有安装任何东西,并且出现以下错误:

ubuntu@localhost:~$ sudo snappy install os-js.ogra
os-js.ogra     23 MB     [=================================================================]    OK    
ERROR: Could not generate AppArmor profile for 'docker_docker_1.5.0.002.json'. Skipping
Traceback (most recent call last):
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 187, in <module>
    update_systemd_units()
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 175, in update_systemd_units
    install(f)
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 54, in install
    update_content(f)
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 142, in update_content
    content = generate_systemd_unit(app_triple, pkg_path, fp)
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 78, in generate_systemd_unit
    if not is_allowed(v):
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 61, in is_allowed
    if re.match(WHITELIST, s):
  File "/usr/lib/python3.4/re.py", line 160, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 110, in run
    quiet=not options.verbose)
  File "/usr/lib/python3/dist-packages/click/install.py", line 482, in install
    path, user=user, all_users=all_users, quiet=quiet)
  File "/usr/lib/python3/dist-packages/click/install.py", line 466, in _unpack
    user_name=None)
GLib.Error: click_hooks_error-quark: Hook command '/usr/lib/snappy-systemd/systemd-snappyhook' failed: Child process exited with code 1 (6)
ubuntu@localhost:~$ sudo snappy update webdm
webdm      5 MB     [======================================================================]    OK    
Traceback (most recent call last):
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 187, in <module>
    update_systemd_units()
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 175, in update_systemd_units
    install(f)
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 54, in install
    update_content(f)
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 142, in update_content
    content = generate_systemd_unit(app_triple, pkg_path, fp)
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 78, in generate_systemd_unit
    if not is_allowed(v):
  File "/usr/lib/snappy-systemd/systemd-snappyhook", line 61, in is_allowed
    if re.match(WHITELIST, s):
  File "/usr/lib/python3.4/re.py", line 160, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
Traceback (most recent call last):
  File "/usr/bin/click", line 86, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 82, in main
    return mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/install.py", line 110, in run
    quiet=not options.verbose)
  File "/usr/lib/python3/dist-packages/click/install.py", line 482, in install
    path, user=user, all_users=all_users, quiet=quiet)
  File "/usr/lib/python3/dist-packages/click/install.py", line 466, in _unpack
    user_name=None)
GLib.Error: click_hooks_error-quark: Hook command '/usr/lib/snappy-systemd/systemd-snappyhook' failed: Child process exited with code 1 (6)
ubuntu@localhost:~$ 

答案1

平台:Raspberry PI 2 1GB https://www.raspberrypi.org/downloads/snappy/

  • 除了我尝试安装 Docker 之外,错误消息的顺序完全相同。

文件“/usr/lib/python3.4/re.py”,第 160 行,匹配
返回 _compile(pattern, flags).m​​atch(string)
TypeError: 预期字符串或缓冲区 ```

  • 一系列其他问题(例如,Snappy 教程/指南中的命令会失败) $ Snappy list -v

在连续十几期之后,决定非官方 Raspberry Pi 2 图像

已下载非官方 Raspberry Pi 2 图像:(创建时间:2015 年 4 月 15 日星期三下午 5:45)

一切都按照文档进行,现在我已经启动并运行了 Docker。

相关内容