Updates Check fails; also apt-get update fails

  • Somewhere along the line something get hosed, I think.


    Maybe the best place to start is failing apt-get update (see attached)


    Also Updates Check fails:

    My hunch is there's something corrupt causing both errors.



    Thanks,
    Mark M.

  • Can't nail dates, but both errors are within the past week or two. I think I hosed something with some failed or dubious non-omv supported apt-get installs (such as google-chrome).


    root@openmediavault:/etc/apt# cat sources.list
    #


    # deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170731-21:43]/ jessie contrib main non-free


    # deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170731-21:43]/ jessie contrib main non-free


    deb http://ftp.us.debian.org/debian/ jessie main
    deb-src http://ftp.us.debian.org/debian/ jessie main


    deb http://security.debian.org/ jessie/updates main contrib non-free
    deb-src http://security.debian.org/ jessie/updates main contrib non-free


    # jessie-updates, previously known as 'volatile'
    deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
    deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free


    # https://packages.debian.org/sid/amd64/p7zip-full/download
    deb http://ftp.us.debian.org/debian/ sid main


    # https://www.linuxbabe.com/desk…me-on-debian-the-easy-way
    deb http://dl.google.com/linux/chrome/deb/ stable main


    root@openmediavault:/etc/apt#

    • Offizieller Beitrag

    For one, the same chrome repo is in two files - /etc/apt/sources.list and /etc/apt/sources.list.d/google-chrome.list.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    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!

  • How do I best fix that? And how did you know?


    Also, I'm wondering whether there's some file corruption. For instance, the failed apt-get update shows:


    Get:34 https://dl.bintray.com/openmed…developers/erasmus-docker jessie Release [2,689 B]
    Traceback (most recent call last):
    File "/usr/sbin/omv-mkaptidx", line 110, in <module>
    "md5sum": pkg.candidate.md5,
    File "/usr/lib/python3/dist-packages/apt/package.py", line 758, in md5
    return self._records.md5_hash
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xaa in position 2: invalid start byte
    Reading package lists... Done

    • Offizieller Beitrag

    How do I best fix that?

    Remove the chrome line from /etc/apt/sources.list. nano /etc/apt/sources.list, ctrl-o to save, ctrl-x to exit


    And how did you know?

    Your output on your first post says it is configured multiple times.


    Also, I'm wondering whether there's some file corruption.

    This is a known python bug that doesn't cause any problems. There is a thread about it somewhere.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    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!

  • Thanks!


    Still failing apt-get update & Updates->Check. Common error (warning?) between them I can see is:


    E: The repository 'file:/var/cache/openmediavault/archives Release' does not have a Release file.
    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.
    E: The repository 'https://downloads.plex.tv/repo/deb ./public Release' no longer has a Release file.
    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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.openmediavault.org/public erasmus InRelease: The following signatures were invalid: 0F6BCC17C26BFADC27F221007E7A6C592EF35D13



    ---


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; 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 Err:2 file:/var/cache/openmediavault/archives Release File not found - /var/cache/openmediavault/archives/Release (2: No such file or directory) Hit:3 http://security.debian.org jessie/updates InRelease Ign:4 http://ftp.us.debian.org/debian jessie InRelease Hit:5 http://ftp.us.debian.org/debian jessie-updates InRelease Hit:6 http://ftp.us.debian.org/debian sid InRelease Ign:7 http://pkg.tarsnap.com/deb/jessie ./ InRelease Ign:8 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease Hit:9 http://ftp.us.debian.org/debian jessie Release Ign:10 https://downloads.plex.tv/repo/deb ./public InRelease Ign:11 http://www.scootersoftware.com bcompare4 InRelease Hit:12 https://apt.dockerproject.org/repo debian-jessie InRelease Err:13 https://downloads.plex.tv/repo/deb ./public Release 404 Not Found [IP: 104.18.157.41 443] Hit:14 http://pkg.tarsnap.com/deb/jessie ./ Release Hit:15 http://www.scootersoftware.com bcompare4 Release Hit:16 http://ppa.launchpad.net/jcfp/sab-addons/ubuntu bionic InRelease Ign:17 https://dl.bintray.com/openmed…plugin-developers/erasmus jessie InRelease Ign:20 https://dl.bintray.com/openmed…n-developers/erasmus-plex jessie InRelease Ign:21 http://dl.google.com/linux/chrome/deb stable InRelease Hit:18 http://cdn-fastly.deb.debian.org/debian jessie-backports InRelease Ign:22 https://dl.bintray.com/openmed…developers/erasmus-docker jessie InRelease Hit:23 http://packages.openmediavault.org/public erasmus InRelease Hit:25 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release Get:27 https://dl.bintray.com/openmed…plugin-developers/erasmus jessie Release [5212 B] Get:28 https://dl.bintray.com/openmed…n-developers/erasmus-plex jessie Release [4363 B] Err:23 http://packages.openmediavault.org/public erasmus InRelease The following signatures were invalid: 0F6BCC17C26BFADC27F221007E7A6C592EF35D13 Get:30 https://dl.bintray.com/openmed…developers/erasmus-docker jessie Release [2689 B] Hit:31 http://dl.google.com/linux/chrome/deb stable Release Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 110, in <module> "md5sum": pkg.candidate.md5, File "/usr/lib/python3/dist-packages/apt/package.py", line 758, in md5 return self._records.md5_hash UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 0: invalid continuation byte Reading package lists... E: The repository 'file:/var/cache/openmediavault/archives Release' does not have a Release file. E: The repository 'https://downloads.plex.tv/repo/deb ./public Release' no longer has a Release file. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.openmediavault.org/public erasmus InRelease: The following signatures were invalid: 0F6BCC17C26BFADC27F221007E7A6C592EF35D13

    • Offizieller Beitrag

    This should fix one issue but it sure seems like some of your packages were upgraded to a different version (probably from one of those repos you enabled) because these look more like OMV 4.x/Debian stretch messages.


    Try: echo 'deb [trusted=yes] file:/var/cache/openmediavault/archives /' > /etc/apt/sources.list.d/openmediavault-local.list


    What is the output of:


    dpkg -l | grep openm

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    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!

    • Offizieller Beitrag

    Seems you may have a few plugins or other things installed. Here is how I might try to trouble shoot this. Test after each step.

    • apt-get clean all
    • In /etc/apt/sources.list.dchange the names to xxxx.list to xxxx.list.bak
    • Change back to xxxx.list one at a time and test.
    • Post the content of the one that fails.
  • ryecoaaron:

    Code
    root@openmediavault:/etc/apt/sources.list.d# dpkg -l | grep openm
    ii  openmediavault                       3.0.89                               all          Open network attached storage solution
    ii  openmediavault-docker-gui            3.1.9                                amd64        OpenMediaVault plugin for Docker
    ii  openmediavault-flashmemory           3.5                                  all          folder2ram plugin for OpenMediaVault
    ii  openmediavault-keyring               1.0                                  all          GnuPG archive keys of the OpenMediaVault archive
    ii  openmediavault-omvextrasorg          3.4.26                               all          OMV-Extras.org Package Repositories for OpenMediaVault
    ii  openmediavault-plexmediaserver       3.8.1                                all          OpenMediaVault Plex Media Server plugin
    ii  openmediavault-sabnzbd               3.2.3                                all          SABnzbd plugin for OpenMediaVault.
    ii  openmediavault-unionfilesystems      3.1.17                               all          Union filesystems plugin for OpenMediaVault.
    root@openmediavault:/etc/apt/sources.list.d#

    donh:


    One of the files in /etc/apt/sources.list is for Plex. Changing it's name even temporarily won't hurt Plex, right?


    root@openmediavault:/etc/apt/sources.list.d# ls -l
    total 72
    -rw-r--r-- 1 root root 204 Apr 3 11:21 chrome-remote-desktop.list
    -rw-r--r-- 1 root root 204 Apr 3 11:02 chrome-remote-desktop.list.save
    -rw-r--r-- 1 root root 189 Apr 4 08:35 google-chrome.list
    -rw-r--r-- 1 root root 134 Apr 3 11:02 jcfp-ubuntu-sab-addons-bionic.list
    -rw-rw-rw- 1 root root 459 Apr 3 11:02 omv-extras-org.list
    -rw-rw-rw- 1 root root 459 Apr 3 11:02 omv-extras-org.list.save
    -rw-r--r-- 1 root root 78 Apr 3 11:02 openmediavault-kernel-backports.list
    -rw-r--r-- 1 root root 78 Apr 3 11:02 openmediavault-kernel-backports.list.save
    -rw-r--r-- 1 root root 59 Apr 3 11:02 openmediavault.list
    -rw-r--r-- 1 root root 59 Apr 3 11:02 openmediavault.list.save
    -rw-r--r-- 1 root root 60 Apr 12 13:15 openmediavault-local.list
    -rw-r--r-- 1 root root 45 Apr 3 11:02 openmediavault-local.list.save
    -rw-r--r-- 1 root root 227 Apr 3 11:02 plexmediaserver.list
    -rw-r--r-- 1 root root 226 Apr 3 11:02 plexmediaserver.list.save
    -rw-r--r-- 1 root root 55 Apr 3 11:21 scootersoftware.list
    -rw-r--r-- 1 root root 55 Apr 3 11:02 scootersoftware.list.save
    -rw-r--r-- 1 root root 41 Apr 3 11:02 tarsnap.list
    -rw-r--r-- 1 root root 41 Apr 3 11:02 tarsnap.list.save
    root@openmediavault:/etc/apt/sources.list.d#


    Wait a sec .. there doesn't appear to be anything except comments in plexmediaserver.list:


    root@openmediavault:/etc/apt/sources.list.d# cat plexmediaserver.list
    # When enabling this repo please remember to add the PlexPublic.Key into the apt setup.
    # wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -
    # deb https://downloads.plex.tv/repo/deb/ public main
    root@openmediavault:/etc/apt/sources.list.d#


    Might there be a connection between that and the apt-get update error?


    E: The repository 'https://downloads.plex.tv/repo/deb ./public Release' no longer has a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.


    ?

  • As a note, you generally don't want to modify the sources.list as above, this is called making a "frakendebian". You can get chromium from the debian repositories and given the whole PI data kerfuffle going on in the US you'd probably do well to start migrating away from that software!


    But yeah, be careful editing sources.list! Often times it should be safer to build from source. A dead giveaway that you borked something is seeing a ton of packages get updated when adding a repository to your sources. Best of luck.

  • donh:


    Okay, I will do as you suggest, with test being apt-get update rather than Updates->Check (though I suppose it makes no difference). Definitely will avoid Updates->Upgrade till no more errors.


    drinks2go:


    Thank you for your insight and advice! If all this goes south I imagine it shouldn't be a big deal to just do a fresh install of 3.x. I've been thinking about moving boot off the USB flash drive onto an actual SSD anyway; maybe this would be a good time to do that. Or not. Hah-hah!


    I use OMV to host Plex and a Squeezebox server. It was rather tricky to move from 2.x to 3.x because fstab was changed and that affected the Plex metadata configuration. But now that labels are used for drives I don't expect a fresh install of 3.x would be difficult.

  • Errors raised when omv-extras-org.list enabled.


    What can I do to fix that?


    --- test doc:
    Original list of *list in /etc/apt/sources.list.d:
    root@openmediavault:/etc/apt/sources.list.d# ls -l *list
    -rw-r--r-- 1 root root 204 Apr 3 11:21 chrome-remote-desktop.list
    -rw-r--r-- 1 root root 189 Apr 4 08:35 google-chrome.list
    -rw-r--r-- 1 root root 134 Apr 3 11:02 jcfp-ubuntu-sab-addons-bionic.list
    -rw-rw-rw- 1 root root 459 Apr 3 11:02 omv-extras-org.list
    -rw-r--r-- 1 root root 78 Apr 3 11:02 openmediavault-kernel-backports.list
    -rw-r--r-- 1 root root 59 Apr 3 11:02 openmediavault.list
    -rw-r--r-- 1 root root 60 Apr 12 13:15 openmediavault-local.list
    -rw-r--r-- 1 root root 227 Apr 3 11:02 plexmediaserver.list
    -rw-r--r-- 1 root root 55 Apr 3 11:21 scootersoftware.list
    -rw-r--r-- 1 root root 41 Apr 3 11:02 tarsnap.list
    root@openmediavault:/etc/apt/sources.list.d#


    Renamed all *list to *bak, ran apt-get update & Updates->Check with no errors (except for constant errors because of known Python bug mentioned by ryecoaaron).


    Began renaming *bak to *list one by one, no errors until renamed omv-extras-org. After that errors in both apt-get update & Updates->Check:
    root@openmediavault:/etc/apt/sources.list.d# ls -l *list
    -rw-r--r-- 1 root root 204 Apr 3 11:21 chrome-remote-desktop.list
    -rw-r--r-- 1 root root 189 Apr 4 08:35 google-chrome.list
    -rw-r--r-- 1 root root 134 Apr 3 11:02 jcfp-ubuntu-sab-addons-bionic.list
    -rw-rw-rw- 1 root root 459 Apr 3 11:02 omv-extras-org.list
    root@openmediavault:/etc/apt/sources.list.d# apt-get update
    Hit:1 http://security.debian.org jessie/updates InRelease
    Ign:2 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
    Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
    Get:4 https://apt.dockerproject.org/repo debian-jessie InRelease [48.7 kB]
    Hit:5 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
    Hit:6 http://ppa.launchpad.net/jcfp/sab-addons/ubuntu bionic InRelease
    Ign:7 https://dl.bintray.com/openmed…plugin-developers/erasmus jessie InRelease
    Hit:9 http://dl.google.com/linux/chrome/deb stable Release
    Ign:10 https://dl.bintray.com/openmed…n-developers/erasmus-plex jessie InRelease
    Get:11 https://apt.dockerproject.org/repo debian-jessie/main amd64 Packages [6,892 B]
    Ign:12 https://downloads.plex.tv/repo/deb ./public InRelease
    Ign:13 https://dl.bintray.com/openmed…developers/erasmus-docker jessie InRelease
    Get:15 https://dl.bintray.com/openmed…plugin-developers/erasmus jessie Release [5,212 B]
    Get:16 https://dl.bintray.com/openmed…n-developers/erasmus-plex jessie Release [4,363 B]
    Err:17 https://downloads.plex.tv/repo/deb ./public Release
    404 Not Found [IP: 104.18.156.41 443]
    Get:18 https://dl.bintray.com/openmed…developers/erasmus-docker jessie Release [2,689 B]
    Get:19 https://dl.bintray.com/openmed…plugin-developers/erasmus jessie Release.gpg [821 B]
    Ign:20 http://ftp.us.debian.org/debian jessie InRelease
    Hit:21 http://ftp.us.debian.org/debian jessie-updates InRelease
    Get:22 https://dl.bintray.com/openmed…n-developers/erasmus-plex jessie Release.gpg [821 B]
    Hit:23 http://ftp.us.debian.org/debian sid InRelease
    Hit:24 http://ftp.us.debian.org/debian jessie Release
    Get:25 https://dl.bintray.com/openmed…developers/erasmus-docker jessie Release.gpg [821 B]
    Get:26 https://dl.bintray.com/openmed…plugin-developers/erasmus jessie/main i386 Packages [32.8 kB]
    Get:28 https://dl.bintray.com/openmed…plugin-developers/erasmus jessie/main amd64 Packages [35.7 kB]
    Get:29 https://dl.bintray.com/openmed…n-developers/erasmus-plex jessie/main amd64 Packages [1,867 B]
    Get:30 https://dl.bintray.com/openmed…n-developers/erasmus-plex jessie/main i386 Packages [1,867 B]
    Get:31 https://dl.bintray.com/openmed…developers/erasmus-docker jessie/main amd64 Packages [619 B]
    Traceback (most recent call last):
    File "/usr/sbin/omv-mkaptidx", line 110, in <module>
    "md5sum": pkg.candidate.md5,
    File "/usr/lib/python3/dist-packages/apt/package.py", line 758, in md5
    return self._records.md5_hash
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte
    Reading package lists... Done

    *****************************************************************************************************
    E: The repository 'https://downloads.plex.tv/repo/deb ./public Release' does not have a Release file.
    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.
    *****************************************************************************************************


    root@openmediavault:/etc/apt/sources.list.d#

    Then resumed renaming one by one and encountered no additional errors.


    Thanks,
    Mark

    • Offizieller Beitrag

    Errors raised when omv-extras-org.list enabled.

    It isn't enabling the list that causes the problem. It is one repo inside it. From your output, it is plex. Disable plex in the omv-extras plugin in the web interface.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    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!

  • Before I continue with your suggestion, I need to say that after double-checking my saved test results, I see that there was an additional error raised when I enabled openmediavault.list that I hadn't noticed:


    This same invalid signature error is also raised after I disabled the Plex repo in omv-extras as you suggested. Is there some other repository I need to disable?


    Here's the apt-get update output after disabling Plex repo but without a fix to invalid signature error above:



    • Offizieller Beitrag

    Is there some other repository I need to disable?

    The problem is that you have added other repos that potentially caused problems and things are broken. I don't know why your omv repo signing key isn't installed since openmediavault-keyring is installed. All I can think is to purge and reinstall the openmediavault-keyring package.


    apt-get purge openmediavault-keyring
    apt-get install openmediavault-keyring (yes, install it even if you get warnings)

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    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!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!