Workaround for “Installing Software has encountered a problem” in Eclipse

I wanted to install an update in Eclipse with Help > Install new Software or Help > Check for updates. I pointed to the update site, selected what I wanted to install, but then during installation I received an error dialog like this:

Installing Software has encountered a problem

Installing Software has encountered a problem

😦

It reported this details text:

An error occurred while collecting items to be installed
 session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
 No repository found containing: org.eclipse.update.feature,com.freescale.processorexpert.pex-for-kinetis-patch1.sp,1.0.0.b150505
 No repository found containing: binary,com.freescale.processorexpert.pex-for-kinetis-patch1.sp_root,1.0.0.b150505

It happened to me especially with Kinetis Design Studio v3.0.0, trying to update with the latest patches and features from the Freescale web site. It turned out that some sites somehow had that problem, but not every Eclipse update site. But what helped was to disable  the option ‘Contact all update sites during install to find required software‘:

Disabled Contact all update sites during install to finid required software

Disabled Contact all update sites during install to find required software

So this option is not only to disable for better installation performance (see “Reduce Eclipse ‘Install New Software’ Installation Time“), but as well to fix some strange installation problems too :-).

It looks like this is a known problem in Eclipse, see http://stackoverflow.com/questions/6470802/what-to-do-about-eclipses-no-repository-found-containing-error-messages.

Happy Installing 🙂

29 thoughts on “Workaround for “Installing Software has encountered a problem” in Eclipse

  1. Pingback: Going to Mars: Building a DIY Eclipse IDE for ARM Embedded Microcontrollers | MCU on Eclipse

  2. I am facing problem when I am going to add ABAP on Perspective option in hana studio.In the below am giving the problem screen short.If you kindly provide me the right solution.Thanks in advance.
    The message is :
    An error occurred while uninstalling
    session context was:(profile=hdbstudio, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]com.sap.ide.support.feature_root.win32.win32.x86 1.13.6 –> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).
    Backup of file C:\Program Files (x86)\SAP\hdbstudio\collectSupportInformation.bat failed.
    File that was copied to backup could not be deleted: C:\Program Files (x86)\SAP\hdbstudio\collectSupportInformation.bat

    Like

    • I believe you don’t have enough access rights. It tries to write to c:\program files and you probably are not running the IDE in administrator mode.
      I hope this helps,
      Erich

      Like

  3. An error occurred while collecting items to be installed
    session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Multiple problems occurred while downloading.
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.modeling_9.1.0.201609301330.jar.pack.gz
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.modeling_9.1.0.201609301330.jar
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/features/org.eclipse.sapphire.osgi_9.1.0.201609301330.jar
    download.jboss.org
    Multiple problems occurred while downloading.
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.platform_9.1.0.201609301330.jar.pack.gz
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.platform_9.1.0.201609301330.jar
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/features/org.eclipse.sapphire.platform_9.1.0.201609301330.jar
    download.jboss.org
    Multiple problems occurred while downloading.
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.ui_9.1.0.201609301330.jar.pack.gz
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.ui_9.1.0.201609301330.jar
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/features/org.eclipse.sapphire.ui_9.1.0.201609301330.jar
    download.jboss.org
    Multiple problems occurred while downloading.
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.ui.swt.xml.editor_9.1.0.201609301330.jar.pack.gz
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.ui.swt.xml.editor_9.1.0.201609301330.jar
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/features/org.eclipse.sapphire.ui.swt.xml.editor_9.1.0.201609301330.jar
    download.jboss.org
    Multiple problems occurred while downloading.
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.workspace_9.1.0.201609301330.jar.pack.gz
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.workspace_9.1.0.201609301330.jar
    download.jboss.org
    Multiple problems occurred while downloading.
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.workspace.ui_9.1.0.201609301330.jar.pack.gz
    download.jboss.org
    Unknown Host: http://download.jboss.org/jbosstools/static/targetplatforms/jbosstoolstarget/4.63.0.Final/REPO/plugins/org.eclipse.sapphire.workspace.ui_9.1.0.201609301330.jar
    download.jboss.org

    Like

  4. An error occurred while collecting items to be installed
    session context was:(profile=_Users_mike_eclipse_java-2020-065_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Unable to read repository at http://web-cat.org/eclipse/plugins/net.sf.eclipsecs.checkstyle_6.8.0.201507251301.jar.
    Premature end of Content-Length delimited message body (expected: 4,445,947; received: 685,995)
    Unable to read repository at http://web-cat.org/eclipse/plugins/net.sourceforge.pmd.eclipse.plugin_4.0.7.v20150522-1709.jar.
    Premature end of Content-Length delimited message body (expected: 33,477,128; received: 678,392)

    Like

    • It sounds that your network connection just ended in the middle of the transfer. The reason could be a wireless access point not stable enough. Use a wired connection instead. And check your firewall settings: if in doubt, disable it during the connection. Hopefully this helps.

      Like

  5. Still encounter the issue after doing this.

    An error occurred while collecting items to be installed
    session context was:(profile=C__Users_P101CSPH1_eclipse_java-2021-03_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Problems downloading artifact: osgi.bundle,org.apache.poi,3.9.0.v201405241750.
    SHA-256 hash is not as expected. Expected: 3d5f2dd7f26d27782497675cda0585b99b95c8f27b6c4706f2b67b05b53511e5 and found 9a5a14b788cdbc2c41e4eff1f6512599f73636da9893b604a6e08d3307a95399.
    Problems downloading artifact: osgi.bundle,org.apache.poi.ooxml.schemas,3.9.0.v201405241750.
    SHA-256 hash is not as expected. Expected: 6beeb8dee4190749f216a7872ac1b129051adfba1cff54ae6b69c8cc0a741593 and found cc66ec84ccb78f955d93e64d1783c96f0080d2ee8afd29f3c172179b3c118630.

    Like

    • Your problem seems to be a different one, as the hash is not matching. It looks like you have a really bad network connection causing corrupted packets somehow. If you are on a wireless connection, try switching to a wired one.

      Like

  6. Anyone who knows please write your response:

    An error occurred while collecting items to be installed
    session context was:(profile=C__Users_syuon_eclipse_java-2021-09_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Result of processing steps.
    OK
    OK
    Public key not found for -5034155639734203956.
    OK

    Like

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.