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.

  • 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

  • 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 5.5.11 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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

  • 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 5.5.11 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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.


    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 ?

  • 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!!

Participate now!

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