Pinned 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

    • Resolved
    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • NetworkDepp wrote:

      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 "

      Source Code

      1. grep -r "stable" /etc/apt/*
      "

      is:

      Source Code

      1. /etc/apt/sources.list:deb http://ftp.de.debian.org/debian stable main contrib non-free
      2. /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!!

      Change stable
      http://ftp.de.debian.org/debian stable main contrib non-free
      to wheezy
      http://ftp.de.debian.org/debian wheezy main contrib non-free
      omv 4.0.5 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.0.2
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • i've got this:
      Traceback (most recent call last):
      File "/usr/sbin/omv-mkaptidx", line 55, in <module>
      cache = apt.cache.Cache()
      File "/usr/lib/python3/dist-packages/apt/cache.py", line 102, in __init__
      self.open(progress)
      File "/usr/lib/python3/dist-packages/apt/cache.py", line 145, in open
      self._cache = apt_pkg.Cache(progress)
      SystemError: E:The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
      Reading package lists... Done
      W: GPG error: download.opensuse.org Release: The following signatures were invalid: KEYEXPIRED 1397815516
      Reading package lists... Done
      E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
      HP-Proliant Microserver Gen8 | omv = always latest | 64 bit | 1x3TB ,3x4TB , 1x500GB HDD for Boot | omvextrasorg = latest | HP P212| Plugins = NUT, HWRaid, luksencryption OMV extras
    • For the stable error, try: rm -f /etc/apt/apt.conf.d/99openmediavault-release /etc/apt/apt.conf

      For the key issue, try:

      wget http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/Release.key
      apt-key add Release.key
      omv 4.0.5 arrakis | 64 bit | 4.12 backports kernel | omvextrasorg 4.0.2
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      For the stable error, try: rm -f /etc/apt/apt.conf.d/99openmediavault-release /etc/apt/apt.conf


      kisses all over :o)


      but:

      Errors were encountered while processing:
      /var/cache/apt/archives/owncloud-server_8.0.3-1_all.deb
      Creating index of upgradeable packages ...
      Creating index of OpenMediaVault plugins ...
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      root@OMVServer:~#


      HP-Proliant Microserver Gen8 | omv = always latest | 64 bit | 1x3TB ,3x4TB , 1x500GB HDD for Boot | omvextrasorg = latest | HP P212| Plugins = NUT, HWRaid, luksencryption OMV extras
    • I have tried everything in this thread and I am getting the following. First I do not have "99openmediavault-release" This file at all. I don't have an apt.conf file either.

      Source Code

      1. /etc/apt/apt.conf.d# grep -r "stable" /etc/apt/*
      2. root@xxxx:/etc/apt/apt.conf.d#


      I also ran this

      Source Code

      1. wget http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/Release.key
      2. apt-key add Release.key


      Still no joy
      I am getting the following

      Source Code

      1. Ign file: Release.gpg
      2. Ign file: Release
      3. Ign file: Translation-en_US
      4. Ign file: Translation-en
      5. Hit http://ftp.us.debian.org wheezy Release.gpg
      6. Hit http://security.debian.org wheezy/updates Release.gpg
      7. Hit http://packages.omv-extras.org kralizec Release.gpg
      8. Hit http://ftp.us.debian.org wheezy-updates Release.gpg
      9. Hit http://security.debian.org wheezy/updates Release
      10. Hit http://packages.omv-extras.org kralizec Release
      11. Hit http://ftp.us.debian.org wheezy Release
      12. Get:1 http://packages.openmediavault.org kralizec Release.gpg [181 B]
      13. Hit http://ftp.us.debian.org wheezy-updates Release
      14. Hit http://security.debian.org wheezy/updates/main Sources
      15. Hit http://packages.omv-extras.org kralizec/main amd64 Packages
      16. Hit http://ftp.us.debian.org wheezy/main Sources
      17. Hit http://security.debian.org wheezy/updates/contrib Sources
      18. Hit http://ftp.us.debian.org wheezy/main amd64 Packages
      19. Hit http://packages.openmediavault.org kralizec Release
      20. Err http://packages.openmediavault.org kralizec Release
      21. Hit http://ftp.us.debian.org wheezy/main Translation-en
      22. Hit http://security.debian.org wheezy/updates/non-free Sources
      23. Hit http://ftp.us.debian.org wheezy-updates/main Sources
      24. Hit http://security.debian.org wheezy/updates/main amd64 Packages
      25. Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
      26. Hit http://ftp.us.debian.org wheezy-updates/contrib Sources
      27. Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
      28. Hit http://ftp.us.debian.org wheezy-updates/non-free Sources
      29. Hit http://security.debian.org wheezy/updates/contrib Translation-en
      30. Hit http://ftp.us.debian.org wheezy-updates/main amd64 Packages/DiffIndex
      31. Hit http://ftp.us.debian.org wheezy-updates/contrib amd64 Packages
      32. Hit http://ftp.us.debian.org wheezy-updates/non-free amd64 Packages
      33. Hit http://ftp.us.debian.org wheezy-updates/contrib Translation-en
      34. Hit http://ftp.us.debian.org wheezy-updates/main Translation-en/DiffIndex
      35. Hit http://ftp.us.debian.org wheezy-updates/non-free Translation-en
      36. Hit http://security.debian.org wheezy/updates/main Translation-en
      37. Hit http://security.debian.org wheezy/updates/non-free Translation-en
      38. Ign http://packages.omv-extras.org kralizec/main Translation-en_US
      39. Ign http://packages.omv-extras.org kralizec/main Translation-en
      40. Fetched 181 B in 2s (60 B/s)
      41. Reading package lists... Done
      42. W: A 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 kralizec Release: The following signatures were invalid: BADSIG 7E7A6C592EF35D13 OpenMediaVault.org (OpenMediaVault packages archive) <packages@openmediavault.org>
      43. W: Failed to fetch http://packages.openmediavault.org/public/dists/kralizec/Release
      44. W: Some index files failed to download. They have been ignored, or old ones used instead.
      Display All


      Source Code

      1. apt-get -f install
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


      I think that covers anything. If I missed something please let me know I will give more details. This is a less that 7 day install if that matters.
    • ryecoaaron wrote:

      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


      I had OMV 1.18 and I got no updates for several days in Web-GUI.
      This was the solution.
      Thanks :thumbsup:
      Server (own building in February 2015): ASROCK Q1900-ITX - Intel Celeron J1900 - RAM 4GB Micron CT515264BF160B - 16GB SSD Kingston SS050S216G for system OMV 3.0.8x (Erasmus)
      - 2x2TB HDD Seagate ST2000VN00 3,5" in RAID 1 for data
      Homeland: Germany
      favorites Plugins: Plex Media Server - Transmission - Autoshutdown - Rsync - USBBackup
    • ryecoaaron wrote:

      I'm sure you have stable in your sources.list. What is the output of: grep -r stable /etc/apt/*


      Sorry I did include that in the original but here it is again

      Source Code

      1. root@xxxx:/etc/apt/apt.conf.d# grep -r stable /etc/apt/*
      2. root@xxxx:/etc/apt/apt.conf.d#


      I do not have stable in my sources.list.

      But I do have wheezy see below

      Source Code

      1. root@xxxx:/etc/apt/apt.conf.d# grep -r wheezy /etc/apt/*
      2. /etc/apt/sources.list:# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150108-14:12]/ wheezy contrib main non-free
      3. /etc/apt/sources.list:#deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150108-14:12]/ wheezy contrib main non-free
      4. /etc/apt/sources.list:deb http://ftp.us.debian.org/debian/ wheezy main
      5. /etc/apt/sources.list:deb-src http://ftp.us.debian.org/debian/ wheezy main
      6. /etc/apt/sources.list:deb http://security.debian.org/ wheezy/updates main contrib non-free
      7. /etc/apt/sources.list:deb-src http://security.debian.org/ wheezy/updates main contrib non-free
      8. /etc/apt/sources.list:# wheezy-updates, previously known as 'volatile'
      9. /etc/apt/sources.list:deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
      10. /etc/apt/sources.list:deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
      11. Binary file /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg matches
      12. Binary file /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg~ matches
      Display All

    • Dennis wrote:

      We should make a sticky post for that thread. I've found it only via Startpage.


      It is Sticky.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Dear all,

      I´m sorry to tell you, that any of your information doesn´t help me.
      DNS ist set, there is no apt.conf, no stable in sources.list, downloading the the Release.key does not work because opensuse.org could not be found, the file 99openmediavault.... was moved, omv-mkconf omvextrsaorg aptclean tells me there is a unknow script. Nothing of that works. Even apt-get -f install generates the output "package files will be reading...."

      As I updates /etc/network/interfaces with dns-nameserver.... it works for a short time.

      It seems to be DNS. In which file I can add it permanently too? In .../interfaces it seems to be not working and /resolv.conf will be overwritten :-((

      13:15h:
      updating /resolv.conf it works perfectly. But these file seems to be overwritten. What can I do to fix it permanently?
      the GUI didn´t any updates!!

      14:55h:
      copy /etc/resolv.conf to /etc/resolv.default, delete all lines and add your nameserver
      create an script "/etc/resolv.default.d"and add the following lines:
      #!/bin/sh
      cp /etc/resolv.default /etc/resolv.conf
      make it executable with "chmod 755 /etc/resolv.default.d"
      add path "/etc/resolv.default" (without " ") in /etc/rc.local BEFORE exit 0.

      From now on the system boots every time, the script will copy /etc/resolv.default to /etc/resolv.conf and I have my DNS....
      THAT´S MY WORKAROUND....


      Regards
      Kai
      OMV Erasmus 3.0.81| HP Microserver N54L | 8GB RAM | 20GB Intel SSD | 5 x 1TB in RAID5 | 4 TB ext. Backup Drive USB

      The post was edited 2 times, last by Mr.President ().