Error when updating

  • Hi All,


    I recently did a new install of OMV 5 (about a month ago) and everything was working fine. Since then I installed home assistant (supervised) in a docker container. I followed a youtube tutorial for this as I couldn't figure out how to get the supervised version otherwise. In that toutorial I was instructed to update some things and alter files manually and since then I cant update OMV and apt-get update doesnt work either.


    When trying to update using the OMV GUI I get the following error:

    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; apt-get update 2>&1' with exit code '100': E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ buster: /usr/share/keyrings/docker-archive-keyring.gpg != E: The list of sources could not be read.

    Error #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; apt-get update 2>&1' with exit code '100': E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ buster: /usr/share/keyrings/docker-archive-keyring.gpg !=
    E: The list of sources could not be read. in /usr/share/openmediavault/engined/rpc/apt.inc:245
    Stack trace:
    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): Engined\Rpc\Apt->Engined\Rpc\{closure}('/tmp/bgstatusHp...', '/tmp/bgoutputdy...')
    #1 /usr/share/openmediavault/engined/rpc/apt.inc(249): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
    #2 [internal function]: Engined\Rpc\Apt->update(NULL, Array)
    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('update', NULL, Array)
    #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Apt', 'update', NULL, Array, 1)
    #6 {main}


    When using apt-get update in the terminal it returns the following:

    E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ buster: /usr/share/keyrings/docker-archive-keyring.gpg !=

    E: The list of sources could not be read.


    I tried opening the the two files listed to compair but docker-archive-keyrings is a gpg file and appears to be encrypted.


    Any suggestions would be much appreciated. Cheers.

  • crashtest

    Approved the thread.
    • Official Post

    Try running: sudo omv-salt deploy run omvextras

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!

    • Official Post

    I can't read it. When zooming in, it gets blurry.

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!

  • Sorry. Text pasted below.


    login as: root

    root@192.168.1.101's password:

    Linux PlexServer 5.10.0-0.bpo.8-amd64 #1 SMP Debian 5.10.46-2~bpo10+1 (2021-07-2 2) x86_64


    The programs included with the Debian GNU/Linux system are free software;

    the exact distribution terms for each program are described in the

    individual files in /usr/share/doc/*/copyright.


    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

    permitted by applicable law.

    Last login: Sat Aug 14 00:41:39 2021 from 192.168.1.113

    root@PlexServer:~# sudo omv-salt deploy run omvextras

    debian:

    ----------

    ID: omvextrasbaserepo

    Function: pkgrepo.managed

    Name: deb https://openmediavault-plugin-…github.io/packages/debian usul main

    Result: True

    Comment: Package repo 'deb https://openmediavault-plugin-…github.io/packages/debian usul main' already configured

    Started: 01:07:20.935852

    Duration: 100.721 ms

    Changes:

    ----------

    ID: deb https://openmediavault-plugin-…github.io/packages/debian usul-testing main

    Function: pkgrepo.absent

    Result: True

    Comment: Package repo deb https://openmediavault-plugin-…github.io/packages/debian usul-testing main is absent

    Started: 01:07:21.036795

    Duration: 36.004 ms

    Changes:

    ----------

    ID: deb https://openmediavault-plugin-…github.io/packages/debian usul-extras main

    Function: pkgrepo.absent

    Result: True

    Comment: Package repo deb https://openmediavault-plugin-…github.io/packages/debian usul-extras main is absent

    Started: 01:07:21.072954

    Duration: 30.942 ms

    Changes:

    ----------

    ID: deb [arch=amd64] https://download.docker.com/linux/debian buster stable

    Function: pkgrepo.managed

    Result: True

    Comment: Package repo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' already configured

    Started: 01:07:21.104009

    Duration: 102.575 ms

    Changes:

    ----------

    ID: deb http://linux.teamviewer.com/deb stable main

    Function: pkgrepo.managed

    Result: True

    Comment: Package repo 'deb http://linux.teamviewer.com/deb stable main' already configured

    Started: 01:07:21.206717

    Duration: 52.592 ms

    Changes:

    ----------

    ID: configure_apt_pref_omvextras

    Function: file.managed

    Name: /etc/apt/preferences.d/omvextras.pref

    Result: True

    Comment: File /etc/apt/preferences.d/omvextras.pref is in the correct state

    Started: 01:07:21.278868

    Duration: 29.801 ms

    Changes:

    ----------

    ID: refresh_database_apt

    Function: module.run

    Result: False

    Comment: An exception occurred in this state: Traceback (most recent call last):

    File "/usr/lib/python3/dist-packages/salt/state.py", line 2172, in call

    *cdata["args"], **cdata["kwargs"]

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2316, in wrapper

    return f(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 746, in _decorate

    return self._call_function(kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 377, in _call_function

    six.reraise(*sys.exc_info())

    File "/usr/lib/python3/dist-packages/salt/ext/six.py", line 693, in reraise

    raise value

    File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 360, in _call_function

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

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 428, in run

    _func, returner=kwargs.get("returner"), func_args=kwargs.get(func)

    File "/usr/lib/python3/dist-packages/salt/states/module.py", line 473, in _call_function

    mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs)

    File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 159, in call_function

    return salt_function(*function_args, **function_kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__

    return self.loader.run(run_func, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/modules/aptpkg.py", line 406, in refresh_db

    raise CommandExecutionError(comment)

    salt.exceptions.CommandExecutionError: E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ buster: /usr/share/keyrings/docker-archive-keyring.gpg !=

    E: The list of sources could not be read.

    Started: 01:07:21.321165

    Duration: 59.258 ms

    Changes:


    Summary for debian

    ------------

    Succeeded: 6

    Failed: 1

    ------------

    Total states run: 7

    Total run time: 411.893 ms

    root@PlexServer:~# apt-get update

    E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ buster: /usr/share/keyrings/docker-archive-keyring.gpg !=

    E: The list of sources could not be read.

    • Official Post

    Ok. Try:


    sudo rm /usr/share/keyrings/docker-archive-keyring.gpg

    sudo omv-salt deploy run omvextras

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!

    • Official Post

    sudo rm /etc/apt/trusted.gpg.d/docker-ce.gpg

    sudo omv-salt deploy run omvextras

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!

    • Official Post

    ok. this worked on my system:


    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

    sudo apt-key add /usr/share/keyrings/docker-archive-keyring.gpg

    sudo apt-get update

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!

    • Official Post

    try: sudo update-ca-certificates -f then those steps from post #10 again.

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!

  • Still no change


    root@PlexServer:~# sudo update-ca-certificates -f

    Clearing symlinks in /etc/ssl/certs...

    done.

    Updating certificates in /etc/ssl/certs...

    137 added, 0 removed; done.

    Running hooks in /etc/ca-certificates/update.d...

    done.

    root@PlexServer:~# curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

    File '/usr/share/keyrings/docker-archive-keyring.gpg' exists. Overwrite? (y/N) y

    root@PlexServer:~# sudo apt-key add /usr/share/keyrings/docker-archive-keyring.gpg

    OK

    root@PlexServer:~# sudo apt-get update

    E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ buster: /usr/share/keyrings/docker-archive-keyring.gpg !=

    E: The list of sources could not be read.

    root@PlexServer:~#

  • I've found the solution.


    I had to remove the source list file for docker as well.

    rm /etc/apt/sources.list.d/docker.list


    Thanks for your help.

    • Official Post

    I had to remove the source list file for docker as well.

    While that will work, you won't get any more docker package updates.

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!

  • I ran into this the issue come from https://docs.nvidia.com/datace…install-guide.html#docker


    Code
    To get access to experimental features such as CUDA on WSL or the new MIG capability on A100, you may want to add the experimental branch to the repository listing:
    
    $ curl -s -L https://nvidia.github.io/nvidia-container-runtime/experimental/$distribution/nvidia-container-runtime.list | sudo tee /etc/apt/sources.list.d/nvidia-container-runtime.list
  • You have to delete (or comment) the line mentioning the Docker repo out of


    Code
    /etc/apt/sources.list.d/omvextras.list


    Otherwise there are two sources in conflict, the other is in docker.list and uses the key, while the omvextras.list entry doesn't.

  • Unfortunately after playing with this it seems that the truth is a bit messier, since omvextras will put back this source line if you rerun omv-salt at any point.


    ryecoaaron is there any way that omvextras checks if the user has already installed Docker (and hence has a valid keychain and apt list) and then not put a new Docker deb entry in omvextras.list, if you get what I mean? Otherwise you end up with this messy conflict.


    For now I have commented the line out of my docker.list.

    • Official Post

    is there any way that omvextras checks if the user has already installed Docker (and hence has a valid keychain and apt list) and then not put a new Docker deb entry in omvextras.list, if you get what I mean?

    Sure but why are you adding it manually when it is so easy with omv-extras?

    omv 6.1.1-1 Shaitan | 64 bit | 5.19 proxmox kernel | plugins :: omvextrasorg 6.1.1 | kvm 6.2.5 | compose 6.3 | mergerfs 6.3.4 | zfs 6.0.12
    omv-extras.org plugins source code and issue tracker - github


    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!