由于 gnome-settings-daemon 无法使用 apt

由于 gnome-settings-daemon 无法使用 apt

我正在运行 ubuntu gnome。当我尝试使用 apt 执行任何操作(更新、升级、清除、删除、安装……)时,我得到

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gnome-control-center : Depends: gnome-settings-daemon (>= 3.25.90) but 3.24.0-0ubuntu2 is to be installed
                        Recommends: gnome-online-accounts (>= 3.25.3) but 3.24.0-0ubuntu1 is to be installed
                        Recommends: rygel but it is not going to be installed or
                                    rygel-tracker but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

然后当我使用

sudo apt-get --fix-broken install 

我得到:

Preparing to unpack .../gnome-settings-daemon_3.26.2-1_amd64.deb ...
Unpacking gnome-settings-daemon (3.26.2-1) over (3.24.0-0ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/gnome-settings-daemon_3.26.2-1_amd64.deb (--unpack):
 trying to overwrite '/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules', which is also in package gnome-settings-daemon-schemas 3.24.0-0ubuntu2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Reinstalling /etc/xdg/autostart/org.gnome.SettingsDaemon.XRANDR.desktop that was moved away
Reinstalling /etc/xdg/autostart/org.gnome.SettingsDaemon.Orientation.desktop that was moved away
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-settings-daemon_3.26.2-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

除非我使用 dpkg 安装本地包,否则我无法做任何事情。有人可以帮忙吗?

答案1

我修好了它。这是我的存储库的问题 - 我已经为工具添加了 kali 存储库,并且它试图在 ubuntu 的 gnome 上安装 kali 的 gnome。一切都很好!

相关内容