(1) Background
之前删除文件时候,不小心将文件夹里面所有文件都删除了,包括一些应用软件(pycharm,eclipse),在使用恢复软件恢复之后,不过没能成功,文件是没有回来,于是决定重新安装.
(2) Description of the problem
本想着文件被删除了,也就是应用被卸载,但情况不是.
Download the file from Pycharm official website, unzip the installation, the installation step is to run under the ./bin
folder pycharm.sh
, so the problem comes, when the execution of this script, will run the Pycharm program directly, unable to implement reinstall program.
-–> guess whether there are some files or configuration is not deleted completely, so has been looking for the complete removal of the software under Ubuntu command
sudo apt-get autoremovesudo apt-get --purge remove pycharm
But none of them worked.
(3) Problem solving process
Find some clues in the StackOverflow to find the problem.
pycharm licence can be too costly...but you can renew the demo usage every time by deleting the .pycharm file
Located at:pycharm所在位置
/home/<user_name>/
It can hidden so press:我这里存在这种情况,文件都是隐藏的,需要用下面的命令显示
Ctrl+h
and delete the file:找到pycharm目录,删除
.pycharm<version number>
Then relaunch the application and it'll behave as the first time
(4) Results
Using the above method, you can successfully reinstall Pycharm, of course, if you re-use this similar situation, you may consider this workaround.
Resources:
[1]http://stackoverflow.com/questions/9940451/how-uninstall-pycharm-and-rubymine
[2]http://www.cnblogs.com/forward/archive/2012/01/10/2318483.html
[3]http://my.oschina.net/u/989893/blog/264244
The Ubuntu system re-installs the Pycharm after the file is mistakenly deleted.