omv-release-upgrade throws errors & stops

    • omv-release-upgrade throws errors & stops

      apt upgrade started throwing errors, because On March 20, 2019, the Debian project moved the repository jessie-updates to archive.debian.org.

      So today I decided to omv-release-upgrade in an attempt to stay current...

      Display Spoiler

      Source Code

      1. root@backup-nas:/etc/apt# omv-release-upgrade
      2. Upgrading system to 4.0 (Arrakis) ...
      3. Ign file: InRelease
      4. Ign file: Release.gpg
      5. Ign file: Release
      6. Ign http://ftp.be.debian.org stretch InRelease
      7. Hit http://ftp.be.debian.org stretch-updates InRelease
      8. Hit http://apt.syncthing.net syncthing InRelease
      9. Hit http://packages.openmediavault.org arrakis InRelease
      10. Get:1 https://dl.bintray.com stretch InRelease
      11. Ign https://dl.bintray.com stretch InRelease
      12. Get:2 https://dl.bintray.com stretch InRelease
      13. Ign https://dl.bintray.com stretch InRelease
      14. Ign file: Translation-en
      15. Hit http://ftp.be.debian.org stretch Release.gpg
      16. Hit http://ftp.be.debian.org stretch Release
      17. Hit https://dl.bintray.com stretch Release.gpg
      18. Ign http://httpredir.debian.org jessie-backports InRelease
      19. Hit http://security.debian.org stretch/updates InRelease
      20. Get:3 http://ftp.be.debian.org stretch-updates/main Sources/DiffIndex [7624 B]
      21. Get:4 http://ftp.be.debian.org stretch-updates/main amd64 Packages/DiffIndex [7624 B]
      22. Ign http://httpredir.debian.org jessie-backports Release.gpg
      23. Hit https://dl.bintray.com stretch Release.gpg
      24. Get:5 http://ftp.be.debian.org stretch-updates/main Translation-en/DiffIndex [4672 B]
      25. Get:6 http://apt.syncthing.net syncthing/release amd64 Packages [1245 B]
      26. Hit http://ftp.be.debian.org stretch-updates/contrib Sources
      27. Hit http://ftp.be.debian.org stretch-updates/non-free Sources
      28. Hit http://ftp.be.debian.org stretch-updates/contrib amd64 Packages
      29. Hit http://ftp.be.debian.org stretch-updates/non-free amd64 Packages
      30. Hit http://ftp.be.debian.org stretch-updates/contrib Translation-en
      31. Hit http://ftp.be.debian.org stretch-updates/non-free Translation-en
      32. Ign http://httpredir.debian.org jessie-backports Release
      33. Hit https://dl.bintray.com stretch Release
      34. Hit http://packages.openmediavault.org arrakis/main amd64 Packages
      35. Ign http://apt.syncthing.net syncthing/release Translation-en
      36. Hit http://ftp.be.debian.org stretch/main Sources
      37. Hit http://ftp.be.debian.org stretch/main amd64 Packages
      38. Ign http://httpredir.debian.org jessie-backports/main amd64 Packages/DiffIndex
      39. Hit http://ftp.be.debian.org stretch/main Translation-en
      40. Ign http://packages.openmediavault.org arrakis/main Translation-en
      41. Get:7 http://security.debian.org stretch/updates/main Sources [197 kB]
      42. Hit https://dl.bintray.com stretch Release
      43. Ign http://httpredir.debian.org jessie-backports/contrib amd64 Packages/DiffIndex
      44. Get:8 http://security.debian.org stretch/updates/contrib Sources [1384 B]
      45. Ign http://httpredir.debian.org jessie-backports/non-free amd64 Packages/DiffIndex
      46. Get:9 http://security.debian.org stretch/updates/non-free Sources [1216 B]
      47. Get:10 http://security.debian.org stretch/updates/main amd64 Packages [481 kB]
      48. Get:11 http://security.debian.org stretch/updates/contrib amd64 Packages [1760 B]
      49. Get:12 http://security.debian.org stretch/updates/non-free amd64 Packages [1600 B]
      50. Get:13 http://security.debian.org stretch/updates/contrib Translation-en [1759 B]
      51. Get:14 http://security.debian.org stretch/updates/main Translation-en [213 kB]
      52. Get:15 https://dl.bintray.com stretch/main amd64 Packages [22.1 kB]
      53. Get:16 https://dl.bintray.com stretch/main Translation-en
      54. Get:17 http://security.debian.org stretch/updates/non-free Translation-en [691 B]
      55. Get:18 https://dl.bintray.com stretch/main amd64 Packages [760 B]
      56. Get:19 https://dl.bintray.com stretch/main Translation-en
      57. Get:20 https://dl.bintray.com stretch/main Translation-en
      58. Get:21 https://dl.bintray.com stretch/main Translation-en
      59. Get:22 https://dl.bintray.com stretch/main Translation-en
      60. Get:23 https://dl.bintray.com stretch/main Translation-en
      61. Get:24 https://dl.bintray.com stretch/main Translation-en
      62. Get:25 https://dl.bintray.com stretch/main Translation-en
      63. Get:26 https://dl.bintray.com stretch/main Translation-en
      64. Ign https://dl.bintray.com stretch/main Translation-en
      65. Get:27 https://dl.bintray.com stretch/main Translation-en
      66. Ign https://dl.bintray.com stretch/main Translation-en
      67. Ign http://httpredir.debian.org jessie-backports/contrib Translation-en
      68. Ign http://httpredir.debian.org jessie-backports/main Translation-en
      69. Ign http://httpredir.debian.org jessie-backports/non-free Translation-en
      70. Err http://httpredir.debian.org jessie-backports/main amd64 Packages
      71. 404 Not Found
      72. Err http://httpredir.debian.org jessie-backports/contrib amd64 Packages
      73. 404 Not Found
      74. Err http://httpredir.debian.org jessie-backports/non-free amd64 Packages
      75. 404 Not Found
      76. Fetched 42.8 kB in 4s (9031 B/s)
      77. W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
      78. W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/contrib/binary-amd64/Packages 404 Not Found
      79. W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/non-free/binary-amd64/Packages 404 Not Found
      80. E: Some index files failed to download. They have been ignored, or old ones used instead.
      81. root@backup-nas:/etc/apt#
      Display All



      Basically the same at original apt problem.

      How can I get out of this pickle, and end up with a successful omv-release-upgrade ?


      edit : I'm thinking /etc/apt/sources.list.d/openmediavault-kernel-backports.list
      needs to be edited to contain :
      deb http://archive.debian.org/debian/ jessie-backports main contrib non-free

      But i would like confirmation ?

      The post was edited 1 time, last by Tii: possible solution ? ().

    • hi

      i just got it started doing this

      (using information from: forum.openmediavault.org/index…?postID=199662#post199662 which refers to superuser.com/a/1417751)

      • edit /etc/apt/sources.list -> the only entries are these 2:

        Source Code

        1. deb http://deb.debian.org/debian jessie main
        2. deb http://security.debian.org/debian-security jessie/updates main


      • rename /etc/apt/sources.list.d/openmediavault-kernel-backports.list to "#openmediavault-kernel-backports.list" (basically i could have deleted it as well)
      • started upgrading via omv-release-upgrade
      • it´s running now


      hope that helps and works
      alexander
    • Tii wrote:

      Intend to wait a day or so before I do this on a live system though
      There's no magic involved. Running apt-get update without errors is prerequisite for omv-release-upgrade so as soon as you move the 'offending' files now containing outdated links out of your way it should work.

      BTW: IMO a better alternative to deletion is moving those files so you have some sort of backup: mv /etc/apt/sources.list.d/openmediavault-kernel-backports.list /root/
    • I understand and agree.
      It's just that yesterday I tried all of the above in a VM and never resulted in a functioning / upgraded system.
      Today, starting off from the same 3.0.94 VM, it did work.

      Perhaps/Likely due to @bureau ai 's find : superuser.com/questions/141761…in-debian/1417751#1417751

      Whatever the reason, and it certainly ain't magic :wink: , I don't see any disadvantage to waiting for a little bit more feedback before pulling the trigger on a real machine.
    • Tii wrote:

      I don't see any disadvantage to waiting for a little bit more feedback before pulling the trigger on a real machine
      It's still as simple as checking whether the modifications one did result in a simple apt-get update working without errors.

      Of course further time is well spent on checking for potential compatibility problems when upgrading from OMV3 to 4.
    • tkaiser wrote:

      There's no magic involved. Running apt-get update without errors is prerequisite for omv-release-upgrade so as soon as you move the 'offending' files now containing outdated links out of your way it should work.
      BTW: IMO a better alternative to deletion is moving those files so you have some sort of backup: mv /etc/apt/sources.list.d/openmediavault-kernel-backports.list /root/
      I was also testing the whole problem in a VM and i had further problems with omv-extras. As an answer to the qoute: Prior to the error during omv-release-upgrade concerning omv-extras i had apt-get update running without errors.

      But i just finished the release-upgrade in a VM without errors using the tips in this thread.

      • just the 2 entries in the /etc/apt/sources.list
      • deleted the /etc/apt/sources.list.d/openmediavault-kernel-backports.list
      • omv-release-upgrade
    • I did it with my live system. At first everything looked fine, none of the errors I had during the day in testing environment. But then whe my system said "please reboot" it booted into grub rescue mode. This was then also kind of broken and it rescued nothing with the help of google.
      I then booted my normal OS with the help of Super Grub2 Disk. After that i did the steps suggested over at supergrubdisk.org.

      I'm on 4.1.20-1 (Arrakis) now. All my mainly used features are alive.

      Thanks to everyone! Wont miss an EOL date again. :thumbsup:
    • hello all,

      thanks for this !!
      great ...
      I should have looked here before spending ages "playing" with Repositories and scratching my head...

      • just the 2 entries in the /etc/apt/sources.list
      • deleted the /etc/apt/sources.list.d/openmediavault-kernel-backports.list
      • omv-release-upgrade


      congrats and thanks !
      Chris
    • bureau ai wrote:

      hi

      i just got it started doing this

      (using information from: forum.openmediavault.org/index…?postID=199662#post199662 which refers to superuser.com/a/1417751)

      • edit /etc/apt/sources.list -> the only entries are these 2:

        Source Code

        1. deb http://deb.debian.org/debian jessie main
        2. deb http://security.debian.org/debian-security jessie/updates main
      • rename /etc/apt/sources.list.d/openmediavault-kernel-backports.list to "#openmediavault-kernel-backports.list" (basically i could have deleted it as well)
      • started upgrading via omv-release-upgrade
      • it´s running now


      hope that helps and works
      alexander
      Thanks!
      That helped.
      CPU Intel i5 2500K
      16GB RAM
      256GB SSD
      7 x 1TB HDD RAID6
      OMV 4.1.23-1
      OMV-Extras 3.4.32