0

我之前在 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++(我认为是靛蓝)?
  2. 如果命令行不起作用,那么最新的 C++ eclipse 站点是什么?
  3. 如何为这个 Eclipse 安装正确的 CDT 以便它可以很好地用于调试(这是我的根本问题)?
4

1 回答 1

0

我最近从 apt 安装时遇到了一些问题(Ubuntu 11.10)。我最终从这里下载了一个构建,然后安装到自定义位置 [/home/usrname/programs/eclipse]。这是我能让市场运作的唯一方法。

于 2011-11-06T10:29:56.120 回答