我可以让 ubuntu 忘记未满足的依赖性错误吗?

我可以让 ubuntu 忘记未满足的依赖性错误吗?

我尝试安装 Adob​​e Reader,但安装未完成。然后我决定我不需要 Adob​​e Reader,我该如何让 ubuntu 认为一切正常,没有未满足的依赖项,或者让 ubuntu 获取这些依赖项?我需要解决此错误,因为我的系统由于应用程序而内存不足,我无法安装或卸载软件包。我试过了,sudo apt-get install -f但得到了这个:

[sudo] password for harley: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  acroread-bin
Suggested packages:
  libldap2 libgnome-speech7
The following NEW packages will be installed:
  acroread-bin
0 upgraded, 1 newly installed, 0 to remove and 213 not upgraded.
1 not fully installed or removed.
Need to get 60.1 MB of archives.
After this operation, 142 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://archive.canonical.com/ubuntu/ raring/partner acroread-bin i386 9.5.5-1raring1 [60.1 MB]
Fetched 60.1 MB in 35s (1,676 kB/s)                 
(Reading database ... 158479 files and directories currently installed.)
Unpacking acroread-bin (from .../acroread-bin_9.5.5-1raring1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/acroread-bin_9.5.5-1raring1_i386.deb (--unpack):
 trying to overwrite '/usr/lib/firefox/plugins', which is also in package adobe-flashplugin 11.2.202.297-0raring1
No apport report written because MaxReports is reached already
         dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/acroread-bin_9.5.5-1raring1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
harley@Harley-PC:~$ 

我试过了sudo apt-get remove acroread-bin,我得到了这个

[sudo] password for harley: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'acroread-bin' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
acroread : Depends: acroread-bin but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我尝试了如何解决未满足的依赖关系?中所有可行的解决方案(所有仅使用终端的解决方案)

答案1

基本上没有办法让 Ubuntu忽略所有未满足的依赖性错误。如果你确实实现了这一点,那么你将创建一个处于不一致状态的系统,其中不同部分无法按照设计协同工作。这将是糟糕的。

但如果你决定放弃安装某些东西,这样做。大多数情况下,您可以成功卸载卡住的“半安装”软件包。对于某些软件包,应避免这种情况(或先模拟以apt-get -s确保删除它们不会删除许多其他需要的软件包)。但对于像 Adob​​e Reader 这样的软件包,继续尝试卸载应该是安全的,就像 roadmr 建议的那样

sudo apt-get remove acroread-bin

这很可能还会卸载其他与 Adob​​e Reader 相关的软件包(任何依赖于 的软件包acroread-bin)。但您希望这样做,因为如果没有它,这些软件包就无法运行。

如果您在删除时遇到错误acroread-bin,请告知我们。

或者(无论删除时是否有错误),您可能只想尝试一些解决方案我该如何解决未满足的依赖关系?

相关内容