`

修复ubuntupackage broken命令

阅读更多

http://www.upubuntu.com/2013/05/how-to-fix-broken-packages-using.html

 

If you cannot install new packages using the terminal under Ubuntu 13.04/12.10 or older and you receive this type of error:

(...) You might want to run 'apt-get -f install' to correct these:

 

The following packages have unmet dependencies: (...)



You may try these various types of solutions that may help you repair your package database:

   Tip 1 

Via the terminal, enter this command to fix broken packages:

sudo apt-get --fix-broken install


   Tip 2

If the above command didn't help, try these ones:

sudo rm /var/lib/apt/lists/* -vf   

 

sudo apt-get update 


   Tip 3

You may also try these commands:

sudo apt-get clean  

 

sudo apt-get autoclean 

 

sudo apt-get autoremove


   Tip 4

Another useful commands:

sudo dpkg --configure -a 

 

sudo apt-get update


    Tip 5

Open Ubuntu Software Center and if prompted to repair broken packages, click simply the repair button.

分享到:
评论

相关推荐

    Ubuntu基础知识介绍

    - **APT 系统修复**:当包管理系统出现问题时,可以使用 `apt-get fix-broken install` 来尝试修复。 - **源码包**:直接从源代码编译安装软件。 #### Xwindow 简介 - **历史**:X Window System 是一个为位图显示...

    ubuntu入门到精通pdf

    - **APT系统修复:** 当遇到问题时,可以使用`apt-get fix-broken install`来尝试修复。 - **源码包:** 通过编译源码来安装软件。 - **Xwindow简介:** - **历史:** X Window System的历史背景和发展。 - **架构...

    Linux主流平台软件管理器对照

    - 修复损坏的依赖关系:使用apt-get --fix-broken install。 最后是zypper,它主要用于openSUSE和SUSE Linux Enterprise系统。zypper的命令如下: - 安装软件包:使用zypper install package_name。 - 卸载软件包...

    Ubuntu20.04安装搜狗输入法的详细步骤

    如果在安装过程中遇到依赖问题,你可以使用`sudo apt –fix-broken install`命令来修复损坏的依赖,然后重新尝试安装。如果提示dpkg错误,如"dependency problems – leaving unconfigured",你可以通过运行`sudo ...

    realtek-r8125-dkms:易于使用Realtek r8125驱动程序的DKMS软件包,支持2.5 GbE

    瑞昱R8125 DKMS 这以DKMS方式提供Realtek r8125... 如果发生依赖关系错误,请尝试使用apt命令修复该错误。 sudo apt install --fix-broken 启动板PPA(推荐) 添加启动板PPA。 sudo add-apt-repository ppa:hardker

    update-debian:通过apt与Debian自动更新

    `apt`(Advanced Package Tool)是Debian及其衍生版如Ubuntu、Linux Mint等系统中用于软件包管理的重要工具,它允许用户方便地安装、更新和卸载软件。本教程将详细介绍如何使用`apt`来自动更新Debian系统。 首先,...

Global site tag (gtag.js) - Google Analytics