Hi all,
actually I run OMV 0.4.36 but like to go for 5.0. I run RAID and like to do a smooth update. What is the easist or most secure way?
Complete new installation or update?
best regards
openalf
Hi all,
actually I run OMV 0.4.36 but like to go for 5.0. I run RAID and like to do a smooth update. What is the easist or most secure way?
Complete new installation or update?
best regards
openalf
Unless you have a reason, I wouldn't upgrade yet especially if you are using any third party plugins (omv-plugins.org).
Hello,
we use OMV 0.4 for a while now. So we tried to migrate to 0.5.
We run the script (last version from github), and try to migrate with this command : omv-release-upgrade. But we had a problem :
W: Failed to fetch file:/archives/Packages.gz File not found E: Some index files failed to download, they have been ignored, or old ones used instead.
But after that we see to OMV 5 is ready to update in update manager. So we run the update with the GUI.
But after migration we have a problem.
When we made a "check" in the "update manager", we have these errors :
Failed to execute command 'export LANG=C; apt-get update 2>&1': Ign file: Release.gpg Ign file:/archives/ Translation-en Ign file: Release Ign file: Packages Err file: Packages File not found Hit http://ftp.belnet.be squeeze Release.gpg Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en Hit http://ftp.belnet.be squeeze-updates Release.gpg Hit http://security.debian.org squeeze/updates Release.gpg Ign http://security.debian.org/ squeeze/updates/contrib Translation-en Ign http://security.debian.org/ squeeze/updates/main Translation-en Ign http://security.debian.org/ squeeze/updates/non-free Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en Hit http://ftp.belnet.be squeeze Release Hit http://packages.openmediavault.org sardaukar Release.gpg Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en Hit http://ftp.belnet.be squeeze-updates Release Hit http://security.debian.org squeeze/updates Release Hit http://packages.openmediavault.org sardaukar Release Hit http://ftp.belnet.be squeeze/main Sources Hit http://ftp.belnet.be squeeze/non-free Sources Hit http://ftp.belnet.be squeeze/contrib Sources Hit http://ftp.belnet.be squeeze/main amd64 Packages Hit http://ftp.belnet.be squeeze/non-free amd64 Packages Hit http://ftp.belnet.be squeeze/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main Sources/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib Sources Hit http://security.debian.org squeeze/updates/main Sources Ign http://packages.openmediavault.org sardaukar/main amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free Sources Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free amd64 Packages Hit http://security.debian.org squeeze/updates/contrib Sources Hit http://security.debian.org squeeze/updates/non-free Sources Hit http://security.debian.org squeeze/updates/main amd64 Packages Hit http://security.debian.org squeeze/updates/contrib amd64 Packages Hit http://security.debian.org squeeze/updates/non-free amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages Hit http://packages.openmediavault.org sardaukar/main amd64 Packages W: Failed to fetch file:/archives/Packages.gz File not found E: Some index files failed to download, they have been ignored, or old ones used instead.
Error #4000: exception 'OMVException' with message 'Failed to execute command 'export LANG=C; apt-get update 2>&1': Ign file: Release.gpg Ign file:/archives/ Translation-en Ign file: Release Ign file: Packages Err file: Packages File not found Hit http://ftp.belnet.be squeeze Release.gpg Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en Hit http://ftp.belnet.be squeeze-updates Release.gpg Hit http://packages.openmediavault.org sardaukar Release.gpg Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en Hit http://security.debian.org squeeze/updates Release.gpg Ign http://security.debian.org/ squeeze/updates/contrib Translation-en Ign http://security.debian.org/ squeeze/updates/main Translation-en Ign http://security.debian.org/ squeeze/updates/non-free Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en Hit http://ftp.belnet.be squeeze Release Hit http://ftp.belnet.be squeeze-updates Release Hit http://security.debian.org squeeze/updates Release Hit http://packages.openmediavault.org sardaukar Release Hit http://ftp.belnet.be squeeze/main Sources Hit http://ftp.belnet.be squeeze/non-free Sources Hit http://ftp.belnet.be squeeze/contrib Sources Hit http://ftp.belnet.be squeeze/main amd64 Packages Hit http://ftp.belnet.be squeeze/non-free amd64 Packages Hit http://ftp.belnet.be squeeze/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main Sources/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib Sources Hit http://security.debian.org squeeze/updates/main Sources Ign http://packages.openmediavault.org sardaukar/main amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free Sources Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free amd64 Packages Hit http://security.debian.org squeeze/updates/contrib Sources Hit http://security.debian.org squeeze/updates/non-free Sources Hit http://security.debian.org squeeze/updates/main amd64 Packages Hit http://security.debian.org squeeze/updates/contrib amd64 Packages Hit http://security.debian.org squeeze/updates/non-free amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages Hit http://packages.openmediavault.org sardaukar/main amd64 Packages W: Failed to fetch file:/archives/Packages.gz File not found E: Some index files failed to download, they have been ignored, or old ones used instead.' in /usr/share/openmediavault/engined/rpc/apt.inc:258 Stack trace: #0 [internal function]: OMVRpcServiceApt->update(NULL, Array) #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
So what can we do to fix this ?
Use a backup and return to 0.4 and try to migrate again, or something else ?
Regards.
Piet
First, it would be nice to see the whole apt-get update when the error occured before the upgrade.
Second, my guess right now is that your used debian repo is down...
Greetings
David
Zitat von "davidh2k"First, it would be nice to see the whole apt-get update when the error occured before the upgrade.
Second, my guess right now is that your used debian repo is down...
Greetings
David
Sorry.
here is the apt-get update result :
root@NAS-OMV:~# apt-get update
Ign file: Release.gpg
Ign file:/archives/ Translation-en
Ign file:/archives/ Translation-en_US
Ign file: Release
Ign file: Packages
Err file: Packages
File not found
Hit http://ftp.belnet.be squeeze Release.gpg
Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en
Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en_US
Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en
Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en_US
Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en
Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en_US
Hit http://ftp.belnet.be squeeze-updates Release.gpg
Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en
Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en_US
Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_US
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Hit http://packages.openmediavault.org sardaukar Release.gpg
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en_US
Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en
Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en_US
Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en_US
Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en
Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en_US
Hit http://ftp.belnet.be squeeze Release
Hit http://security.debian.org squeeze/updates Release
Hit http://packages.openmediavault.org sardaukar Release
Hit http://ftp.belnet.be squeeze-updates Release
Hit http://ftp.belnet.be squeeze/main Sources
Hit http://ftp.belnet.be squeeze/non-free Sources
Hit http://ftp.belnet.be squeeze/contrib Sources
Hit http://ftp.belnet.be squeeze/main amd64 Packages
Hit http://security.debian.org squeeze/updates/main Sources
Ign http://packages.openmediavault.org sardaukar/main amd64 Packages
Hit http://ftp.belnet.be squeeze/non-free amd64 Packages
Hit http://ftp.belnet.be squeeze/contrib amd64 Packages
Hit http://security.debian.org squeeze/updates/contrib Sources
Hit http://security.debian.org squeeze/updates/non-free Sources
Hit http://security.debian.org squeeze/updates/main amd64 Packages
Hit http://security.debian.org squeeze/updates/contrib amd64 Packages
Hit http://security.debian.org squeeze/updates/non-free amd64 Packages
Hit http://ftp.belnet.be squeeze-updates/main Sources/DiffIndex
Hit http://ftp.belnet.be squeeze-updates/contrib Sources
Hit http://ftp.belnet.be squeeze-updates/non-free Sources
Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages/DiffIndex
Hit http://ftp.belnet.be squeeze-updates/contrib amd64 Packages
Hit http://ftp.belnet.be squeeze-updates/non-free amd64 Packages
Hit http://packages.openmediavault.org sardaukar/main amd64 Packages
Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages
W: Failed to fetch file:/archives/Packages.gz File not found
E: Some index files failed to download, they have been ignored, or old ones used instead.
Alles anzeigen
and here is the sources.list
deb http://ftp.belnet.be/debian/ squeeze main non-free contrib
deb-src http://ftp.belnet.be/debian/ squeeze main non-free contrib
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze-updates, previously known as 'volatile'
deb http://ftp.belnet.be/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.belnet.be/debian/ squeeze-updates main contrib non-free
Alles anzeigen
and the openmediavault.list
deb http://packages.openmediavault.org/public sardaukar main
# deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar main
## Uncomment the following line to add software from the proposed repository.
# deb http://packages.openmediavault.org/public sardaukar-proposed main
# deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
# deb http://packages.openmediavault.org/public sardaukar partner
# deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar partner
Alles anzeigen
For the sources.list, I tried yesterday with the us repo, but result is the same.
If you have a idea ... ?
Try:
apt-get clean
dpkg --configure -a
apt-get upgrade
apt-get -f install
Sorry, I'm at work and only have my iphone... its nasty to dig through those code boxes there... i just see one error which confuses me, never seen before:
But before apt updated the sources... maybe you can throw that at google or another mod has an idea...
Greetings
David
That line is included since we spoke about it 1-2 weeks ago.
untested: (can't test it atm, I'm not at home)
maybe "touch /var/cache/openmediavault/archives/packages"
Don't know if packages has to be upper or lower case.
These are type of errors I've seen when corrupted file is in archives.
Hello,
thank very much for the helps.
so we tried this :
root@NAS-OMV:~# apt-get clean
root@NAS-OMV:~# dpkg --configure -a
root@NAS-OMV:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@NAS-OMV:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Alles anzeigen
And we have the same error in the GUI or the error with apt-get update.
And I can't come back to 0.4 because my backup disk with this backup is dead.
update :
we do this like mentioned by ryecoaaron
echo "deb file:/var/cache/openmediavault/archives /" > /etc/apt/sources.list.d/openmediavault-local.list
and apt-get update is ok now.
and the check in the GUI is ok too.
So the problem is coming from the "cleaning" script.
Thank very much for the help.
And I want to be sure that the upgrade of 0.4 to 0.5 is ok.
There is a way to do this?
You are right and it is an easy fix. I would just inquire here if the cleaning script has been updated before you upgrade. Then download the fixed version for use before you upgrade.
Zitat von "tekkbebe"You are right and it is an easy fix. I would just inquire here if the cleaning script has been updated before you upgrade. Then download the fixed version for use before you upgrade.
thank, but I already do the upgrade with the last github version of the cleaning package (yesterday)
And I want to be sure that the upgrade of 0.4 to 0.5 is ok.
There is a way to do thi s?
The only way to tell if the upgrade worked is if you can login to the web interface. Otherwise, it will give you an error during the upgrade.
Zitat von "ryecoaaron"Alles anzeigenA variable is commented out in the cleaning script so it writes
instead of
to
Solo will be fixing later
I can't see any error in the code. Can you please check what this command gives you on the CLI?
it should give "/var/cache/openmediavault". It works on my system. The variables are commented out because they are set in /etc/default/openmediavault and imported with ". /etc/default/openmediavault". After that they are available ... or sometimes not :shock:
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!