The gobjc-9 package has missing dependencies

Bug #1967332 reported by Steve McConnel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-9 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Description: Ubuntu 20.04.4 LTS
Release: 20.04

gobjc-9 has been updated to 9.4.0-1ubuntu1~20.04.1 on focal-updates/universe.
However, some of its dependencies have not been updated to comply with this version.
"sudo apt install gobjc-9" results in the following message:

The following packages have unmet dependencies:
 gobjc-9 : Depends: gcc-9-base (= 9.4.0-1ubuntu1~20.04.1) but 9.4.0-1ubuntu1~20.04 is to be installed
           Depends: gcc-9 (= 9.4.0-1ubuntu1~20.04.1) but 9.4.0-1ubuntu1~20.04 is to be installed
           Depends: libobjc-9-dev (= 9.4.0-1ubuntu1~20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The last package (libobjc-9-dev) appears to not be present at all. The first two packages (gcc-9 and gcc-9-base) have not been updated to the same level as gobjc-9.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for reporting.

I tried reproducing this issue, and was able to install gobjc-9 without any problems on Ubuntu 20.04 Could you run `sudo apt update` and check if the problems persists? The binary packages mentioned is built from the same source package (https://bugs.launchpad.net/ubuntu/+source/gcc-9/9.4.0-1ubuntu1~20.04.1) so they should be in sync. However, it can be the case that some mirror or package refresh was temporarily out of sync, offering some new and some older packages.

If you still have this problem, please attach the output from apt policy gobjc-9 libobjc-9-dev gcc-9-base which will tell us which versions are available.

tags: added: focal unmetdeps
Changed in gcc-9 (Ubuntu):
status: New → Incomplete
Revision history for this message
Steve McConnel (stephen-mcconnel) wrote :

$ apt policy gobjc-9 libobjc-9-dev gcc-9-base
gobjc-9:
  Installed: (none)
  Candidate: 9.4.0-1ubuntu1~20.04.1
  Version table:
     9.4.0-1ubuntu1~20.04.1 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     9.3.0-10ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
libobjc-9-dev:
  Installed: (none)
  Candidate: 9.4.0-1ubuntu1~20.04.1
  Version table:
     9.4.0-1ubuntu1~20.04.1 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     9.3.0-10ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
gcc-9-base:
  Installed: 9.4.0-1ubuntu1~20.04
  Candidate: 9.4.0-1ubuntu1~20.04
  Version table:
 *** 9.4.0-1ubuntu1~20.04 100
        100 /var/lib/dpkg/status

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for providing additional information.

Looking at the output, the candidate version (i.e. which version will be installed) is pointing to 9.4.0-1ubuntu1~20.04.1 for the first two packages. So they are aware and would install the .1 versions.

However, gcc-9-base seems to stick to the previous version. Could this package have been pinned or held somehow?

Comparing with my output, it's pointing at the .1 version
$ apt policy gcc-9-base
gcc-9-base:
  Installert: 9.4.0-1ubuntu1~20.04.1
  Kandidat: 9.4.0-1ubuntu1~20.04.1
  Versjonstabell:
 *** 9.4.0-1ubuntu1~20.04.1 500
        500 http://no.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        100 /var/lib/dpkg/status
     9.3.0-10ubuntu2 500
        500 http://no.archive.ubuntu.com/ubuntu focal/main amd64 Packages

So the root cause here seems to be when installing the packages most will go for .1 versions in order to be in sync, but since gcc-9-base is still at the previous version with no newer candidate, it cannot sync up all the versions. I'm afraid I don't know why that would be the case, but setting this report back to new for someone else to take a look at it :)

Changed in gcc-9 (Ubuntu):
status: Incomplete → New
Revision history for this message
Matthias Klose (doko) wrote :

closing this, works for me as well. It's likely that one mirror is out-of-date, probably with the i386 packages?

Changed in gcc-9 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.