相关疑难解决方法(0)

添加 PPA 后如何解决未满足的依赖项?

有时,当我安装东西时,我会收到如下错误:

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:
 package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

package-management apt ppa dependencies software-installation

617
推荐指数
10
解决办法
119万
查看次数

如何恢复默认存储库?

现在更新时出现错误,由于损坏,我无法安装大多数软件

/etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

文件。有没有我可以下载的副本来替换它?

该文件适用于美国的 Ubuntu 12.04(最终测试版)。

repository software-sources

176
推荐指数
4
解决办法
56万
查看次数

E:无法纠正问题,您持有破损的包裹

我正在使用几天前安装的 Ubuntu 13.04。我正在尝试安装nodejsnpm. 我尝试先从命令行安装,然后卸载它。然后东西坏了。

sudo apt-get install -f nodejs npm
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:
 nodejs …
Run Code Online (Sandbox Code Playgroud)

package-management apt

151
推荐指数
3
解决办法
48万
查看次数

npm : 取决于: node-gyp (>= 0.10.9) 但它不会被安装

我想安装 npm。我已经更新了所有内容,但无法解决问题。

我得到的消息是:

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:
 npm : Depends: node-gyp (>= 0.10.9) but it is not going to …
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies npm software-installation

104
推荐指数
1
解决办法
7万
查看次数

你怎么能解开(取消扣留)一个包裹?

我使用突触来锁定版本pidgin-data- 如何将状态从hold恢复正常更改,以便正确升级?

PinningHowto说,这样做的apt-get install packagename应该删除hold,但运行dpkg -l | grep ^h仍显示它认为:

hi  pidgin-data                                                 1:2.10.6-0ubuntu1+pidgin1.12.04                            multi-protocol instant messaging client - data files
Run Code Online (Sandbox Code Playgroud)

如何正确撤消hold状态?

apt

73
推荐指数
3
解决办法
11万
查看次数

修复半安装包

使用sudo apt-get upgrade说明时出现错误:

dpkg: error processing libgfortran3:amd64 (--configure):
  package libgfortran3:amd64 is not ready for configuration
  cannot configure (current status `half-installed')
Errors were encountered while processing:
  libgfortran3:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

它似乎不会阻止安装/升级其他应用程序。我相信这个问题是由于在升级应用程序时直接关闭我的 PC 造成的。

我怎样才能解决这个问题?

package-management apt dpkg

52
推荐指数
4
解决办法
11万
查看次数

无法在 Ubuntu 18.04 上安装 nvidia 驱动程序

所以我试图为我的笔记本电脑(它有 GeForce 940MX)安装 nvidia 驱动程序,但没有运气。

我正在尝试通过键入以下内容来安装它们:

 sudo ubuntu-drivers autoinstall
Run Code Online (Sandbox Code Playgroud)

不幸的是,这失败了,并给出了以下输出:

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:
 nvidia-driver-396 : Depends: nvidia-dkms-396 (= 396.54-0ubuntu0~gpu18.04.1) but it is not going to be installed
                     Depends: nvidia-utils-396 …
Run Code Online (Sandbox Code Playgroud)

nvidia drivers 18.04

23
推荐指数
1
解决办法
5万
查看次数

在 Ubuntu 18.04 LTS Bionic 上安装 clang 6.0

如何在 Ubuntu 18.04 LTS Bionic 上安装 clang?

clang 18.04

21
推荐指数
2
解决办法
6万
查看次数

升级到 18.04,现在有许多损坏的包和未满足的依赖项

我犯了一个可怕的错误并升级到 18.04,而没有通过执行以下操作在不同的分区中进行备份:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt-get autoremove
sudo apt install update-manager-core
sudo do-release-upgrade -d
Run Code Online (Sandbox Code Playgroud)

然后我在重启后做了更新和升级命令。现在存在许多sudo apt-get -f install命令无法修复的未满足的依赖项和损坏的包问题。更新 sudo apt install -f 错误日志输出的第一部分是:

    Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... failed.
The following packages have unmet dependencies:
 gnome-calendar : Depends: gsettings-desktop-schemas (>= 3.21.2) but 3.18.1-1ubuntu1 is installed
 gnome-session : Depends: gnome-shell (>= 3.25.91-0ubuntu4~) but it is not installed
                 Depends: gnome-session-bin (>= 3.28.1-0ubuntu2) but 3.18.1.2-1ubuntu1.16.04.2 is installed …
Run Code Online (Sandbox Code Playgroud)

upgrade package-management apt dependencies

19
推荐指数
3
解决办法
8万
查看次数

设置窗口在 Ubuntu 22.04 中打不开

过去 5 年我一直是 ubuntu 用户,我最近从 20.1 升级到 22.04,我的设置不起作用,我尝试安装 gnome-control-center 但终端回复我以下内容:

The following packages have unmet dependencies:
 libpython3.10 : Depends: libpython3.10-stdlib (= 3.10.4-3ubuntu0.1) but 3.10.5-1+focal1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能使设置生效?

settings gnome-control-center 22.04

19
推荐指数
1
解决办法
2万
查看次数