# Unknown package error related to TLS issue

**URL:** https://discourse.elm-lang.org/t/unknown-package-error-related-to-tls-issue/10372
**Category:** Learn
**Created:** [August 6, 2025, 11:18am UTC](https://discourse.elm-lang.org/t/unknown-package-error-related-to-tls-issue/10372 "2025-08-06T11:18:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dwayne](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dwayne/32/5478_2.png) [@dwayne](https://discourse.elm-lang.org/u/dwayne)
#### Post date: [August 6, 2025, 11:18am UTC](https://discourse.elm-lang.org/t/unknown-package-error-related-to-tls-issue/10372/1 "2025-08-06T11:18:24Z")

</div>

I recently released a package and tried using it in an old project. After trying to `elm install` the package I got the following error:

```txt
-- UNKNOWN PACKAGE -------------------------------------------------------------

I cannot find a package named name/package.

I could not connect to https://package.elm-lang.org though, so new packages may
have been published since I last updated my local cache of package names.

Looking through the locally cached names, the closest ones are:

    name1/package1
    name2/package2
    name3/package3
    name4/package4

Maybe you want one of these instead?

```

It seemed related to: [Elm init tls issue](https://discourse.elm-lang.org/t/elm-init-tls-issue/10231)

A fix was merged: [elmPackages.elm: Fix runtime TLS connection to package.elm-lang.org by turboMaCk · Pull Request #414495 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/414495) . However, my `devbox.lock` for the project had an older version of the compiler.

```json
"elmPackages.elm@latest": {
      "last_modified": "2025-05-06T08:06:31Z",
      "resolved": "github:NixOS/nixpkgs/1cb1c02a6b1b7cf67e3d7731cbbf327a53da9679#elmPackages.elm",
      "source": "devbox-search",
      "version": "0.19.1",
      "systems": {
	      ...
      }
}

```

That version didn’t have the fix: [nixpkgs/pkgs/development/compilers/elm/packages/ghc9\_6/default.nix at 1cb1c02a6b1b7cf67e3d7731cbbf327a53da9679 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/blob/1cb1c02a6b1b7cf67e3d7731cbbf327a53da9679/pkgs/development/compilers/elm/packages/ghc9_6/default.nix)

However, I checked [elmPackages.elm | How to install with Nix or Devbox](https://www.nixhub.io/packages/elmPackages.elm) and the latest version found there did have the fix: [nixpkgs/pkgs/development/compilers/elm/packages/ghc9\_6/default.nix at a421ac6595024edcfbb1ef950a3712b89161c359 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/blob/a421ac6595024edcfbb1ef950a3712b89161c359/pkgs/development/compilers/elm/packages/ghc9_6/default.nix)

So, I updated `elmPackages.elm` in my `devbox.lock`.

```bash
devbox update elmPackages.elm

```

And, it solved the issue. Just sharing in case it could help someone else.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)
#### Post date: [August 16, 2025, 11:18am UTC](https://discourse.elm-lang.org/t/unknown-package-error-related-to-tls-issue/10372/2 "2025-08-16T11:18:40Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
