相关疑难解决方法(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万
查看次数

清理 /boot 分区最安全的方法是什么?

我为该/boot分区分配了 200 MB 。每当我尝试更新内核时,我都会收到一条错误消息,指出基本上/boot已满。

我可以做些什么来清理/boot和删除/备份旧内核?

kernel boot-partition

302
推荐指数
5
解决办法
42万
查看次数

如何将 Ubuntu Server 中的镜像从区域更改为主?

我设置了一个 Lucid Server (10.04),我想将镜像从美国(或任何其他国家/地区)更改为主 Ubuntu 镜像。

例如,我在 sources.list 中的两个第一个条目是:

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
Run Code Online (Sandbox Code Playgroud)

在桌面环境中,我会像这样选择主镜像:

软件来源

但是我如何从终端执行此操作,因为我没有安装图形环境!

server command-line software-sources apt-mirror

106
推荐指数
3
解决办法
30万
查看次数

将 deb 包标记为已使用,因此不建议自动删除

我的系统上安装了一堆共享库,它们不是某些具体包的依赖项,而是我从源代码构建的非 apt 管理库(如最新的 SDL、Allegro、SFML 等)和从源代码构建的其他软件。问题在于,这些库被 APT 视为未使用的库,因此是自动删除的候选库,而这些库会与可自由删除的合法未使用包混淆。

有没有办法将软件包标记为已使用,以便不建议自动删除它们?我的第一个想法是构建我自己的元包来保存依赖项(例如 ubuntu-desktop 是),但我不知道该怎么做。

package-management apt deb

8
推荐指数
1
解决办法
1867
查看次数

我无法安装任何软件包(linux-image-server、linux-server 依赖项错误)

我对 Ubuntu 很陌生,我搞砸了一些东西,我无法使用 apt-get install 安装任何软件包。

最初我收到此错误:

The following packages have unmet dependencies:
 linux-image-server : Depends: linux-image-3.2.0-36-generic but it is not going to be installed
 linux-server : Depends: linux-headers-server (= 3.2.0.36.43) but 3.2.0.37.45 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)

当我尝试运行“sudo apt-get -f install”时,我得到了这个:

dpkg: dependency problems prevent configuration of linux-image-server:
 linux-image-server depends on linux-image-3.2.0-36-generic; however:
  Package linux-image-3.2.0-36-generic is not installed.
dpkg: error processing linux-image-server (--configure):
 dependency problems - …
Run Code Online (Sandbox Code Playgroud)

dependencies 12.04

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

未满足的依赖关系:尚未配置

linux-image-server depends on linux-image-3.2.0-39-generic; however:
  Package linux-image-3.2.0-39-generic is not installed.
dpkg: error processing linux-image-server (--configure):
  dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 3.2.0.39.47); however:
  Package linux-image-server is not configured yet.
linux-server depends on linux-headers-server (= 3.2.0.39.47); however:
  Version of linux-headers-server on system is 3.2.0.40.48.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving …
Run Code Online (Sandbox Code Playgroud)

upgrade apt

4
推荐指数
1
解决办法
4873
查看次数