Only one version of nextcloud-server available from apt repo #69

Open
opened 2026-07-24 06:35:43 +02:00 by adamhax0rbana · 1 comment
Contributor

This issue isn't about this git repo, but rather the apt repo that hosts the output of this git repo.

Problem

I found my production server was down today when it tried to upgrade from what I believe was Nextcloud v32 to v34. The installer refused to proceed due to this [inadvertent] attempt to skip a major version.

This version jump also matches what I see on https://apt.jurisic.org/ which says that the latest version for trixie is v32, however we can see that it's actually v34 in the Packages file.

Workaround

For the time being, switching from the trixie to the bookworm one will allow you to downgrade to v33. After that, you can go back to the trixie repo and upgrade to v34 again.

Solution

Make multiple versions of the package available in the apt repo.

If using reprepro to maintain the apt repo, this can be accomplished by adding Limit: 0 to your conf/distributions file.

Another reason someone might want to downgrade is because an app is not compatible, which is the case with Nextcloud Office (aka richdocuments). The latest version of that app as of time of writing is 9.1.0, which has not been tested with either Nextcloud v33 nor v34.

This issue isn't about this git repo, but rather the apt repo that hosts the output of this git repo. # Problem I found my production server was down today when it tried to upgrade from what I believe was Nextcloud v32 to v34. The installer refused to proceed due to this [inadvertent] attempt to skip a major version. This version jump also matches what I see on https://apt.jurisic.org/ which says that the latest version for trixie is v32, however we can see that it's actually v34 in [the Packages file](https://apt.jurisic.org/debian/dists/trixie/main/binary-amd64/Packages). # Workaround For the time being, switching from the trixie to the bookworm one will allow you to downgrade to v33. After that, you can go back to the trixie repo and upgrade to v34 again. # Solution Make multiple versions of the package available in the apt repo. If using reprepro to maintain the apt repo, this can be accomplished by adding `Limit: 0` to your `conf/distributions` file. Another reason someone might want to downgrade is because an app is not compatible, which is the case with Nextcloud Office (aka `richdocuments`). The latest version of that app as of time of writing is 9.1.0, which has not been tested with either Nextcloud v33 nor v34.
Owner

Fix upgrade from Nextcloud 32 to 34

I rebuild packages for fix upgrade from Nextcloud 32 to 34, links for download:
nextcloud-server_32.0.12-1~deb13_all.deb
nextcloud-server_33.0.7-1~deb13_all.deb

Please make backup of database and data, then download packages and run:
sudo dpkg -i nextcloud-server_32.0.12-1~deb13_all.deb

Now check all is ok, then install nc 33:
sudo dpkg -i nextcloud-server_33.0.7-1~deb13_all.deb

After upgrade to nc 33, upgrade to nc 34

sudo apt-get update
sudo apt-get upgrade

Need mode disk space for repository

I will migrate repository on server with more disk space and save all versions of packages. But first need buy server where can deploy repository and archive of debian packages.

### Fix upgrade from Nextcloud 32 to 34 I rebuild packages for fix upgrade from Nextcloud 32 to 34, links for download: [nextcloud-server_32.0.12-1~deb13_all.deb](https://apt.jurisic.org/trixie-rebuild/nextcloud-server_32.0.12-1~deb13_all.deb) [nextcloud-server_33.0.7-1~deb13_all.deb](https://apt.jurisic.org/trixie-rebuild/nextcloud-server_33.0.7-1~deb13_all.deb) Please make backup of database and data, then download packages and run: `sudo dpkg -i nextcloud-server_32.0.12-1~deb13_all.deb` Now check all is ok, then install nc 33: `sudo dpkg -i nextcloud-server_33.0.7-1~deb13_all.deb` After upgrade to nc 33, upgrade to nc 34 ``` sudo apt-get update sudo apt-get upgrade ``` ### Need mode disk space for repository I will migrate repository on server with more disk space and save all versions of packages. But first need buy server where can deploy repository and archive of debian packages.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ijurisic/nextcloud-deb#69