Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can't update package ENOTFOUND

Discussion in 'Package Manager' started by christianmahler, May 20, 2020.

  1. christianmahler

    christianmahler

    Joined:
    Jul 9, 2017
    Posts:
    33
    Anyone else having problems using the package manager at the moment? When I try to update a package it gives me:

    Cannot perform upm operation: Unable to add package [com.unity.postprocessing@2.2.0]:
    Cannot connect to 'download.staging-packages.unity.com:443' (error code: ENOTFOUND). Verify your environment firewall policies allow connection to this host name. If your system is behind a proxy, verify your proxy environment variables (HTTP_PROXY and HTTPS_PROXY) are properly set.

    nslookup download.staging-packages.unity.com local from my pc as well as from my server gives me:

    server can't find download.staging-packages.unity.com: NXDOMAIN

    Edit: DNS server is Googles 8.8.8.8, both server and local
     
    Last edited: May 20, 2020
    Noisecrime likes this.
  2. christianmahler

    christianmahler

    Joined:
    Jul 9, 2017
    Posts:
    33
    Solved it by removing
    from Packages/manifest.json

    No idea why this was in there or why it is not reachable anymore.
     
    janhildebrand likes this.
  3. bulladvisor

    bulladvisor

    Joined:
    Nov 7, 2019
    Posts:
    3
    My problem is equal
     
  4. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Did you try what the OP posted above?
     
  5. J_Ripley

    J_Ripley

    Joined:
    Oct 14, 2021
    Posts:
    7
     
  6. J_Ripley

    J_Ripley

    Joined:
    Oct 14, 2021
    Posts:
    7
    Looked at your comment and opened the manifest.json file but that line of code you mentioned was not in there. The following is code in the manifst.json that tI have.


    "dependencies": {
    "com.unity.2d.animation": "5.0.9",
    "com.unity.2d.pixel-perfect": "4.0.1",
    "com.unity.2d.psdimporter": "4.1.2",
    "com.unity.2d.sprite": "1.0.0",
    "com.unity.2d.spriteshape": "5.1.5",
    "com.unity.2d.tilemap": "1.0.0",
    "com.unity.collab-proxy": "1.13.5",
    "com.unity.ide.rider": "2.0.7",
    "com.unity.ide.visualstudio": "2.0.11",
    "com.unity.ide.vscode": "1.2.4",
    "com.unity.test-framework": "1.1.29",
    "com.unity.textmeshpro": "3.0.6",
    "com.unity.timeline": "1.4.8",
    "com.unity.ugui": "1.0.0",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
    }
    }
     
  7. J_Ripley

    J_Ripley

    Joined:
    Oct 14, 2021
    Posts:
    7
    In the packages-lock.json seen the url so not sure if you mean to delete all the lines that contains the URL address but the word staging was not there. So not exactly sure what you deleted and need help on this

    {
    "dependencies": {
    "com.unity.2d.animation": {
    "version": "5.0.9",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.2d.common": "4.0.3",
    "com.unity.mathematics": "1.1.0",
    "com.unity.2d.sprite": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.uielements": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.2d.common": {
    "version": "4.0.3",
    "depth": 1,
    "source": "registry",
    "dependencies": {
    "com.unity.2d.sprite": "1.0.0",
    "com.unity.modules.uielements": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.2d.path": {
    "version": "4.0.2",
    "depth": 1,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.2d.pixel-perfect": {
    "version": "4.0.1",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.2d.psdimporter": {
    "version": "4.1.2",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.2d.common": "4.0.3",
    "com.unity.2d.animation": "5.0.9",
    "com.unity.2d.sprite": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.2d.sprite": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.2d.spriteshape": {
    "version": "5.1.5",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.mathematics": "1.1.0",
    "com.unity.2d.common": "4.0.3",
    "com.unity.2d.path": "4.0.2",
    "com.unity.modules.physics2d": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.2d.tilemap": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.collab-proxy": {
    "version": "1.13.5",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.nuget.newtonsoft-json": "2.0.0",
    "com.unity.services.core": "1.0.1"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.ext.nunit": {
    "version": "1.0.6",
    "depth": 1,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.ide.rider": {
    "version": "2.0.7",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.test-framework": "1.1.1"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.ide.visualstudio": {
    "version": "2.0.11",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.test-framework": "1.1.9"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.ide.vscode": {
    "version": "1.2.4",
    "depth": 0,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.mathematics": {
    "version": "1.1.0",
    "depth": 1,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.nuget.newtonsoft-json": {
    "version": "2.0.0",
    "depth": 1,
    "source": "registry",
    "dependencies": {},
    "url": "https://packages.unity.com"
    },
    "com.unity.services.core": {
    "version": "1.0.1",
    "depth": 1,
    "source": "registry",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.test-framework": {
    "version": "1.1.29",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.ext.nunit": "1.0.6",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.textmeshpro": {
    "version": "3.0.6",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.ugui": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.timeline": {
    "version": "1.4.8",
    "depth": 0,
    "source": "registry",
    "dependencies": {
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0"
    },
    "url": "https://packages.unity.com"
    },
    "com.unity.ugui": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.imgui": "1.0.0"
    }
    },
    "com.unity.modules.ai": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.androidjni": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.animation": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.assetbundle": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.audio": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.cloth": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0"
    }
    },
    "com.unity.modules.director": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.animation": "1.0.0"
    }
    },
    "com.unity.modules.imageconversion": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.imgui": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.jsonserialize": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.particlesystem": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.physics": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.physics2d": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.screencapture": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.imageconversion": "1.0.0"
    }
    },
    "com.unity.modules.subsystems": {
    "version": "1.0.0",
    "depth": 1,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.jsonserialize": "1.0.0"
    }
    },
    "com.unity.modules.terrain": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.terrainphysics": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.terrain": "1.0.0"
    }
    },
    "com.unity.modules.tilemap": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics2d": "1.0.0"
    }
    },
    "com.unity.modules.ui": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.uielements": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.uielementsnative": "1.0.0"
    }
    },
    "com.unity.modules.uielementsnative": {
    "version": "1.0.0",
    "depth": 1,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0"
    }
    },
    "com.unity.modules.umbra": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.unityanalytics": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequest": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.unitywebrequestassetbundle": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequestaudio": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.audio": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequesttexture": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0"
    }
    },
    "com.unity.modules.unitywebrequestwww": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0"
    }
    },
    "com.unity.modules.vehicles": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0"
    }
    },
    "com.unity.modules.video": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0"
    }
    },
    "com.unity.modules.vr": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
    }
    },
    "com.unity.modules.wind": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {}
    },
    "com.unity.modules.xr": {
    "version": "1.0.0",
    "depth": 0,
    "source": "builtin",
    "dependencies": {
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.subsystems": "1.0.0"
    }
    }
    }
    }
     
  8. reza1383325

    reza1383325

    Joined:
    Jan 18, 2022
    Posts:
    1
    my problem is equal :(
     
  9. Mid_plays

    Mid_plays

    Joined:
    Jan 26, 2022
    Posts:
    22
    I also have the same problem but only occurs on specific packages e.g yep, burst compile
     
  10. dwexel

    dwexel

    Joined:
    Sep 29, 2022
    Posts:
    2
    same here
     
  11. sabrorxojaev

    sabrorxojaev

    Joined:
    Feb 1, 2022
    Posts:
    1
    deleting actuallly does not solves the issue, you are just not trying to load package after you deleted it in manifest.
    "Solution": If you don't need specific package that triggers error (in case of question author it is "staging"), you can remove it from manifest.
    Actual Solution: i don't know yet. But you can re-install error triggering package
     
  12. JorgeMcGill

    JorgeMcGill

    Joined:
    Sep 9, 2023
    Posts:
    1
    The error message suggests that your system is unable to connect to 'download.staging-packages.unity.com' because it can't resolve the hostname.

    Here are some steps you can take to resolve this issue:

    • Check Your Internet Connection: Ensure that your internet connection is stable and working correctly. Sometimes, connectivity issues can cause problems with package downloads.
    • DNS Configuration: It looks like you've already checked the DNS server and it's set to Google's DNS server (8.8.8.8), which is a commonly used and reliable DNS server. However, you might want to double-check your DNS settings to make sure there are no typos or other issues.
    • DNS Cache: Clear your DNS cache to make sure there are no cached entries causing the issue. You can do this by opening a command prompt or terminal and running the following command:
    ipconfig /flushdns  # For Windows

    OR


    sudo service systemd-resolved restart # For Linux (systemd-resolved)


    • Network Proxy: If you are behind a corporate network or using a proxy, ensure that your proxy settings are correctly configured, and that Unity's package manager is set up to use the proxy if necessary. You can usually configure proxy settings in Unity through Edit -> Project Settings -> Network.
    • Firewall Rules: As the error message suggests, check your firewall settings to ensure that they allow connections to 'download.staging-packages.unity.com.' If you have a firewall or security software running, it might be blocking Unity's access to this domain.
    • Hosts File: Check your computer's hosts file to ensure that there are no entries that could be redirecting 'download.staging-packages.unity.com' to the wrong IP address. The hosts file is usually located at C:\Windows\System32\drivers\etc\hosts on Windows and /etc/hosts on Linux.
    • Unity Version: Ensure that you are using a compatible version of Unity with the package you are trying to update. Sometimes, package compatibility issues can cause problems.
     
  13. mikajudoka

    mikajudoka

    Joined:
    Feb 29, 2024
    Posts:
    2
    Hello, I had a similar problem.
    Solved it very easily...run as administrator.
    It may solve many similar problems.