我所知道的是,我在终端上得到了以下输出:
supuhstar@SupuhComp-U:~$ sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra xscreensaver-screensaver-bsod -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
xscreensaver is already the newest version.
xscreensaver-screensaver-bsod is already the newest version.
The following NEW packages will be installed:
xscreensaver-data-extra xscreensaver-gl-extra
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
Need to get 0 B/7,369 kB of archives.
After this operation, 16.5 MB of additional disk space will be used.
(Reading database ... 195814 files and directories currently installed.)
Preparing to unpack .../xscreensaver-data-extra_5.15-3ubuntu1_amd64.deb ...
Unpacking xscreensaver-data-extra (5.15-3ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/xscreensaver-data-extra_5.15-3ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/applications/screensavers/sonar.desktop', which is also in package xscreensaver-gl 5.15-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../xscreensaver-gl-extra_5.15-3ubuntu1_amd64.deb ...
Unpacking xscreensaver-gl-extra (5.15-3ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/xscreensaver-gl-extra_5.15-3ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/share/applications/screensavers/antinspect.desktop', which is also in package xscreensaver-gl 5.15-3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/xscreensaver-data-extra_5.15-3ubuntu1_amd64.deb
/var/cache/apt/archives/xscreensaver-gl-extra_5.15-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
由于正确的 ubuntu 软件包比您安装的 debian 软件包有更新的版本,因此只需运行apt-get upgrade
即可将此软件包切换到 ubuntu 版本。一般来说,您不应该在 ubuntu 系统上安装来自 debian 的软件包。
答案2
按以下顺序在终端中执行这些命令解决了该问题:
sudo apt-get upgrade -y -f
sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra xscreensaver-screensaver-bsod -y -f