如何完全卸载 Eclipse 以便解决我的 Subclipse 问题?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8199352/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I completely uninstall Eclipse so I can sort out my Subclipse trouble?
提问by Smipims
I am having trouble finalising the installation of Subclipse into my Eclipse installation.
我无法完成将 Subclipse 安装到我的 Eclipse 安装中的问题。
First some background: I installed Eclipse in 64-bit Ubuntu (in a VM). I tried to install Subclipse but on the final screen, the button to finish was greyed out (apparently this is a known unresolved issue). I cancelled the installation.
首先是一些背景知识:我在 64 位 Ubuntu(在 VM 中)中安装了 Eclipse。我尝试安装 Subclipse,但在最终屏幕上,完成按钮呈灰色(显然这是一个已知的未解决问题)。我取消了安装。
The problem is that when I tried to add the plug-in again, it says that it's a duplicate location (http://subclipse.tigris.org/update_1.8.x). So I tried to search for the plug-in in the installed list (help -> about eclipse platform -> installation details), but I can't find Subclipse anywhere.
问题是当我再次尝试添加插件时,它说它是一个重复的位置(http://subclipse.tigris.org/update_1.8.x)。于是尝试在已安装列表中搜索插件(帮助->关于eclipse平台->安装详情),但是在任何地方都找不到Subclipse。
I have tried uninstalling Eclipse completely. Didn't solve the problem. I'd like to not have to completely reinstall Ubuntu in this VM. Is there any way I can completely clear any and all configurations so I can start from square one?
我已经尝试完全卸载 Eclipse。没有解决问题。我不想在这个 VM 中完全重新安装 Ubuntu。有什么方法可以完全清除任何和所有配置,以便我可以从第一个开始?
回答by Wang Ruiqi
The following solution assumes you installed with the installer (as opposed to your package manager).
There is a hidden file in your home user directory (the path is /home/user
). You can use the shortcut Ctrl+Hto discover it.
And then you would find a folder named .eclipse
, just remove this folder, as it includes all the setting you have set before.
以下解决方案假定您使用安装程序进行安装(而不是您的包管理器)。您的主用户目录中有一个隐藏文件(路径为/home/user
)。您可以使用快捷方式Ctrl+H来发现它。然后您会找到一个名为 的文件夹.eclipse
,只需删除该文件夹,因为它包含您之前设置的所有设置。
Alternatively, you can open a terminal, and use the following command:
或者,您可以打开一个终端,并使用以下命令:
rm -r ~/.eclipse
Ubuntu, and all Unix systems are similar. They are all Inheritance systems, which will keep the user's setting in home.
Ubuntu 和所有 Unix 系统都相似。它们都是继承系统,将用户的设置保留在家里。
回答by MattC
The 2 most popular ways of removing eclipse are to either
消除日食的两种最流行的方法是
go into the 'software center', search for eclipse, and then remove it, or
remove it from a terminal. For example:
$sudo apt-get autoremove --purge eclipse
进入“软件中心”,搜索 eclipse,然后将其删除,或者
从终端中删除它。例如:
$sudo apt-get autoremove --purge eclipse
1 seems to be the better way, as 2 leaves pieces behind. In either case, do the following after you remove it:
1 似乎是更好的方法,因为 2 留下了碎片。无论哪种情况,请在删除后执行以下操作:
$whereis eclipse
and if there are any pieces left behind, remove them.
如果有任何残留物,请将其移除。
You also should have a .eclipse directory in your home directory. Neither 1 nor 2 will wipe those out. So:
您的主目录中还应该有一个 .eclipse 目录。1 和 2 都不会消灭它们。所以:
home/yours$rm -r .eclipse
OK, so now to reinstall it, you could use apt-get
, or software center, or download the compressed archive file from http://www.eclipse.org/downloads/I prefer to download the latest version. I also prefer eclipse 'classic', and then I can add the features I need to it. So after downloading:
好的,现在重新安装它,您可以使用apt-get
,或软件中心,或者从http://www.eclipse.org/downloads/下载压缩存档文件。我更喜欢下载最新版本。我也更喜欢 eclipse 'classic',然后我可以添加我需要的功能。所以下载后:
$sudo tar xvf eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz -C /opt
To run:
跑步:
$/opt/eclipse/.eclipse
There are then a few different options for creating a shortcut. Here's a quick run down of one that should only take a few seconds (you may not need sudo and chmod):
然后有几个不同的选项来创建快捷方式。这是一个只需几秒钟的快速运行(您可能不需要 sudo 和 chmod):
$sudo touch /usr/share/applications/eclipse.desktop
$sudo chmod 777 /usr/share/applications/eclipse.desktop
$vim /usr/share/applications/eclipse.desktop
and paste:
并粘贴:
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse.desktop
and then run:
然后运行:
$cd /usr/local/bin
$sudo ln -s /opt/eclipse/eclipse
$eclipse
Then you can just right click on the launcher icon (in Ubuntu 12.04 at least) and lock it to the launcher.
然后您可以右键单击启动器图标(至少在 Ubuntu 12.04 中)并将其锁定到启动器。
回答by Gus
For others having this problem (as I just was):
对于其他有这个问题的人(就像我一样):
- Click "Available Software Sites" link under the "Add..." button
- Highlight the listing that is causing you the problem and click "Remove"
- Click "OK"
- Click "Add..." again and enter the URL once again
- 单击“添加...”按钮下的“可用软件站点”链接
- 突出显示导致您出现问题的列表,然后单击“删除”
- 点击“确定”
- 再次单击“添加...”并再次输入 URL
By 'this problem' I mean receiving the "Duplicate Location" error that won't let you click "OK "when you add the URL of Subclipse into the Location field after clicking "Add...".
“这个问题”是指收到“重复位置”错误,当您在单击“添加...”后将 Subclipse 的 URL 添加到“位置”字段时,它不会让您单击“确定”。
回答by robertvoliva
Start by finding any left-behind eclipse configuration:
首先找到任何遗留的 eclipse 配置:
#sudo updatedb
#sudo updatedb
#locate eclipse
#locate eclipse
This may find some things left behind you were unaware of.
这可能会发现一些你不知道的事情被抛在脑后。
回答by Ernest Friedman-Hill
The "duplicate location" is unrelated to an actual previous install of Subclipse; it just means you tried to define the update site a second time. Having defined it once, you don't need to do it again, and you'd simply skip that step on subsequent attempts. Reinstall Eclipse, and then just don't try to redefine the repository location more than once.
“重复位置”与之前实际安装的 Subclipse 无关;这只是意味着您再次尝试定义更新站点。定义一次后,您无需再次执行此操作,只需在后续尝试中跳过该步骤即可。重新安装 Eclipse,然后不要尝试多次重新定义存储库位置。
And make a nice cup of tea and relax.
泡一杯好茶,放松一下。
回答by Nisal Edu
Try the following command as root user
以 root 用户身份尝试以下命令
sudo rm -r ~/.eclipse