[Bug 2126679] Re: FTBFS due to removal of nvidiadetection from ubuntu-drivers-common

Mitchell Augustin 2126679 at bugs.launchpad.net
Thu Oct 2 19:26:19 UTC 2025


Thanks - I'm taking a look at this.

For context, we removed this from Questing since we could not find any
references to it in software-properties-common or subiquity, and since
it appears to have not been updated since 2020 (and thus we believe it
was subsumed by equivalent functionality in other parts of the ubuntu-
drivers application, since it seems to be an outdated version of
UbuntuDrivers/detect.py and ./ubuntu-drivers).

It looks like there is still a lingering usage of it in here, though, in
DistUpgrade/DistUpgradeCache.py:

```
    def checkForNvidia(self):
        """
        this checks for nvidia hardware and checks what driver is needed
        """
        logging.debug("nvidiaUpdate()")
        # if the free drivers would give us a equally hard time, we would
        # never be able to release
        try:
            from NvidiaDetector.nvidiadetector import NvidiaDetection
        except (ImportError, SyntaxError) as e:
            # SyntaxError is temporary until the port of NvidiaDetector to
            # Python 3 is in the archive.
            logging.error("NvidiaDetector can not be imported %s" % e)
            return False
        try:
            # get new detection module and use the modalises files
            # from within the release-upgrader
            nv = NvidiaDetection(obsolete="./ubuntu-drivers-obsolete.pkgs")
            #nv = NvidiaDetection()
            # check if a binary driver is installed now
            for oldDriver in nv.oldPackages:
                if oldDriver in self and self[oldDriver].is_installed:
                    self.mark_remove(oldDriver, "old nvidia driver")
                    break
            else:
                logging.info("no old nvidia driver installed, installing no new")
                return False
            # check which one to use
            driver = nv.selectDriver()
            logging.debug("nv.selectDriver() returned '%s'" % driver)
            if not driver in self:
                logging.warning("no '%s' found" % driver)
                return False
            if not (self[driver].marked_install or self[driver].marked_upgrade):
                self[driver].mark_install()
                logging.info("installing %s as suggested by NvidiaDetector" % driver)
        except Exception as e:
            logging.error("NvidiaDetection returned a error: %s" % e)
        return False
```

I'm taking a look to see whether this is something already modernized by
another part of the u-d-c source. If so, we'll update the u-r-u
package's invocation here - if not, we can revert the Questing version
of u-d-c to add the NvidiaDector back in.

stay tuned.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2126679

Title:
  FTBFS due to removal of nvidiadetection from ubuntu-drivers-common

Status in ubuntu-release-upgrader package in Ubuntu:
  Confirmed

Bug description:
  Currently, ubuntu-release-upgrader is FTBFS because part of d/rules
  attempts to generate a tarball for dist-upgrader. This breaks when it
  attempts to archive a broken symlink ("NvidiaDetector") which points
  to a directory from the ubuntu-drivers-common package
  ("/usr/lib/python3/dist-packages/NvidiaDetector") fomr which it was
  removed in version 1:0.10.3 [1]. Build failure log from u-r-u is at
  [2].

  [1]: https://launchpad.net/ubuntu/+source/ubuntu-drivers-
  common/1:0.10.3

  [2]: https://launchpadlibrarian.net/820924013/buildlog_ubuntu-
  questing-amd64.ubuntu-release-upgrader_1%3A25.10.6_BUILDING.txt.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2126679/+subscriptions




More information about the foundations-bugs mailing list