I tried to update my Pinephone CE using “sudo apk upgrade -a” and received the error

“Not continuing due to stale/unavailable repositories. Use --force-missing-repositories to continue”

I am on 23.12 with Phosh. I remember hearing that the Pinephone may be getting dropped from main to community so I wasn’t sure if this was related to that or something different. Is it safe to use the command it suggests ? I figured I would ask before blindly doing it.

  • linmob
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    This sounds more like a network problem, maybe something on your end or that one of the repos was temporarily unreachable (usually it’s the postmarketOS repo for me in such situations). I recommend running sudo apk update in situations like this and reading through the output. Depending on which repo is unreachable (= if it’s one of the alpine repos) it may be a better idea to delay upgrading.

    It definitely has nothing to do with the device being dropped from main to community — both categories mean that the device is served by stable.

    Hope this helps!

    • PublicLewdnessOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      8 months ago

      I tried the update command and the repos that the error occur on are

      “http:////dl-cdn.alpinelinux.org/alpine/3.19/main”

      “http:////dl-cdn.alpinelinux.org/alpine/3.19/community”

      I don’t get the error on my Pinebook Pro which si also on PostmarketOS 23.12 if that matters.

      • ollieparanoidM
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        Haven’t seen that error yet, but I’d suggest trying other Alpine mirrors (set them in your /etc/apk/repositories): https://mirrors.alpinelinux.org/

        (there’s also “apk fix” which helps when installing a package failed earlier for whatever reason, but that doesn’t seem to be the cause here)