3

First of all, sorry for the long question.

I have tried the following set of commands to upgrade my 16.04 to 18.04. The end result is "Please install all available updates for your release before upgrading."

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo apt autoremove
$ sudo apt install update-manager-core
$ sudo do-release-upgrade

I am using this article as the reference.

Currently, I am using 16.04. Notification is set to For long-term support version. in Software & Update > Update section

I ran $ sudo apt list --upgradable -a after getting the message Please install all available updates for your release before upgrading. The output of the above command is:

ruby-dev/xenial 1:2.3.0+1 all [upgradable from: 1:1.9.3.5bbox3~trusty1] ruby-dev/now 1:1.9.3.5bbox3~trusty1 all [installed,upgradable to: 1:2.3.0+1]

So, I ran $ sudo apt-get install ruby2.3 ruby2.3-dev, but the output says

Here is the output:

ruby2.3 is already the newest version (2.3.8-4bbox1~trusty1).
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: ruby2.3-dev : Depends: libruby2.3 (= 2.3.1-2~ubuntu16.04.14) but 2.3.8-4bbox1~trusty1 is to be installed E: Unable to correct problems, you have held broken packages.

Here are wo putputs:

  • ruby2.3 is already the newest version (2.3.8-4bbox1~trusty1)
  • ruby2.3-dev : Depends: libruby2.3 (= 2.3.1-2~ubuntu16.04.14) but 2.3.8-4bbox1~trusty1 is to be installed

The interesting part is that the first output shows the version already installed and in the second output line is asking for the same exact version!

I even tried $ sudo apt-get install libruby2.3 and got this:

libruby2.3 is already the newest version (2.3.8-4bbox1~trusty1).
libruby2.3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

What is the correct workaround for this? According to this article, it looks like many users have come across through this particular issue.

EDIT:

Please see the output of $ sudo apt policy libruby2.3 below.

libruby2.3:
  Installed: 2.3.8-4bbox1~trusty1
  Candidate: 2.3.8-4bbox1~trusty1
  Version table:
 *** 2.3.8-4bbox1~trusty1 100
        100 /var/lib/dpkg/status
     2.3.1-2~ubuntu16.04.14 500
        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     2.3.0-5ubuntu1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages

1 Answers1

2

Remove the package and try again.

sudo apt remove --purge ruby2.3 ruby2.3-dev
sudo apt autoremove

Then download This file and install it using the software installer.

Then do the upgrade.

Zanna
  • 72,312
Bapi
  • 449