installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 420496 files and directories currently installed.)
Preparing to unpack .../grub2-themes-ubuntu-mate_0.3.6~trusty4_all.deb ...
Unpacking grub2-themes-ubuntu-mate (0.3.6~trusty4) ...
dpkg: error processing archive /var/cache/apt/archives/grub2-themes-ubuntu-mate_0.3.6~trusty4_all.deb (--unpack):
trying to overwrite '/boot/grub/themes/ubuntu-mate/background.png', which is also in package grub-theme-ubuntu-mate 0.3.3~trusty1
Errors were encountered while processing:
/var/cache/apt/archives/grub2-themes-ubuntu-mate_0.3.6~trusty4_all.deb
Error in function:
dpkg: dependency problems prevent configuration of ubuntu-mate-core:
ubuntu-mate-core depends on grub2-themes-ubuntu-mate; however:
Package grub2-themes-ubuntu-mate is not installed.
dpkg: error processing package ubuntu-mate-core (--configure):
dependency problems - leaving unconfigured
当我这样做时:sudo apt-get purge grub-theme-ubuntu-mate*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'grub-theme-ubuntu-mate' for regex 'grub-theme-ubuntu-mate*'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
ubuntu-mate-core : Depends: grub2-themes-ubuntu-mate but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
和 :sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
grub2-themes-ubuntu-mate
The following NEW packages will be installed:
grub2-themes-ubuntu-mate
0 upgraded, 1 newly installed, 0 to remove and 44 not upgraded.
1 not fully installed or removed.
Need to get 0 B/87,9 kB of archives.
After this operation, 146 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 420496 files and directories currently installed.)
Preparing to unpack .../grub2-themes-ubuntu-mate_0.3.6~trusty4_all.deb ...
Unpacking grub2-themes-ubuntu-mate (0.3.6~trusty4) ...
dpkg: error processing archive /var/cache/apt/archives/grub2-themes-ubuntu-mate_0.3.6~trusty4_all.deb (--unpack):
trying to overwrite '/boot/grub/themes/ubuntu-mate/background.png', which is also in package grub-theme-ubuntu-mate 0.3.3~trusty1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/grub2-themes-ubuntu-mate_0.3.6~trusty4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
发生这种情况是因为一个包正在尝试覆盖其他包的文件。
因此,首先删除冲突的软件包。
为此,请打开终端并输入此命令
sudo apt-get purge grub-theme-ubuntu-mate*
一旦上述命令完成,成功执行此命令
sudo apt-get install -f
答案2
看起来您在安装 mate 后遇到了依赖性问题。尝试以下命令,看看是否有帮助:
sudo apt-get -f install
sudo apt-get --configure -a
sudo apt-get update
sudo apt-get upgrade
sudo update-grub