当我尝试使用 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/