当我尝试使用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)
答案 0 :(得分:0)
尝试使用此命令强制重新安装ipython?
sudo apt-get --reinstall install ipython