新的 kali-themes 包预安装脚本子进程返回错误退出状态 2

新的 kali-themes 包预安装脚本子进程返回错误退出状态 2

kali-themes我在 Kali Linux 上安装软件包时遇到问题。我得到的错误如下:

eaving 'diversion of /etc/xdg/xfce4/panel/default.xml to /etc/xdg/xfce4/panel/default.xml.original by kali-
themes'
dpkg-divert: error: unknown option --no-rename

Use --help for help about diverting files.
dpkg: error processing archive /var/cache/apt/archives/kali-themes_2020.1.0_all.deb (--unpack):
 new kali-themes package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/kali-themes_2020.1.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

有什么想法吗?

答案1

在这里解决了,这就是我所做的:

  1. 首先,创建一个新目录并解压该.deb目录

    mkdir tmp
    dpkg-deb -R /var/cache/apt/archives/kali-themes_2020.1.0_all.deb tmp
    
  2. "--no-rename"通过查找并将其替换为 来编辑提取的文件""

    cd tmp/DEBIAN
    leafpad preinst
    grep "no-rename" ./* -r
    sed -i "s/--no-rename//g" <files from above grep> 
    
  3. 重新打包并执行.deb

    dpkg-deb -b tmp fixed.deb
    sudo dpkg -i fixed.deb
    

相关内容