军事研究员 2023-07-20 22:56 采纳率: 98.6%
浏览 337
已结题

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


sudo apt-get install git-email
Reading 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:
 git-email : Depends: git (< 1:1.9.1-.)
E: Unable to correct problems, you have held broken packages.

sudo apt-get install git-email
正在阅读软件包列表...做
构建依赖关系树      
正在读取状态信息...做
无法安装某些软件包。这可能意味着您有
请求不可能的情况,或者如果您正在使用不稳定的情况
尚未创建某些所需包的发行版
或已移出传入。
以下信息可能有助于解决此问题:

以下包具有未满足的依赖项:
 git-email : depends: git (< 1:1.9.1-.)
E:无法纠正问题,您持有损坏的包裹。

这个错误通常是由于系统中存在损坏或不完整的软件包导致的。您可以尝试以下几种方法来解决这个问题:

更新软件包列表:运行以下命令,然后再次尝试安装git-email。


sudo apt-get update
修复损坏的软件包:运行以下命令以修复可能损坏的软件包。


sudo apt-get install -f
清理无效的软件包:运行以下命令以清理系统中的无效软件包。


sudo apt-get autoclean
sudo apt-get autoremove
手动安装git-email:如果上述方法都无效,您可以尝试手动下载并安装git-email软件包。
您可以在Ubuntu软件包网站上找到相关的软件包,并按照说明进行安装。
sudo apt-get install lighttpd
Reading 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:
 lighttpd : Depends: libterm-readline-perl-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
  • 写回答

3条回答 默认 最新

  • 军事研究员 2023-07-21 09:52
    关注
    
    sudo apt-get install python-pip
    Reading 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:
     python-pip : Depends: python-requests but it is not going to be installed
                  Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
                  Recommends: python-dev-all (>= 2.6) but it is not installable
    E: Unable to correct problems, you have held broken packages.
    

    sudo apt-get install python-dev-all
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package python-dev-all is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'python-dev-all' has no installation candidate
    

    
    sudo apt-get install aptitude
    Reading 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:
     aptitude : Depends: libcwidget3 but it is not going to be installed
                Depends: libsigc++-2.0-0c2a (>= 2.0.2) but it is not going to be installed
                Depends: libxapian22 but it is not going to be installed
                Recommends: apt-xapian-index but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论 编辑记录
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 11月20日
  • 已采纳回答 11月12日
  • 修改了问题 7月20日
  • 创建了问题 7月20日