Error message:

Please install all available updates for your release before upgrading.


Refusal to update

Contents of /etc/update-manager/release-upgrades:

# Default behavior for the release upgrader.

# Default prompting behavior, valid options:
#  never  - Never check for, or allow upgrading to, a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the supported release that immediately succeeds the
#           currently-running release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that if this option is used and
#           the currently-running release is not itself an LTS release the
#           upgrader will assume prompt was meant to be normal.

I've tried the obvious (apt update, apt upgrade, apt full-upgrade etc).

  • Try sudo apt update && sudo apt dist-upgrade – Thomas Ward Jul 15 '19 at 13:56
  • @ThomasWard Thanks, I tried that though. The latter yields 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. – Adam Williams Jul 15 '19 at 14:03

The problem was that the following packages were due to be updated:

➜  ~ sudo apt list --upgradable
Listing... Done
opendistro-alerting/stable amd64 [upgradable from:]
opendistro-performance-analyzer/stable amd64 [upgradable from:]
opendistro-security/stable amd64 [upgradable from:]
opendistro-sql/stable amd64 [upgradable from:]
opendistroforelasticsearch/stable 1.0.1-1 amd64 [upgradable from: 0.9.0-1]

Unfortunately, this could not happen in practice:

➜  ~ sudo apt install opendistro-alerting/stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '' (. stable:stable [amd64]) for 'opendistro-alerting'
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.
 opendistro-alerting : Depends: elasticsearch-oss (= 7.0.1) but 6.7.1 is to be installed
E: Unable to correct problems, you have held broken packages.

I temporarily removed elasticsearch-oss and the opendistro- packages, and then do-release-upgrade worked as expected.

  • 3
    Well done! +1 for discovering apt list --upgradable. If I could give you a second +1 for the very sensible action of uninstalling the conflicting packages, I would. – user535733 Jul 15 '19 at 14:35

ubuntu 18.04 to ubuntu 19.04 is not a suported upgrade path

...that being said you can follow this guide:


extract from the guide :

sudo apt update && sudo apt dist-upgrade
sudo apt install update-manager-core
sudo sed -i "s/Prompt=.*/Prompt=normal/g" /etc/update-manager/release-upgrades
sudo sed -i 's/bionic/disco/g' /etc/apt/sources.list
sudo sed -i 's/^/#/' /etc/apt/sources.list.d/*.list
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean
  • I want to update to 18.10 – Adam Williams Jul 15 '19 at 14:02
  • 1
    Editing sources.list isn't recommended unless you know what you are doing. See askubuntu.com/q/1061450/816190 – Kulfy Jul 15 '19 at 14:02
  • I want to update to 19.04 after I update to 18.10. – Adam Williams Jul 15 '19 at 14:04
  • 1
    just follow the above guide for infinite profit. you're hurting yourself and I don't understand why. – tatsu Jul 15 '19 at 14:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.