Upgrade 8.0.4 to 8.0.6 fails: "E: Packages were downgraded and -y was used without --allow-downgrades."
Solved
Support
-
Hi everyone,
We fail upgrading our Cloudron instance on an Ubuntu 22.04.5 LTS machine from 8.0.4 to 8.0.6. I've checked the logs. It seems the updater tries to downgrade some packages while installing Docker, but fails:
2024-11-18T10:14:36 ==> installer: installing docker 2024-11-18T10:14:36 ==> installer: Making sure apt is in a good state 2024-11-18T10:14:36 ==> installer: Waiting for all dpkg tasks to finish... WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:3 https://download.docker.com/linux/ubuntu jammy InRelease Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Reading package lists...2024-11-18T10:14:39 ==> update: cloudron-updater is still active. will check in 5 seconds Building dependency tree... Reading state information... 3 packages can be upgraded. Run 'apt list --upgradable' to see them. 2024-11-18T10:14:40 ==> installer: apt is ready WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... Suggested packages: aufs-tools cgroupfs-mount | cgroup-lite Recommended packages: docker-ce-rootless-extras The following packages will be DOWNGRADED: containerd.io docker-ce docker-ce-cli 0 upgraded, 0 newly installed, 3 downgraded, 0 to remove and 3 not upgraded. E: Packages were downgraded and -y was used without --allow-downgrades. 2024-11-18T10:14:44 ==> update: cloudron-updater failed
Does anybody have any idea on how to proceed?
Thanks for your time!
Cheers,
Dominic -
Oh looks like docker was upgraded then outside of Cloudron updates maybe
apt upgrade
was called manually in the past.The installer should have placed the correct versions in
/tmp
so run the following to manually install the correct version:apt install --allow-downgrades -y /tmp/containerd.deb /tmp/docker-ce-cli.deb /tmp/docker.deb
Then the update should succeed again
-
-