Erreur apt update APT::Default-Release

  • Hello I'm having a problem for several days and I can not find the solution anywhere in your forum because the solution dates from 2015 and the files that we ask to modify I do not find them in the version of omv4.



    when I do a: apt upgrade:


    I receive this error:Reading package lists ... DoneE: The value "stable" is not valid for APT :: Default-Release because this version is not one of the available sources.




    when I do : apt update


    I receive:


    # apt-get update
    Réception de :1 file:/var/cache/openmediavault/archives InRelease
    Ign :1 file:/var/cache/openmediavault/archives InRelease
    Réception de :2 file:/var/cache/openmediavault/archives Release
    Ign :2 file:/var/cache/openmediavault/archives Release
    Réception de :3 file:/var/cache/openmediavault/archives Packages
    Ign :3 file:/var/cache/openmediavault/archives Packages
    Réception de :4 file:/var/cache/openmediavault/archives Translation-fr
    Ign :4 file:/var/cache/openmediavault/archives Translation-fr
    Réception de :5 file:/var/cache/openmediavault/archives Translation-en
    Ign :5 file:/var/cache/openmediavault/archives Translation-en
    Réception de :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Ign :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Réception de :3 file:/var/cache/openmediavault/archives Packages
    Ign :3 file:/var/cache/openmediavault/archives Packages
    Réception de :4 file:/var/cache/openmediavault/archives Translation-fr
    Ign :4 file:/var/cache/openmediavault/archives Translation-fr
    Réception de :5 file:/var/cache/openmediavault/archives Translation-en
    Ign :5 file:/var/cache/openmediavault/archives Translation-en
    Réception de :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Ign :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Réception de :3 file:/var/cache/openmediavault/archives Packages
    Ign :3 file:/var/cache/openmediavault/archives Packages
    Réception de :4 file:/var/cache/openmediavault/archives Translation-fr
    Ign :4 file:/var/cache/openmediavault/archives Translation-fr
    Réception de :5 file:/var/cache/openmediavault/archives Translation-en
    Ign :5 file:/var/cache/openmediavault/archives Translation-en
    Réception de :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Ign :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Réception de :3 file:/var/cache/openmediavault/archives Packages
    Ign :3 file:/var/cache/openmediavault/archives Packages
    Réception de :4 file:/var/cache/openmediavault/archives Translation-fr
    Ign :4 file:/var/cache/openmediavault/archives Translation-fr
    Réception de :5 file:/var/cache/openmediavault/archives Translation-en
    Ign :5 file:/var/cache/openmediavault/archives Translation-en
    Réception de :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Ign :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Réception de :3 file:/var/cache/openmediavault/archives Packages
    Ign :3 file:/var/cache/openmediavault/archives Packages
    Réception de :4 file:/var/cache/openmediavault/archives Translation-fr
    Ign :4 file:/var/cache/openmediavault/archives Translation-fr
    Réception de :5 file:/var/cache/openmediavault/archives Translation-en
    Ign :5 file:/var/cache/openmediavault/archives Translation-en
    Réception de :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Ign :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Réception de :3 file:/var/cache/openmediavault/archives Packages
    Ign :3 file:/var/cache/openmediavault/archives Packages
    Réception de :4 file:/var/cache/openmediavault/archives Translation-fr
    Ign :4 file:/var/cache/openmediavault/archives Translation-fr
    Réception de :5 file:/var/cache/openmediavault/archives Translation-en
    Ign :5 file:/var/cache/openmediavault/archives Translation-en
    Réception de :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Ign :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Réception de :3 file:/var/cache/openmediavault/archives Packages
    Réception de :4 file:/var/cache/openmediavault/archives Translation-fr
    Ign :4 file:/var/cache/openmediavault/archives Translation-fr
    Réception de :5 file:/var/cache/openmediavault/archives Translation-en
    Ign :5 file:/var/cache/openmediavault/archives Translation-en
    Réception de :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Ign :6 file:/var/cache/openmediavault/archives Translation-fr_FR
    Atteint :7 http://packages.openmediavault.org/public arrakis InRelease
    Atteint :8 https://openmediavault.github.io/packages arrakis InRelease
    Ign :9 http://ftp.fr.debian.org/debian stretch InRelease
    Atteint :10 http://packages.openmediavault.org/public arrakis-proposed InRelease
    Atteint :11 http://ftp.fr.debian.org/debian stretch-updates InRelease
    Atteint :12 http://ftp.fr.debian.org/debian stretch Release
    Atteint :13 https://download.docker.com/linux/debian stretch InRelease
    Ign :14 https://dl.bintray.com/openmed…plugin-developers/arrakis stretch InRelease
    Ign :16 https://dl.bintray.com/openmed…developers/arrakis-docker stretch InRelease
    Réception de :17 https://dl.bintray.com/openmed…plugin-developers/arrakis stretch Release [4 389 B]
    Réception de :18 https://dl.bintray.com/openmed…developers/arrakis-docker stretch Release [3 540 B]
    Atteint :15 http://security-cdn.debian.org stretch/updates InRelease
    Atteint :19 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
    7 929 o réceptionnés en 1s (6 772 o/s)
    Traceback (most recent call last):
    File "/usr/sbin/omv-mkaptidx", line 91, in <module>
    cache = apt.cache.Cache()
    File "/usr/lib/python3/dist-packages/apt/cache.py", line 166, in __init__
    self.open(progress)
    File "/usr/lib/python3/dist-packages/apt/cache.py", line 226, in open
    self._cache = apt_pkg.Cache(progress)
    apt_pkg.Error: E:The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
    Lecture des listes de paquets... Fait



    please help me because
    I'm going crazy
    :(

  • I corrected the problem it was enough to edit the file 00localechoand replace stable by the Codename of your system



    command for display the Codename


    omv4:# lsb_release -a



    No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 9.8 (stretch)
    Release: 9.8
    Codename: stretch



    omv4:# nano /etc/apt/apt.conf.d/00localecho



    replace the
    APT::Default-Release "Stable";
    by


    APT::Default-Release "stretch";


    byebye

Jetzt mitmachen!

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