E: 子进程 /usr/bin/dpkg 返回错误代码 (1)

E: 子进程 /usr/bin/dpkg 返回错误代码 (1)

好的,我知道有很多这样的帖子,但我已经尝试了其中的所有解决方案,但都没有用。所以……我一直在尝试使用 sudo apt-get upgrade -f 升级我的软件包,但每次我都会收到此错误消息:

 $ sudo apt-get upgrade -f
 gnome-keyring iputils-ping libaacs0 libaccountsservice0 libgbm1
libgcr-base-3-1 libgnome-keyring-common libgnome-keyring0
libgnutls-openssl27 libgnutls26 libio-socket-ssl-perl libldb1 libmtp-runtime
libmtp9 libneon27-gnutls libnih-dbus1 libnih1 libnm-glib4 libnm-util2
libpolkit-backend-1-0 libpolkit-gobject-1-0 libsmbclient libssh2-1
libsystemd-journal0 ntfs-3g python-ldb python-samba python3-pycurl
resolvconf samba-common samba-common-bin samba-libs smbclient sysv-rc
telepathy-gabble telepathy-salut udisks2 unattended-upgrades util-linux
uuid-runtime
53 upgraded, 1 newly installed, 0 to remove and 359 not upgraded.
Need to get 0 B/18.8 MB of archives.
After this operation, 21.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 164580 files and directories currently installed.)
Preparing to unpack .../util-linux_2.25.2-6_amd64.deb ...
Unpacking util-linux (2.25.2-6) over (2.20.1-5.1ubuntu20.7) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up util-linux (2.25.2-6) ...
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match hwclock.sh Default-Start values (S)
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not     match hwclock.sh Default-Stop values (0 6)
Processing triggers for ureadahead (0.100.0-16) ...
(Reading database ... 164696 files and directories currently installed.)
Preparing to unpack .../plymouth_0.9.0-9_amd64.deb ...
Unpacking plymouth (0.9.0-9) ...
dpkg: error processing archive /var/cache/apt/archives/plymouth_0.9.0-9_amd64.deb (--unpack):
 trying to overwrite '/lib/x86_64-linux-gnu/libply-splash-    graphics.so.2.1.0', which is also in package libplymouth2:amd64 0.8.8-    0ubuntu17.1
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
 /var/cache/apt/archives/plymouth_0.9.0-9_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

请帮我。

答案1

看起来你正在使用生动的(因为你有普利茅斯0.9),但您有 trusty 的 libplymouth2 包(因为 trusty 是最新版本的libplymouth2)。

去掉它:

sudo apt purge libplymouth2

那么 dpkg 就不会再抱怨了。

相关内容