Results 1 to 5 of 5

Thread: ubuntu drivers error

  1. #1
    Join Date
    Dec 2020
    Beans
    42

    ubuntu drivers error

    Hi,

    I wanted to upgrade my nvidia-driver (from 455 to 460), so I ran

    Code:
    sudo ubuntu-drivers autoinstall
    I got error
    Code:
    WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
    That is strange, because I have never installed nvidia-driver-390.
    But further:
    Code:
    Some packages could not be installed. This could mean
    that an impossible situation was requested or an unstable distribution was used
    in which some packages have not yet been created or moved
    from the Incoming directory.
    The following information may help resolve the situation:
    
    The following packages have unmet dependencies:
      nvidia-driver-460: Requires: nvidia-kernel-source-460 (= 460.73.01-0ubuntu0.20.04.1) but it will not be installed
    E: Could not fix problems, corrupt packages stopped.

  2. #2
    Join Date
    May 2013
    Location
    Galiza
    Beans
    4,009
    Distro
    Ubuntu

    Re: ubuntu drivers error

    Try:

    Code:
    sudo apt-get remove --purge nvidia*
    sudo ubuntu-drivers autoinstall

  3. #3
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: ubuntu drivers error

    I'm guessing you may need quotes round that asterisk to stop it expanding to anything starting with nvidia:
    Code:
    sudo apt-get remove --purge "nvidia*"
    Last edited by The Cog; April 24th, 2021 at 09:39 PM.

  4. #4
    Join Date
    May 2013
    Location
    Galiza
    Beans
    4,009
    Distro
    Ubuntu

    Re: ubuntu drivers error

    Quote Originally Posted by The Cog View Post
    I'm guessing you may need quotes round that asterisk to stop it expanding to anything starting with nvidia:
    Code:
    sudo apt-get remove --purge "nvidia*"
    But we want to uninstall everything Nvidia...

  5. #5
    Join Date
    Apr 2011
    Beans
    4

    Re: ubuntu drivers error

    Without the inverted commas, bash tries to expand the * to anything in the scope of the current commandline. And probably finds nothing, unless you've been downloading some nvidia resources to help you fix your graphics card.
    With the inverted commas, the search "nvidia*" is passed to apt, and it is expanded there - and the packages are removed.

    worked on my machine!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •