ubuntu - ipython apt-get 安装/删除问题

标签 ubuntu ipython apt-get

当我尝试使用 ipython 时,我不能......但是当我安装它或使用 apt-get 列出时,它说它已经存在了。但是,当我尝试删除它时,我也不能。我被困住了!如何使用 apt-get 使 ipython 处于可用状态?
(在 Ubuntu 14.04 上工作)

selah@selah-OptiPlex-9020:~$ ipython
The program 'ipython' is currently not installed. You can install it by typing:
sudo apt-get install ipython

selah@selah-OptiPlex-9020:~$ sudo apt-get install ipython
[sudo] password for selah: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ipython is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

selah@selah-OptiPlex-9020:~$ apt --installed list | grep ipython
ipython/trusty,now 1.2.1-2 all [installed]
ipython-qtconsole/trusty,now 1.2.1-2 all [installed]

selah@selah-OptiPlex-9020:~$ sudo apt-get remove ipython
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  ipython ipython-qtconsole
0 upgraded, 0 newly installed, 2 to remove and 25 not upgraded.
After this operation, 3,688 kB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: warning: files list file for package 'doc-base' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'smartgithg': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

selah@selah-OptiPlex-9020:~$ sudo dpkg --configure -a
selah@selah-OptiPlex-9020:~$ sudo apt-get install --reinstall ipython
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 25 not upgraded.
Need to get 0 B/588 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package ipython.
dpkg: warning: files list file for package 'doc-base' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'smartgithg': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

最佳答案

试试这个命令强制重新安装 ipython?

sudo apt-get --reinstall install ipython

关于ubuntu - ipython apt-get 安装/删除问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31996939/

相关文章:

node.js - Ubuntu EC2 端口开放问题

python - 为什么 IPython.display.Image 没有显示在输出中?

matplotlib - 在两个不同的数据文件上运行相同的 IPython notebook 代码,并进行比较

linux - 如何比较两台机器之间安装的 Linux 包

linux - 如何修复 "invalid signature when apt-get update"错误?

java - 在 ubuntu 14.04 上安装 tomcat 8.0.24

linux - systemtap 无法在 Ubuntu : "unable to find a suitable compile server" 上运行

ruby-on-rails - 无法访问 docker 容器

python - 使用 "long"(包装)在 jupyter notebook 中显示 "foldover"pandas 数据框?

node.js - 在 ubuntu 12.04 下以多种方式安装 node.js 0.10.26 失败