Error running update check on R Pi 5

  • I am setting up a new omv on R Pi 5 and after I search for updates I get the error below.


    I am sure some people know this by heart by I am fully blocked.


    Thank you in advance!


    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=; apt-get update 2>&1' with exit code '100': 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 https://openmediavault-plugin-…github.io/packages/debian sandworm InRelease

    Get:6 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]

    Err:6 http://security.debian.org/debian-security bookworm-security InRelease

    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8

    Get:7 http://httpredir.debian.org/debian bookworm-backports InRelease [59.0 kB]

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

    Err:7 http://httpredir.debian.org/debian bookworm-backports InRelease

    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131

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

    Hit:10 http://raspbian.raspberrypi.com/raspbian bookworm InRelease

    Hit:11 http://archive.raspberrypi.com/debian bookworm InRelease

    Reading package lists...


    W: GPG error: http://security.debian.org/debian-security bookworm-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8

    E: The repository 'http://security.debian.org/debian-security bookworm-security InRelease' is not signed.

    W: GPG error: http://httpredir.debian.org/debian bookworm-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131

    E: The repository 'http://httpredir.debian.org/debian bookworm-backports InRelease' is not signed.

    W: http://raspbian.raspberrypi.co…dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.


    OMV\ExecException: 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=; apt-get update 2>&1' with exit code '100': 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 https://openmediavault-plugin-…github.io/packages/debian sandworm InRelease

    Get:6 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]

    Err:6 http://security.debian.org/debian-security bookworm-security InRelease

    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8

    Get:7 http://httpredir.debian.org/debian bookworm-backports InRelease [59.0 kB]

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

    Err:7 http://httpredir.debian.org/debian bookworm-backports InRelease

    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131

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

    Hit:10 http://raspbian.raspberrypi.com/raspbian bookworm InRelease

    Hit:11 http://archive.raspberrypi.com/debian bookworm InRelease

    Reading package lists...


    W: GPG error: http://security.debian.org/debian-security bookworm-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8

    E: The repository 'http://security.debian.org/debian-security bookworm-security InRelease' is not signed.

    W: GPG error: http://httpredir.debian.org/debian bookworm-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131

    E: The repository 'http://httpredir.debian.org/debian bookworm-backports InRelease' is not signed.

    W: http://raspbian.raspberrypi.co…dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. in /usr/share/openmediavault/engined/rpc/apt.inc:258

    Stack trace:

    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): Engined\Rpc\Apt->Engined\Rpc\{closure}()

    #1 /usr/share/openmediavault/engined/rpc/apt.inc(251): OMV\Rpc\ServiceAbstract->execBgProc()

    #2 [internal function]: Engined\Rpc\Apt->update()

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    #5 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()

    #6 {main}

  • Looks like Raspberry OS does not install the Debian Bookworm keyrings. OMV depends on them and they are installed automatically due to package dependencies, so I can only assume their keyring package is broken.

    Do you use a 32bit image?



    I think I’m on 64


    I see:

    7.4.15-2 (Sandworm)

    Linux 6.6.62+rpt-rpi-v8

    • Official Post

    I think I’m on 64

    Make sure you were using the 64-bit version of the image. What is the filename of the image?

    If it is no 64-bit, reinstall using the correct image

    If it is 64-bit, try

    omv-aptclean repos

  • Make sure you were using the 64-bit version of the image. What is the filename of the image?

    If it is no 64-bit, reinstall using the correct image

    If it is 64-bit, try

    omv-aptclean repos

    omv-aptclean repos

    1. Cleaning apt cache files...

    E: Could not open lock file /var/cache/apt/archives/lock - open (13: Permission denied)

    E: Unable to lock directory /var/cache/apt/archives/

    E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)

    E: Unable to lock directory /var/lib/apt/lists/

    W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)

    W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)


    2. Clearing available dpkg packages...

    dpkg: error: required write access to dpkg database directory '/var/lib/dpkg' for bulk available update


    3. Removing apt lists...

    rm: cannot remove '/var/lib/apt/lists/_var_cache_openmediavault_archives_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/archive.raspberrypi.com_debian_dists_bookworm_InRelease': Permission denied

    rm: cannot remove '/var/lib/apt/lists/archive.raspberrypi.com_debian_dists_bookworm_main_binary-arm64_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/archive.raspberrypi.com_debian_dists_bookworm_main_binary-armhf_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/auxfiles': Permission denied

    rm: cannot remove '/var/lib/apt/lists/lock': Permission denied

    rm: cannot remove '/var/lib/apt/lists/openmediavault-plugin-developers.github.io_packages_debian_dists_sandworm_InRelease': Permission denied

    rm: cannot remove '/var/lib/apt/lists/openmediavault-plugin-developers.github.io_packages_debian_dists_sandworm_main_binary-armhf_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/openmediavault.github.io_packages_dists_sandworm_InRelease': Permission denied

    rm: cannot remove '/var/lib/apt/lists/openmediavault.github.io_packages_dists_sandworm_main_binary-arm64_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/openmediavault.github.io_packages_dists_sandworm_main_binary-armhf_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/packages.openmediavault.org_public_dists_sandworm_InRelease': Permission denied

    rm: cannot remove '/var/lib/apt/lists/packages.openmediavault.org_public_dists_sandworm_main_binary-arm64_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/packages.openmediavault.org_public_dists_sandworm_main_binary-armhf_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/partial': Permission denied

    rm: cannot remove '/var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_bookworm_InRelease': Permission denied

    rm: cannot remove '/var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_bookworm_contrib_binary-armhf_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_bookworm_main_binary-armhf_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_bookworm_non-free_binary-armhf_Packages': Permission denied

    rm: cannot remove '/var/lib/apt/lists/raspbian.raspberrypi.com_raspbian_dists_bookworm_rpi_binary-armhf_Packages': Permission denied


    4. Removing OpenMediaVault cache packages...

    rm: cannot remove '/var/cache/openmediavault/archives/Packages': Permission denied


    5. Creating new OpenMediaVault packages file...

    touch: cannot touch '/var/cache/openmediavault/archives/Packages': Permission denied


    6. Remove old omv-extras apt list files...

    removed '/etc/apt/sources.list.d/omvextras.list'


    7. Adding omv-extras repo and key...

    /usr/sbin/omv-aptclean: line 79: /etc/apt/sources.list.d/omvextras.list: Permission denied

    /usr/sbin/omv-aptclean: line 80: /usr/share/keyrings/omvextras.gpg: Permission denied

    chmod: cannot access '/etc/apt/sources.list.d/omvextras.list': No such file or directory

    chmod: changing permissions of '/usr/share/keyrings/omvextras.gpg': Operation not permitted


    8. Updating apt...

    Reading package lists... Done

    E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)

    E: Unable to lock directory /var/lib/apt/lists/

    W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)

    W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)


    9. Saving current package list...

    /usr/sbin/omv-aptclean: line 114: /var/cache/openmediavault/currently_installed_packages.list: Permission denied


    10. Updating plugin index...

    Creating index of upgradeable packages ...

    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 172, in main

    with open(

    ^^^^^

    PermissionError: [Errno 13] Permission denied: '/var/lib/openmediavault/apt/upgradeindex.json'

  • "sudo omv-aptclean repos "seems better


    But at the end:


    W: GPG error: http://security.debian.org/debian-security bookworm-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54404762BBB6E853 NO_PUBKEY BDE6D2B9216EC7A8

    E: The repository 'http://security.debian.org/debian-security bookworm-security InRelease' is not signed.

    N: Updating from such a repository can't be done securely, and is therefore disabled by default.

    N: See apt-secure(8) manpage for repository creation and user configuration details.

    W: GPG error: http://httpredir.debian.org/debian bookworm-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131

    E: The repository 'http://httpredir.debian.org/debian bookworm-backports InRelease' is not signed.

    N: Updating from such a repository can't be done securely, and is therefore disabled by default.

    N: See apt-secure(8) manpage for repository creation and user configuration details.

    W: http://raspbian.raspberrypi.co…dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

  • dpkg --print-architecture

    armhf

    There's your answer.

    You downloaded a 32Bit version of RaspiOS.


    Start again but use the proper 64Bit version:



    Follow the instructions on the wiki and don't skip steps:

    omv7:raspberry_pi_install [omv-extras.org]

  • Start from the beginning, flashing the RaspiOS to the card by following what is on the wiki

  • Well so far something is messed up.

    Installed 2024-11-19-raspios-bookworm-arm64-lite.img.xz, enabled ssh

    Installed omv - ssh is gone (!)

    I used these steps:
    https://pimylifeup.com/raspberry-pi-openmediavault/


    Tried running the LAN interface setup via omv-firstaid and got a bunch of system errors.


    Assuming it's a pilot problem and will have to redo all steps again.


    (Thinking aloud - I am away from my home now and will try to do it on WiFi and test that omv is good)


    Thx

  • You continue to complicate what is really Simple.

    Why using a guide that isn't anywhere mentioned to use on the forum and NOT the one I told you from the wiki that is the official endorsed one?


    There's steps to be done BEFORE installing OMV.

    Read it and follow it properly.

  • You continue to complicate what is really Simple.

    Why using a guide that isn't anywhere mentioned to use on the forum and NOT the one I told you from the wiki that is the official endorsed one?


    There's steps to be done BEFORE installing OMV.

    Read it and follow it properly.

    Please recommend the one that needs to be used.


    TIA

Participate now!

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