Issues
When upgrading a Redpanda cluster from version 24.1.x to 24.2.x, you may encounter dependency errors on Ubuntu systems. This typically happens because the upgrade process requires specific package installation ordering that isn't handled automatically by the package manager.
Caveats
The example version used in this document is 24.2.19, however you will want to update that to the Redpanda version you are trying to install.
Error Message
When attempting to install Redpanda 24.2.x with a command like sudo apt install redpanda=24.2.19-1
, you might see the following error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
redpanda : Depends: redpanda-rpk (= 24.2.19-1) but it is not going to be installed or
redpanda-debug (= 24.2.19-1) but it is not going to be installed
Depends: redpanda-tuner (= 24.2.19-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Resolution
To resolve this issue, you need to install the packages in a specific order:
-
First, install the RPK and tuner packages together:
sudo apt install -y redpanda-rpk=24.2.19-1 redpanda-tuner=24.2.19-1
-
Then install the main Redpanda package:
sudo apt install -y redpanda=24.2.19-1
This approach resolves the dependency issues by ensuring that the required components are installed in the correct order.
You can read more about this in our Deployment documentation here.
If you continue to see issues please reach out to Redpanda Support