Ubuntu Can';“没有模块名称,无法开始工作”;点击";
在我上一次apt升级后,我注意到TensorFlow停止工作。我试图再次更新所有软件,现在我的apt收到了关于“点击”模块的投诉Ubuntu Can';“没有模块名称,无法开始工作”;点击";,ubuntu,apt,Ubuntu,Apt,在我上一次apt升级后,我注意到TensorFlow停止工作。我试图再次更新所有软件,现在我的apt收到了关于“点击”模块的投诉 %sudo-apt-get-install-f!9045 正在阅读软件包列表。。。多恩 构建依赖树 正在读取状态信息。。。多恩 正在更正依赖项。。。多恩 将安装以下附加软件包: 点击 建议套餐: 单击审阅者工具ubuntu应用程序启动工具| upstart应用程序启动工具 以下软件包将升级: 点击 1个已升级,0个新安装,0个要删除,8个未升级。 需要获取0 B/14
%sudo-apt-get-install-f!9045
正在阅读软件包列表。。。多恩
构建依赖树
正在读取状态信息。。。多恩
正在更正依赖项。。。多恩
将安装以下附加软件包:
点击
建议套餐:
单击审阅者工具ubuntu应用程序启动工具| upstart应用程序启动工具
以下软件包将升级:
点击
1个已升级,0个新安装,0个要删除,8个未升级。
需要获取0 B/14,5 kB的存档。
执行此操作后,将使用0 B的额外磁盘空间。
你想继续吗?[Y/n]Y
(正在读取数据库…482732个当前安装的文件和目录。)
准备解包…/单击\u 0.4.43+16.04.20170613-0ubuntu1\u amd64.deb。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/click”,第37行,在
导入点击
导入错误:没有名为“单击”的模块
dpkg:警告:子进程旧的预删除脚本返回错误退出状态1
dpkg:正在尝试从新包中执行脚本。。。
回溯(最近一次呼叫最后一次):
文件“/usr/bin/click”,第37行,在
导入点击
导入错误:没有名为“单击”的模块
dpkg:处理归档文件/var/cache/apt/archives/click_0.4.43+16.04.20170613-0ubuntu1_amd64.deb(--解包)时出错:
子流程新建预删除脚本返回错误退出状态1
click-system-hooks.service的作业失败,因为控制进程已退出,并显示错误代码。有关详细信息,请参阅“systemctl状态单击系统挂钩.service”和“journalctl-xe”。
click-system-hooks.service无法启动。
处理时遇到错误:
/var/cache/apt/archives/click_0.4.43+16.04.20170613-0ubuntu1_amd64.deb
E:子流程/usr/bin/dpkg返回错误代码(1)
我无法安装任何软件包,因为它被卡住了
这是Ubuntu 16.10您是否尝试过使用PIP而不是Apt进行安装?如果没有,请执行以下操作:
sudo-apt-install-python-pip
pip安装单击
或sudo pip安装单击
我在Ubuntu 16.04上遇到了一个类似的问题,通过以下回答中给出的说明解决了这个问题: 它主要包括:
- 手动从
/usr/local/lib/pythonX.Y/dist包中删除所有
单击
文件夹(可能有几个;我必须在
/usr/local/lib/python2.7/dist包和
/usr/local/lib/python3.4/dist包中都这么做)李>
- 然后运行
sudo-apt-get-update&&sudo-apt-get-install-f
- 然后运行
% sudo apt-get install -f !9045
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
click
Suggested packages:
click-reviewers-tools ubuntu-app-launch-tools | upstart-app-launch-tools
The following packages will be upgraded:
click
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/14,5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 482732 files and directories currently installed.)
Preparing to unpack .../click_0.4.43+16.04.20170613-0ubuntu1_amd64.deb ...
Traceback (most recent call last):
File "/usr/bin/click", line 37, in <module>
import click
ImportError: No module named 'click'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/click", line 37, in <module>
import click
ImportError: No module named 'click'
dpkg: error processing archive /var/cache/apt/archives/click_0.4.43+16.04.20170613-0ubuntu1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Job for click-system-hooks.service failed because the control process exited with error code. See "systemctl status click-system-hooks.service" and "journalctl -xe" for details.
click-system-hooks.service couldn't start.
Errors were encountered while processing:
/var/cache/apt/archives/click_0.4.43+16.04.20170613-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)