I don't know if my problem is caused by this bug.

Here are my summary:

$ sudo apt-get purge click
[sudo] password for chen: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  click*
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 0 个软件包未被升级。
解压缩后将会空出 166 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 313386 个文件和目录。)
正在卸载 click (0.4.38.5) ...
Traceback (most recent call last):
  File "/usr/bin/click", line 31, in <module>
    from click import commands
ImportError: cannot import name 'commands'
dpkg: 处理软件包 click (--purge)时出错:
 子进程 已安装 pre-removal 脚本 返回错误状态 1
Job for click-system-hooks.service failed. See "systemctl status 
click-system-hooks.service" and "journalctl -xe" for details.
click-system-hooks.service couldn't start.
在处理时有错误发生:
 click
E: Sub-process /usr/bin/dpkg returned an error code (1)
chen@Chen-Server:~$ systemctl status click-system-hooks.service
● click-system-hooks.service - Run Click system-level hooks
   Loaded: loaded (/lib/systemd/system/click-system-hooks.service; enabled; 
vendor preset: enabled)
   Active: failed (Result: exit-code) since 一 2015-07-06 18:21:06 CST; 10s ago
     Docs: man:click(1)
  Process: 4032 ExecStart=/usr/bin/click hook run-system (code=exited, 
status=1/FAILURE)
 Main PID: 4032 (code=exited, status=1/FAILURE)

 7月 06 18:21:06 Chen-Server systemd[1]: Starting Run Click system-level hooks...
 7月 06 18:21:06 Chen-Server click[4032]: Traceback (most recent call last):
 7月 06 18:21:06 Chen-Server click[4032]: File "/usr/bin/click", line 31, in 
<module>
 7月 06 18:21:06 Chen-Server click[4032]: from click import commands
 7月 06 18:21:06 Chen-Server click[4032]: ImportError: cannot import name 
'commands'
 7月 06 18:21:06 Chen-Server systemd[1]: click-system-hooks.service: main 
process exited, code=exited, status=1/FAILURE
 7月 06 18:21:06 Chen-Server systemd[1]: Failed to start Run Click system-level 
hooks.
 7月 06 18:21:06 Chen-Server systemd[1]: Unit click-system-hooks.service entered 
failed state.
 7月 06 18:21:06 Chen-Server systemd[1]: click-system-hooks.service failed.
$

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1448623

Title:
  package click 0.4.38.5 failed to install/upgrade: 子进程 新的 pre-removal
  脚本 返回错误状态 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1448623/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to