![损坏和锁定的依赖项](https://linux22.com/image/981009/%E6%8D%9F%E5%9D%8F%E5%92%8C%E9%94%81%E5%AE%9A%E7%9A%84%E4%BE%9D%E8%B5%96%E9%A1%B9.png)
首先我要指出,我不是专家,所以如果我不明白某些内容或写了一些愚蠢的内容,请原谅。我下载了 TLP 以在使用带电池的笔记本电脑时节省电量,尽管我从未安装过电池,因为我通常将计算机连接到线路上。我通过终端执行此操作,但最后收到一条消息,说该软件包已下载但由于某些依赖项而未安装。我查看了软件包管理器(我想名称是正确的),它说有一个损坏的软件包,适用于版本 3.13.0-53 的 Linux 内核版本特定工具 我尝试更新它,但没有任何效果。在另一个 Ubuntu 论坛上,他们要求我输入一种调试,我想是的。它在这里:
leo@leo:~$ sudo apt-get update && sudo apt-get install -f && sudo apt-get dist-upgrade
[sudo] password for leo:
Ign http://it.archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://it.archive.ubuntu.com trusty-updates InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://it.archive.ubuntu.com trusty-proposed InRelease
Trovato http://extras.ubuntu.com trusty Release.gpg
Ign http://ppa.launchpad.net trusty InRelease
Scaricamento di:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Trovato http://it.archive.ubuntu.com trusty Release.gpg
Trovato http://it.archive.ubuntu.com trusty-updates Release.gpg
Trovato http://extras.ubuntu.com trusty Release
Scaricamento di:2 http://security.ubuntu.com trusty-security Release [63,5 kB]
Ign http://ppa.launchpad.net trusty InRelease
Trovato http://it.archive.ubuntu.com trusty-proposed Release.gpg
Trovato http://it.archive.ubuntu.com trusty Release
Ign http://ppa.launchpad.net trusty InRelease
Trovato http://it.archive.ubuntu.com trusty-updates Release
Ign http://ppa.launchpad.net trusty InRelease
Trovato http://it.archive.ubuntu.com trusty-proposed Release
Ign http://ppa.launchpad.net trusty InRelease
Trovato http://extras.ubuntu.com trusty/main Sources
Trovato http://downloads.sourceforge.net all InRelease
Trovato http://it.archive.ubuntu.com trusty/main Sources
Trovato http://ppa.launchpad.net trusty Release.gpg
Trovato http://it.archive.ubuntu.com trusty/restricted Sources
Trovato http://ppa.launchpad.net trusty Release.gpg
Trovato http://it.archive.ubuntu.com trusty/universe Sources
Trovato http://extras.ubuntu.com trusty/main i386 Packages
Scaricamento di:3 http://security.ubuntu.com trusty-security/main Sources [80,7 kB]
Trovato http://it.archive.ubuntu.com trusty/multiverse Sources
Trovato http://ppa.launchpad.net trusty Release.gpg
Trovato http://it.archive.ubuntu.com trusty/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty/restricted i386 Packages
Scaricamento di:4 http://ppa.launchpad.net trusty Release.gpg [316 B]
Trovato http://it.archive.ubuntu.com trusty/universe i386 Packages
Trovato http://ppa.launchpad.net trusty Release.gpg
Trovato http://it.archive.ubuntu.com trusty/multiverse i386 Packages
Scaricamento di:5 http://security.ubuntu.com trusty-security/restricted Sources [2.061 B]
Trovato http://ppa.launchpad.net trusty Release.gpg
Trovato http://it.archive.ubuntu.com trusty/main Translation-it
Scaricamento di:6 http://security.ubuntu.com trusty-security/universe Sources [25,2 kB]
Trovato http://ppa.launchpad.net trusty Release
Scaricamento di:7 http://security.ubuntu.com trusty-security/multiverse Sources [2.335 B]
Trovato http://it.archive.ubuntu.com trusty/main Translation-en
Trovato http://ppa.launchpad.net trusty Release
Scaricamento di:8 http://security.ubuntu.com trusty-security/main i386 Packages [259 kB]
Trovato http://ppa.launchpad.net trusty Release
Trovato http://it.archive.ubuntu.com trusty/multiverse Translation-it
Trovato http://downloads.sourceforge.net all/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty/multiverse Translation-en
Scaricamento di:9 http://ppa.launchpad.net trusty Release [15,1 kB]
Trovato http://it.archive.ubuntu.com trusty/restricted Translation-it
Trovato http://ppa.launchpad.net trusty Release
Trovato http://it.archive.ubuntu.com trusty/restricted Translation-en
Scaricamento di:10 http://security.ubuntu.com trusty-security/restricted i386 Packages [8.846 B]
Trovato http://it.archive.ubuntu.com trusty/universe Translation-it
Trovato http://ppa.launchpad.net trusty Release
Scaricamento di:11 http://security.ubuntu.com trusty-security/universe i386 Packages [104 kB]
Trovato http://it.archive.ubuntu.com trusty/universe Translation-en
Trovato http://ppa.launchpad.net trusty/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty-updates/main Sources
Trovato http://it.archive.ubuntu.com trusty-updates/restricted Sources
Ign http://extras.ubuntu.com trusty/main Translation-it_IT
Trovato http://it.archive.ubuntu.com trusty-updates/universe Sources
Scaricamento di:12 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3.828 B]
Trovato http://it.archive.ubuntu.com trusty-updates/multiverse Sources
Ign http://extras.ubuntu.com trusty/main Translation-it
Trovato http://security.ubuntu.com trusty-security/main Translation-en
Trovato http://it.archive.ubuntu.com trusty-updates/main i386 Packages
Trovato http://ppa.launchpad.net trusty/main Translation-en
Trovato http://it.archive.ubuntu.com trusty-updates/restricted i386 Packages
Ign http://extras.ubuntu.com trusty/main Translation-en
Trovato http://security.ubuntu.com trusty-security/multiverse Translation-en
Trovato http://it.archive.ubuntu.com trusty-updates/universe i386 Packages
Trovato http://ppa.launchpad.net trusty/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Trovato http://security.ubuntu.com trusty-security/restricted Translation-en
Trovato http://it.archive.ubuntu.com trusty-updates/main Translation-en
Trovato http://ppa.launchpad.net trusty/main Translation-en
Trovato http://security.ubuntu.com trusty-security/universe Translation-en
Trovato http://ppa.launchpad.net trusty/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty-updates/multiverse Translation-en
Trovato http://it.archive.ubuntu.com trusty-updates/restricted Translation-en
Trovato http://ppa.launchpad.net trusty/main Translation-en
Trovato http://it.archive.ubuntu.com trusty-updates/universe Translation-en
Scaricamento di:13 http://ppa.launchpad.net trusty/main i386 Packages [18,4 kB]
Trovato http://it.archive.ubuntu.com trusty-proposed/restricted i386 Packages
Trovato http://it.archive.ubuntu.com trusty-proposed/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty-proposed/multiverse i386 Packages
Trovato http://it.archive.ubuntu.com trusty-proposed/universe i386 Packages
Scaricamento di:14 http://ppa.launchpad.net trusty/main Translation-en [9.963 B]
Trovato http://it.archive.ubuntu.com trusty-proposed/main Translation-it
Trovato http://ppa.launchpad.net trusty/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty-proposed/main Translation-en
Trovato http://it.archive.ubuntu.com trusty-proposed/multiverse Translation-it
Trovato http://ppa.launchpad.net trusty/main Translation-en
Trovato http://it.archive.ubuntu.com trusty-proposed/multiverse Translation-en
Trovato http://it.archive.ubuntu.com trusty-proposed/restricted Translation-it
Trovato http://ppa.launchpad.net trusty/main i386 Packages
Trovato http://it.archive.ubuntu.com trusty-proposed/restricted Translation-en
Trovato http://it.archive.ubuntu.com trusty-proposed/universe Translation-it
Trovato http://it.archive.ubuntu.com trusty-proposed/universe Translation-en
Ign http://it.archive.ubuntu.com trusty/main Translation-it_IT
Ign http://it.archive.ubuntu.com trusty/multiverse Translation-it_IT
Ign http://it.archive.ubuntu.com trusty/restricted Translation-it_IT
Ign http://it.archive.ubuntu.com trusty/universe Translation-it_IT
Ign http://ppa.launchpad.net trusty/main Translation-it_IT
Ign http://ppa.launchpad.net trusty/main Translation-it
Ign http://ppa.launchpad.net trusty/main Translation-en
Ign http://downloads.sourceforge.net all/main Translation-it_IT
Ign http://downloads.sourceforge.net all/main Translation-it
Ign http://downloads.sourceforge.net all/main Translation-en
Recuperati 594 kB in 9s (62,7 kB/s)
Lettura elenco dei pacchetti... Fatto
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Correzione delle dipendenze... Fatto
I seguenti pacchetti saranno inoltre installati:
linux-tools-common
I seguenti pacchetti NUOVI saranno installati:
linux-tools-common
0 aggiornati, 1 installati, 0 da rimuovere e 1 non aggiornati.
3 non completamente installati o rimossi.
È necessario scaricare 0 B/90,7 kB di archivi.
Dopo quest'operazione, verranno occupati 312 kB di spazio su disco.
Continuare? [S/n] s
(Lettura del database... 258639 file e directory attualmente installati.)
Preparativi per estrarre .../linux-tools-common_3.13.0-53.88_all.deb...
Estrazione di linux-tools-common (3.13.0-53.88)...
dpkg: errore nell'elaborare l'archivio /var/cache/apt/archives/linux-tools-common_3.13.0-53.88_all.deb (--unpack):
tentata sovrascrittura di "/usr/share/man/man1/cpupower-info.1.gz" presente anche nel pacchetto linux-lts-vivid-tools-common 3.19.0-17.17~14.04.1
Elaborazione dei trigger per man-db (2.6.7.1-1ubuntu1)...
Si sono verificati degli errori nell'elaborazione:
/var/cache/apt/archives/linux-tools-common_3.13.0-53.88_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
leo@leo:~$
有些语言是意大利语,所以如果你需要了解一些内容,请直接问我。我想知道我是否可以解决这个问题,而不必返回上一个配置。我有 Ubuntu 14.04 LTS。非常感谢。
答案1
要获取英文信息,请尝试
export LANG=C
在发出命令之前。
似乎软件包linux-tools-common
和linux-lts-vivid-tools-common
不兼容。您是否启用了一些 PPA 或启用了一些不同的存储库组合?
我会尝试删除上述两个包并重复安装(在移除它们之前,请检查是否没有移除任何基本包裹)。否则,添加输出:
apt-cache policy linux-lts-vivid-tools-common
apt-cache policy linux-tools-common
回答你的问题。
答案2
再次删除 linux-tools-common:
sudo apt-get purge linux-tools-common
我建议您报告您受到此错误的影响:https://bugs.launchpad.net/ubuntu/+source/linux-lts-vivid/+bug/1455014