Results 1 to 2 of 2

Thread: broken package E: Unable to correct problems, you have held broken packages.

  1. #1
    Join Date
    May 2016
    Beans
    9

    broken package E: Unable to correct problems, you have held broken packages.

    Hi

    strangewise i have a problem:
    con not be solved by
    Code:
    sudo apt upgrade --fix-missing
    Code:
    sudo dpkg –configure -a
    leads to : strange:
    Code:
    dpkg: error: need an action option
    
    Type dpkg --help for help about installing and uninstalling packages [*];
    Use 'apt' or 'aptitude' for user-friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug flag values;
    Type dpkg --force-help for a list of forcing options;
    Type dpkg-deb --help for help about manipulating *.deb files;
    Code:
    sudo apt-get install --reinstall linux-headers-generic-hwe-18.04 linux-image-generic-hwe-18.04  linux-generic-hwe-18.04Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    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.
     linux-headers-generic-hwe-18.04 : Depends: linux-headers-5.0.0-25-generic but it is not installable
     linux-image-generic-hwe-18.04 : Depends: linux-image-5.0.0-25-generic but it is not going to be installed
                                     Depends: linux-modules-extra-5.0.0-25-generic but it is not installable
    E: Unable to correct problems, you have held broken packages.

    any idea how to solve this?

    Thanks T

  2. #2
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    4,665
    Distro
    Xubuntu 19.04 Disco Dingo

    Re: broken package E: Unable to correct problems, you have held broken packages.

    Quote Originally Posted by thomas109 View Post
    Code:
    sudo dpkg –configure -a
    leads to : strange:
    Code:
    dpkg: error: need an action option
    That command should be
    Code:
    sudo dpkg --configure -a
    That is, two dashes, not one en-dash. Did you copy the command via a word processor? Those applications often change pairs of dashes into en-dashes.

    Let's see what's going on:
    Code:
    dpkg --list | egrep -v ^ii\|^rc
    dpkg --list | grep linux-
    df -h
    It looks like you somehow got the metapackage for kernel 5.0.0-25 (maybe from proposed), but the latest kernel in the repos is 5.0.0-23.

    Edit: 5.0.0-25 is now in the repositories, so this should now be trivial to fix.
    Last edited by Impavidus; 3 Days Ago at 07:57 AM.

Tags for this Thread

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
  •