完全卸载后无法安装c ++ eclipse indigo

我之前在Ubuntu(虚拟机)中使用以下命令成功安装了Indigo eclipse:

sudo apt-get install eclipse sudo apt-get install eclipse-cdt 

但是,当我从“安装新软件”选项卡进行更新时,它搞砸了。 运行以下命令后,我完全删除了eclipse。

 sudo apt-get remove --purge eclipse sudo apt-get autoremove sudo rm -rf /usr/bin/eclipse /usr/lib/eclipse/ /usr/share/eclipse /usr/share/man/man1/eclipse.1.gz /etc/eclipse.ini 

但是,现在我想再次在我的Ubuntu中安装eclipse。 当我运行上面的命令时,它根本不顺利并且在执行后停止:

 milind@milind-VirtualUbuntuOneiric:~$ sudo apt-get install eclipse Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: eclipse 0 upgraded, 1 newly installed, 0 to remove and 147 not upgraded. Need to get 0 B/17.3 kB of archives. After this operation, 131 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! eclipse Install these packages without verification [y/N]? y Selecting previously deselected package eclipse. (Reading database ... 133931 files and directories currently installed.) Unpacking eclipse (from .../eclipse_3.7.0-0ubuntu1_all.deb) ... Setting up eclipse (3.7.0-0ubuntu1) ... milind@milind-VirtualUbuntuOneiric:~$ 

尝试了这么久(多次重启VBox),但没有运气。 你能帮我解决一下:

  1. 如何从命令行安装eclipse for C ++(我认为indigo)就像我之前做的那样?
  2. 如果命令行不起作用,那么最新的C ++ eclipse网站是什么?
  3. 如何为这个eclipse安装适当的CDT,以便它可以很好地用于调试(这是我的根本问题)?

Eclipse IDE的优点是您不需要安装它。 当您下载Eclipse时,您将获得一个zip文件,您可以将其解压缩到主目录中的某个位置,然后从该目录执行它。
如果您将访问Eclipse下载站点,您将看到可用包的列表,您可以在其中选择适用于C / C ++开发人员Eclipse IDE (32/64位)并下载zip文件。

您还将获得最新版本(v3.7.2),它比您在存储库中找到的版本更新。

我所做的是:从Eclipse主页下载Eclipse CDT ,在文件夹X中“压缩”它。从文件夹X打开Eclipse,选择工作区文件夹就是这样。