相关疑难解决方法(0)

如何恢复默认存储库?

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

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

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

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

repository software-sources

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

如何在安装后的子进程中调试 dpkg 配置错误?

简而言之:我正在尝试安装 spamassassin,但 dpkg 仅返回:

dpkg: error processing spamassassin (--configure):
subprocess installed post-installation script returned error exit status 1
Run Code Online (Sandbox Code Playgroud)

我试图找到有关出了什么问题的更多信息,但我找不到任何有用的日志记录。

在 /var/crash 中生成了 spamassassin 崩溃报告,但这只会给出旧的 dpkg 错误和:

 Start-Date: 2014-02-17  19:18:13
 Commandline: apt-get install spamassassin
AptOrdering:
 spamassassin: Configure
 amavisd-new-postfix: Configure
Run Code Online (Sandbox Code Playgroud)

其次是启动时的 dmesg 日志记录。Amavis 报错,因为没有配置依赖 spamassassin。

我检查了日志文件:

apt history.log
apt term.log
dpkg.log
syslog.log
Run Code Online (Sandbox Code Playgroud)

但没有额外的信息。

我尝试了 dpkg -D 与所有可能的八进制,但我发现可能出错的地方没有任何用处。

已经写了很多关于 dpkg 错误的问题和可能的解决方案,而且我已经尝试了很多,但是没有额外的信息,我感觉不到任何地方。

当然,一定有可能在某个地方读取出错的地方或启动一些日志记录以便将其记录下来?

dpkg

22
推荐指数
2
解决办法
4万
查看次数

升级到Ubuntu 17.04后包系统坏了

在此处输入图片说明

将我的 Ubuntu 升级到 17.04 后,包系统坏了。当我执行以下任何命令时,出现一些错误。

sudo apt-get --fix-broken 安装

$ sudo apt-get --fix-broken install
...
...
ubuntuone-credentials-common unity-plugin-scopes unity-scope-
mediascanner2
  unity-webapps-qml url-dispatcher usermetricsservice vbetool vlc-nox
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  click-apparmor
The following packages will be upgraded:
  click-apparmor
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/10.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do …
Run Code Online (Sandbox Code Playgroud)

upgrade package-management apt dpkg 17.04

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

尝试 sudo apt-get update 时出错 - Python 相关?

我希望你能帮助我。几天前我安装了 Ubuntu 18.04,在尝试配置它并安装新的软件包和软件时,我想我做了一些坏事。我认为这可能与安装python有关。无论如何,gnome-terminal 或 gnome-tweaks 都无法启动了。此外,当我尝试更新(sudo apt-get update)时,它给了我以下错误:

sh 1: /usr/lib/cnf-update-db: not found
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Succes 'if /usr/bin/test -w /var/lib/command-not-found -a -e /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code
Run Code Online (Sandbox Code Playgroud)

我对 Linux 比较陌生,所以我不知道如何解决这个问题。任何的想法?甚至恢复默认配置/设置?

非常感谢!

package-management apt

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

我在 18.04 LTS 上的包管理器有问题

首先,我相信我应该说我本周早些时候刚刚安装了 Ubuntu 18.04 LTS,所以我基本上什么都不知道。
我今天在空闲安装python3时遇到错误:

dpkg: error processing package linux-modules-4.15.0-22-generic (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency problems prevent configuration of linux-image-4.15.0-22-generic:
 linux-image-4.15.0-22-generic depends on linux-modules-4.15.0-22-generic; however:
  Package linux-modules-4.15.0-22-generic is not configured yet.

dpkg: error processing package linux-image-4.15.0-22-generic (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
dpkg: dependency …
Run Code Online (Sandbox Code Playgroud)

upgrade package-management apt dpkg

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