unable to udate OMV (No priority (or zero) specified for pin) (resolved)

  • Everything has been working really well, and I have not logged in to do any updates in a while and something is amiss.



    When I try ti update via GUI it errors out with

    Upgrade system

    ** CONNECTION LOST **


    Close

    500 - Internal Server Error
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-broken --fix-missing --auto-remove --allow-unauthenticated --show-upgraded --option DPkg::Options::="--force-confold" dist-upgrade 2>&1' with exit code '100': Reading package lists... E: No priority (or zero) specified for pin



    if I SSH to it as root and try just OMV


    root@omvdirect:~# sudo omv-upgrade

    Get:1 file:/var/cache/openmediavault/archives InRelease

    Ign:1 file:/var/cache/openmediavault/archives InRelease

    Get:2 file:/var/cache/openmediavault/archives Release

    Ign:2 file:/var/cache/openmediavault/archives Release

    Get:3 file:/var/cache/openmediavault/archives Packages

    Ign:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-en

    Ign:4 file:/var/cache/openmediavault/archives Translation-en

    Get:3 file:/var/cache/openmediavault/archives Packages

    Ign:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-en

    Ign:4 file:/var/cache/openmediavault/archives Translation-en

    Get:3 file:/var/cache/openmediavault/archives Packages

    Ign:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-en

    Ign:4 file:/var/cache/openmediavault/archives Translation-en

    Get:3 file:/var/cache/openmediavault/archives Packages

    Ign:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-en

    Ign:4 file:/var/cache/openmediavault/archives Translation-en

    Get:3 file:/var/cache/openmediavault/archives Packages

    Ign:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-en

    Ign:4 file:/var/cache/openmediavault/archives Translation-en

    Get:3 file:/var/cache/openmediavault/archives Packages

    Ign:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-en

    Ign:4 file:/var/cache/openmediavault/archives Translation-en

    Get:3 file:/var/cache/openmediavault/archives Packages

    Get:4 file:/var/cache/openmediavault/archives Translation-en

    Ign:4 file:/var/cache/openmediavault/archives Translation-en

    Hit:5 http://deb.debian.org/debian bookworm InRelease

    Hit:6 http://deb.debian.org/debian bookworm-updates InRelease

    Hit:7 http://repository.netdata.cloud/repos/edge/debian bullseye/ InRelease

    Hit:8 http://security.debian.org/debian-security bookworm-security InRelease

    Hit:9 http://packages.openmediavault.org/public sandworm InRelease

    Hit:10 https://openmediavault.github.io/packages sandworm InRelease

    Hit:11 http://httpredir.debian.org/debian bookworm-backports InRelease

    Hit:12 https://openmediavault-plugin-…github.io/packages/debian sandworm InRelease

    Hit:13 https://download.docker.com/linux/debian bookworm InRelease

    Get:14 https://openmediavault.github.io/packages sandworm-proposed InRelease [5451 B]

    Hit:15 http://repository.netdata.cloud/repos/repoconfig/debian bullseye/ InRelease

    Hit:16 http://packages.openmediavault.org/public sandworm-proposed InRelease

    Fetched 5451 B in 1s (5462 B/s)

    Traceback (most recent call last):

    File "/usr/sbin/omv-mkaptidx", line 236, in <module>

    sys.exit(main())

    ^^^^^^

    File "/usr/lib/python3/dist-packages/click/core.py", line 1130, in __call__

    return self.main(*args, **kwargs)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3/dist-packages/click/core.py", line 1055, in main

    rv = self.invoke(ctx)

    ^^^^^^^^^^^^^^^^

    File "/usr/lib/python3/dist-packages/click/core.py", line 1404, in invoke

    return ctx.invoke(self.callback, **ctx.params)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3/dist-packages/click/core.py", line 760, in invoke

    return __callback(*args, **kwargs)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/usr/sbin/omv-mkaptidx", line 128, in main

    cache = apt.cache.Cache()

    ^^^^^^^^^^^^^^^^^

    File "/usr/lib/python3/dist-packages/apt/cache.py", line 170, in __init__

    self.open(progress)

    File "/usr/lib/python3/dist-packages/apt/cache.py", line 232, in open

    self._cache = apt_pkg.Cache(progress)

    ^^^^^^^^^^^^^^^^^^^^^^^

    apt_pkg.Error: E:No priority (or zero) specified for pin

    Reading package lists... Done

    Reading package lists... Done

    E: No priority (or zero) specified for pin


    It seems that there was an issue with netdata, found a solution on StackExchange

    apt suddenly broke with error No priority (or zero) specified for pin
    I'm facing an error returned by apt and after many troubleshooting steps I couldn't find the cause or solution. Here is the apt update output: $ sudo apt…
    askubuntu.com


    edit /etc/apt/preferences.d/80netdata and change the line:

    Code
    Priority: 1000

    to:

    Code
    Pin-Priority: 1000



    worked for me.

    OMV7 on Beelink mini-PC i3-N305 32GB 500GB NVME 2TB Crucial SATA 2x2,5 intel NIC

    • Official Post

    Glad you found it but OMV didn't add that pinning.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.6 | compose 7.6.6 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!