OMV 1.18 CRON-APT Error: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

  • I got an email report this morning saying this:


    Code
    CRON-APT RUN [/etc/cron-apt/config]: Sun Apr 26 04:00:01 CEST 2015
     CRON-APT SLEEP: 3025, Sun Apr 26 04:50:26 CEST 2015
     CRON-APT ACTION: 3-download
     CRON-APT LINE: /usr/bin/apt-get -o Acquire::http::Dl-Limit=25 autoclean -y
     Reading package lists...
     E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
     CRON-APT LINE: /usr/bin/apt-get -o Acquire::http::Dl-Limit=25 dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
     Reading package lists...
     E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources


    It looks like the same issue as this thread, but since the OMV release is different, I thought it would be better to have another dedicated thread.


    I am guessing this issue has to do with the release of Jessie which is the new stable as of yesterday. I have replaced "stable" with "wheezy" in the file /etc/apt/apt.conf.d/99openmediavault-release and now omv-update command doesn't show any issue.


    Does anyone else got this problem?


    edit
    See here for the solution:

    By the way, this is only affects systems upgraded from 0.5. Just remove apt.conf rm -f /etc/apt/apt.conf and it should be fine. The file isn't used anymore.

  • Yes, same problem here. Solved it the same way as you did. After changing the value to "wheezy" everything updated as normal. Would like to know if the solution is correct though and why that is happening.

    • Offizieller Beitrag

    Your changes are correct. The reason it happens is because of the jessie release. @votdev should be able to fix this.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • Hi,


    I have had the same problem.
    I had to replace "stable" with "wheezy" in the different file: /etc/apt/apt.conf


    --------------------------------------------------------------------------------------
    OMV 1.18 Kralizec 64-bit | 3.16 backport kernel | omv-extras.org 1.17

    • Offizieller Beitrag

    It should really be replaced everywhere in apt config files.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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

    By the way, this is only affects systems upgraded from 0.5. Just remove apt.conf rm -f /etc/apt/apt.conf and it should be fine. The file isn't used anymore.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • By the way, this is only affects systems upgraded from 0.5. Just remove apt.conf rm -f /etc/apt/apt.conf and it should be fine. The file isn't used anymore.


    My OMV install was a clean install of 1.0, but I'm getting this same error. I don't have the /etc/apt/apt.conf file.

  • My OMV is also a clean install of 1.0. Same Error here


    SystemError: E:The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

    • Offizieller Beitrag

    What is the output of: grep -r "stable" /etc/apt/*

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • I've got the same - running the command above I get:


    /etc/apt/apt.conf.d/99openmediavault-release:APT::Default-Release "stable";


    I'm on version 1.18


    ETA - thought I'd post it here but there's always the potential for me not understanding this stuff! Was a clean install of 1.0 IIRC

    • Offizieller Beitrag

    I don't have that file on any of my systems either.


    As root:
    mv /etc/apt/apt.conf.d/99openmediavault-release /root/
    apt-get update


    If no errors, delete the file:
    rm /root/99openmediavault-release

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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

    You can delete that file (/etc/apt/apt.conf). It is not needed.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • I don't have that file on any of my systems either.


    As root:
    mv /etc/apt/apt.conf.d/99openmediavault-release /root/
    apt-get update


    If no errors, delete the file:
    rm /root/99openmediavault-release


    Thanks - done - will see if the e-mail error warnings disappear!


    6 updates have now appeared in my web gui update list, which weren't available earlier

  • By the way, this is only affects systems upgraded from 0.5. Just remove apt.conf rm -f /etc/apt/apt.conf and it should be fine. The file isn't used anymore.


    Worked for me : rm -f /etc/apt/apt.conf




    From mail I had this warning :

    Code
    CRON-APT RUN [/etc/cron-apt/config]: Sun May  3 07:35:03 CEST 2015
    CRON-APT SLEEP: 925, Sun May  3 07:50:28 CEST 2015
    CRON-APT ACTION: 3-download
    CRON-APT LINE: /usr/bin/apt-get -o Acquire::http::Dl-Limit=25 autoclean -y
    Reading package lists...
    E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
    CRON-APT LINE: /usr/bin/apt-get -o Acquire::http::Dl-Limit=25 dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
    Reading package lists...
    E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources


    From the webinterface, no updates were available


    I guess that only using SSH can fix it the problem ?

    • Offizieller Beitrag

    Yep, ssh or local login.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | 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!

  • I think I have the same problem. Trying to update OMV via web-gui its stucked at the point "Reading state information".


    Then I tried all above mentioned steps. But on my OMV i did not have the file "/etc/apt/apt.conf.d/99openmediavault-release" or "/etc/apt/apt.conf".


    The ouput of "

    Code
    grep -r "stable" /etc/apt/*

    "


    is:


    Code
    /etc/apt/sources.list:deb http://ftp.de.debian.org/debian stable main contrib non-free
    /etc/apt/sources.list.d/omv-extras-org-kralizec.list:deb http://www.greyhole.net/releases/deb stable main


    How could I solve this?


    Thanks!!

Jetzt mitmachen!

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