无法安装纸质图标主题 [E: 子进程 /usr/bin/dpkg 返回错误代码 (1)] 18.04.3 XFCE

无法安装纸质图标主题 [E: 子进程 /usr/bin/dpkg 返回错误代码 (1)] 18.04.3 XFCE

在看到一篇我喜欢的 r/unixporn 帖子后,我尝试安装 paper icon 主题,以获得更好看的 xfce DE,但是按照此链接返回此信息,我真的不知道 dpkg 是如何工作的,以及它可能出了什么问题,已经尝试过重新启动,删除 Paper 文件夹或按照我在谷歌上找到的几个命令进行操作 dpkg 返回错误代码(1) 但似乎没有什么效果

ubuntu@RPi4:~$ sudo apt install paper-icon-theme Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: paper-icon-theme 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/41.4 MB of archives. After this operation, 78.9 MB of additional disk space will be used. (Reading database ... 198269 files and directories currently installed.) Preparing to unpack .../paper-icon-theme_1.5.723-201905252133~daily~ubuntu18.04.1_all.deb ... Unpacking paper-icon-theme (1.5.723-201905252133~daily~ubuntu18.04.1) ... dpkg: error processing archive /var/cache/apt/archives/paper-icon-theme_1.5.723-201905252133~daily~ubuntu18.04.1_all.deb (--unpack): trying to overwrite '/usr/share/icons/Paper/cursor.theme', which is also in package paper-cursor-theme 1.4+r696~daily~ubuntu18.04.1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/paper-icon-theme_1.5.723-201905252133~daily~ubuntu18.04.1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 我该怎么做才能使这个主题正常运行?

命令

apt-cache 策略 paper-cursor-theme paper-icon-theme

    ubuntu@RPi4:~$ apt-cache policy paper-cursor-theme paper-icon-theme
    paper-cursor-theme:
      Installed: 1.4+r696~daily~ubuntu18.04.1
      Candidate: 1.4+r696~daily~ubuntu18.04.1
      Version table:
     *** 1.4+r696~daily~ubuntu18.04.1 100
        100 /var/lib/dpkg/status
paper-icon-theme:
  Installed: (none)
  Candidate: 1.5.723-201905252133~daily~ubuntu18.04.1
  Version table:
     1.5.723-201905252133~daily~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/snwh/ppa/ubuntu bionic/main arm64 Packages

答案1

看起来paper-cursor-themepaper-icon-theme包之间存在冲突。

ppa:snwh/ppaPPA 描述包含随其提供的光标和图标的信息:

该 PPA 包含来自 snwh.org(由 Sam Hewitt 开发)的项目软件包,包括:
...
- 纸质图标和光标主题
...

因此,为了解决冲突,您需要使用以下命令删除paper-cursor-theme包:

sudo apt-get remove paper-cursor-theme

然后安装paper-icon-theme

sudo apt-get install paper-icon-theme

相关内容