No longer able to update 8.x, after adding new repos ended with 9.x that doesn't want to finish the update

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
1.It can not locate the repositories.
2. followed the upgrade guide, ended with latest version
3. can no finish the upgrade as a result.

Expected behaviour
Update via apt-get package manager

Actual behaviour
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.owncloud.org Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 47AE7F72479BC94B

W: Failed to fetch http://download.owncloud.org/download/repositories/8.2/Ubuntu_14.04/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

Server configuration
Operating system: Ubuntu 14.04 LTS
Web server: Apache
Database: MysQL
PHP version:
ownCloud version (see ownCloud admin page): 8.2.7
Updated from an older ownCloud or fresh install: updated.
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): none

ownCloud log (data/owncloud.log)

Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

I've followed this Guide: https://doc.owncloud.org/server/8.2/admin_manual/maintenance/package_upgrade.html

the link lead me to add latest repositories. i ran the install owncloud command afterwards, since the upgrade didn't want to upgrade it.

now i get this:

Set log level to debug
Turned on maintenance mode
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Reset log level

The version is now showing to be 9.1.1.

how do i solve this issue? why did the menitoned guide lead me to install 9.x repositories? why does the upgrade not work then?

offtopic: why can't you update owncloud as easilly as wordpress and thousands of other web apps? there is always something that get's changed and not working afterwards.

also documentation is lacking explanations. for example:

Then use occ to complete the upgrade. You must run occ as your HTTP
user. This example is for Debian/Ubuntu:

it doesn't say you need to be in owncloud folder for this command to work.

Hi,

why did the menitoned guide lead me to install 9.x repositories?

the easy answer is that you had a look at the wrong docs. The docs you're referring to is about "upgrading" which means that you want to upgrade from 8.2 to e.g. 9.1 what you have actually done by changing the repositories.

why does the upgrade not work then?

Again because you had a look at the wrong docs and didn't noticed a big red warning box telling you:

Make sure that you don’t skip a major release when upgrading via repositories. For example you can’t upgrade from 8.1.x to 9.0.x directly as you would skip the 8.2.x major release. See Upgrading Across Skipped Releases for more information.

-> https://doc.owncloud.org/server/9.1/admin_manual/maintenance/package_upgrade.html

Concerning:

offtopic: why can't you update owncloud as easilly as wordpress and thousands of other web apps? there is always something that get's changed and not working afterwards.

No web application can save people actually reading a documentation. If you follow simple and existing instruction updating / upgrading oC is as simple as every other web application. Please don't point your finger at oC if you can't follow provided instructions.

If you think there is something from the docs missing which could avoid such misunderstanding from user side feel free to post improvement suggestions at:

https://github.com/owncloud/documentation/issues

it doesn't say you need to be in owncloud folder for this command to work.

See the description here:

In ownCloud 8.2+ you may run it from any directory (specifying the filepath); in previous releases it had to be run from the owncloud/ directory.

https://doc.owncloud.org/server/9.1/admin_manual/configuration_server/occ_command.html#occ-command-directory

Again the manual link: https://doc.owncloud.org/server/8.2/admin_manual/maintenance/package_upgrade.html

i didn't upgrade anything the apt-get did the upgrade !!!!

manual says:

The Linux package repositories have changed, and you must configure your
system to use these new repositories to install or upgrade ownCloud 8.2+.
The new repositories are at our Open Build Service.

the Open Build Service takes me to these repositories: https://download.owncloud.org/download/repositories/stable/owncloud/

i searched for my OS version and found this:

Ubuntu_14.04 owncloud-9.1.1-1.2
You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). Run the following shell commands as root to trust the repository:
wget -nv https://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/Release.key -O Release.key
apt-key add - < Release.key
Run the following shell commands as root to add the repository and install from there.
sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/ /' > /etc/apt/sources.list.d/owncloud.list"

i followed the manual and add these repos as well as the files..

i then continue to follow the manual - there is no custom theme, so that part is skipped and i get to this:

Or you can upgrade just ownCloud with this command:
apt-get update && apt-get install owncloud

i ran the command and it upgrades it from 8.2.7.1 to 9.1.1

The following extra packages will be installed:
  owncloud-deps-php5 owncloud-files
Suggested packages:
  php5-apcu php-apc php5-imagick php-smbclient libsmbclient owncloud-deps
The following packages will be REMOVED
  owncloud-config-apache owncloud-server
The following NEW packages will be installed
  owncloud-deps-php5 owncloud-files
The following packages will be upgraded:
  owncloud
1 to upgrade, 2 to newly install, 2 to remove and 0 not to upgrade.
Need to get 24.2 MB of archives.
After this operation, 9,771 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/  owncloud 9.1.1-1.2 [2,620 B]
Get:2 http://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/  owncloud-files 9.1.1-1.2 [24.2 MB]
Get:3 http://download.owncloud.org/download/repositories/stable/Ubuntu_14.04/  owncloud-deps-php5 9.1.1-1.2 [4,276 B]
Fetched 24.2 MB in 2min 30s (161 kB/s)
E: changelog for this version is not (yet) available; try https://launchpad.net/ubuntu/+source/owncloud/+changelog
Reading changelogs... Done
(Reading database ... 200425 files and directories currently installed.)
Removing owncloud-config-apache (8.2.7-2.1) ...
Conf owncloud disabled.
To activate the new configuration, you need to run:
  service apache2 reload
 * Reloading web server apache2                                                  *
dpkg: owncloud-server: dependency problems, but removing anyway as you requested:
 owncloud depends on owncloud-server (= 8.2.7-2.1).

Removing owncloud-server (8.2.7-2.1) ...
dpkg: warning: while removing owncloud-server, directory '/var/www/owncloud/config' not empty so not removed
(Reading database ... 189092 files and directories currently installed.)
Preparing to unpack .../owncloud_9.1.1-1.2_all.deb ...
Unpacking owncloud (9.1.1-1.2) over (8.2.7-2.1) ...
Selecting previously unselected package owncloud-files.
Preparing to unpack .../owncloud-files_9.1.1-1.2_all.deb ...
Unpacking owncloud-files (9.1.1-1.2) ...
Selecting previously unselected package owncloud-deps-php5.
Preparing to unpack .../owncloud-deps-php5_9.1.1-1.2_all.deb ...
owncloud-deps-php5: occ maintenance:mode --on
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Maintenance mode enabled
Unpacking owncloud-deps-php5 (9.1.1-1.2) ...
Setting up owncloud-files (9.1.1-1.2) ...
Setting up owncloud-deps-php5 (9.1.1-1.2) ...
Installing new version of config file /etc/apache2/conf-available/owncloud.conf ...
Enabling conf owncloud.
To activate the new configuration, you need to run:
  service apache2 reload
 * Reloading web server apache2                                                  *
apache2_invoke rewrite: already enabled
 * Restarting web server apache2                                         [ OK ]
apache2_invoke owncloud: already enabled
 * Reloading web server apache2                                                  *
Leaving server in maintenance mode. Please run occ upgrade manually.

See https://doc.owncloud.org/server/9.1/admin_manual/maintenance/upgrade.html

ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Maintenance mode enabled
Setting up owncloud (9.1.1-1.2) ...

and here i am.

i followed the manual. i didn't want to skip any releases. i didn't force it to skip any releases. i actually wanted to upgrade it to 8.2.8.

so where are the repos for 8.2.8 then?

It is best to update your ownCloud installation with every new point release,
and to never skip any major releases. If you have skipped any major releases you
can bring your ownCloud current with these steps:
1. Add the repository of your current version
2. Upgrade your current version to the latest point release
3. Add the repo of the next major release
4. Upgrade your current version to the next major release
5. Run upgrade routine
6. Repeat from step 3 until you reach the last available major release

See my reworked answer above. You just had a look at the wrong documentation...

followed the instruction in provided link. https://doc.owncloud.org/server/9.1/admin_manual/maintenance/package_upgrade.html

emphasis are mine.

It is best to update your ownCloud installation with every new point release,
and to never skip any major releases. If you have skipped any major releases you
can bring your ownCloud current with these steps:
1. Add the repository of your current version - DONE
[ i've found and added these https://download.owncloud.org/download/repositories/8.2/owncloud/ ]
2. Upgrade your current version to the latest point release - CAN NOT BE DONE

sudo apt-get install owncloud
Reading package lists... Done
Building dependency tree
Reading state information... Done
owncloud is already the newest version.


sudo -u www-data php occ upgrade              
ownCloud or one of the apps require upgrade - only a limited number of commands are available
    You may use your browser or the occ upgrade command to do the upgrade
    Set log level to debug
    Exception: Updates between multiple major versions and downgrades are unsupported.
    Update failed
    Maintenance mode is kept active
    Reset log level
  1. Add the repo of the next major release
  2. Upgrade your current version to the next major release
  3. Run upgrade routine
  4. Repeat from step 3 until you reach the last available major release

also back to initial issue:
sudo apt-get install -f --reinstall owncloud
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of owncloud is not possible, it cannot be downloaded.

You have already installed the 9.1 packages so you can't follow these instructions as you already have skipped a major release.

Just downgrade the packages to 8.2 (see google how to do that via apt-get).

just in case someone followed the same documentation:

first set correct repos. then do:
apt-cache showpkg owncloud
in my case this will give out (ampong other things):

Provides:
9.1.1-1.2 -
8.2.8-1.1 -
6.0.1+dfsg-1ubuntu1.2 -
6.0.1+dfsg-1ubuntu1 - owncloud-sqlite owncloud-pgsql owncloud-mysql

then run apt-get install pkg=version
so in my case:
sudo apt-get install pkg=8.2.8-1.1
after it is done run:
cd /var/www/owncloud
this will switch to owncloud folder (adjust according to where you installed owncloud).finally run
sudo -u www-data php occ upgrade

disable maintenance mode, set correct folder permissions (or continue the upgrade step by step until latest version).